summaryrefslogtreecommitdiffstats
path: root/chrome/test/automation
diff options
context:
space:
mode:
authormhm@chromium.org <mhm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-09 00:12:09 +0000
committermhm@chromium.org <mhm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-09 00:12:09 +0000
commit3493043c61392d48177275f90e29bdeede966308 (patch)
treee3ba4eca8ba36ad9f257d161daf534dd9b26e672 /chrome/test/automation
parent3367fc1dd134eeaf9ab6e62397f05ad3964319fe (diff)
downloadchromium_src-3493043c61392d48177275f90e29bdeede966308.zip
chromium_src-3493043c61392d48177275f90e29bdeede966308.tar.gz
chromium_src-3493043c61392d48177275f90e29bdeede966308.tar.bz2
Kiosk Mode implementation.
Kiosk mode will just hide the status bar and initially set it as full screen. Added some tests to add --kiosk mode as a command switch that tests if its in fullscreen state and doesn't have a status bubble. BUG=23145 TEST=Kiosk Mode functions and Run the ./ui_tests --gtest_filter=KioskModeTest.* Review URL: http://codereview.chromium.org/244003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31412 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/automation')
-rw-r--r--chrome/test/automation/automation_messages_internal.h10
-rw-r--r--chrome/test/automation/browser_proxy.cc20
-rw-r--r--chrome/test/automation/browser_proxy.h7
3 files changed, 37 insertions, 0 deletions
diff --git a/chrome/test/automation/automation_messages_internal.h b/chrome/test/automation/automation_messages_internal.h
index 0616aea..d2f7458 100644
--- a/chrome/test/automation/automation_messages_internal.h
+++ b/chrome/test/automation/automation_messages_internal.h
@@ -1016,6 +1016,16 @@ IPC_BEGIN_MESSAGES(Automation)
IPC_SYNC_MESSAGE_ROUTED0_1(AutomationMsg_GetFilteredInetHitCount,
int /* hit_count */)
+ // Is the browser in fullscreen mode?
+ IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_IsFullscreen,
+ int /* browser_handle */,
+ bool /* is_fullscreen */)
+
+ // Is the fullscreen bubble visible?
+ IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_IsFullscreenBubbleVisible,
+ int /* browser_handle */,
+ bool /* is_visible */)
+
#if defined(OS_LINUX) || defined(OS_MACOSX)
// See previous definition of this message for explanation of why it is
// defined twice.
diff --git a/chrome/test/automation/browser_proxy.cc b/chrome/test/automation/browser_proxy.cc
index fcbd4af..7da15e2 100644
--- a/chrome/test/automation/browser_proxy.cc
+++ b/chrome/test/automation/browser_proxy.cc
@@ -457,3 +457,23 @@ scoped_refptr<AutocompleteEditProxy> BrowserProxy::GetAutocompleteEdit() {
result.swap(&p);
return result;
}
+
+bool BrowserProxy::IsFullscreen(bool* is_fullscreen) {
+ DCHECK(is_fullscreen);
+
+ if (!is_valid())
+ return false;
+
+ return sender_->Send(new AutomationMsg_IsFullscreen(0, handle_,
+ is_fullscreen));
+}
+
+bool BrowserProxy::IsFullscreenBubbleVisible(bool* is_visible) {
+ DCHECK(is_visible);
+
+ if (!is_valid())
+ return false;
+
+ return sender_->Send(new AutomationMsg_IsFullscreenBubbleVisible(0, handle_,
+ is_visible));
+}
diff --git a/chrome/test/automation/browser_proxy.h b/chrome/test/automation/browser_proxy.h
index f3641e3..88a1d58 100644
--- a/chrome/test/automation/browser_proxy.h
+++ b/chrome/test/automation/browser_proxy.h
@@ -204,6 +204,13 @@ class BrowserProxy : public AutomationResourceProxy {
// mahine).
bool TerminateSession();
+ // Sets |is_fullscreen| to whether the browser is currently in fullscreen
+ // mode.
+ bool IsFullscreen(bool* is_fullscreen);
+
+ // Sets |is_visible| to whether the browser's fullscreen bubble is visible.
+ bool IsFullscreenBubbleVisible(bool* is_visible);
+
protected:
virtual ~BrowserProxy() {}
private: