diff options
author | mhm@chromium.org <mhm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-09 00:12:09 +0000 |
---|---|---|
committer | mhm@chromium.org <mhm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-09 00:12:09 +0000 |
commit | 3493043c61392d48177275f90e29bdeede966308 (patch) | |
tree | e3ba4eca8ba36ad9f257d161daf534dd9b26e672 /chrome/common | |
parent | 3367fc1dd134eeaf9ab6e62397f05ad3964319fe (diff) | |
download | chromium_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/common')
-rw-r--r-- | chrome/common/chrome_switches.cc | 11 | ||||
-rw-r--r-- | chrome/common/chrome_switches.h | 8 |
2 files changed, 14 insertions, 5 deletions
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc index ef26499..e91f5d1 100644 --- a/chrome/common/chrome_switches.cc +++ b/chrome/common/chrome_switches.cc @@ -203,6 +203,9 @@ const char kEnableMonitorProfile[] = "enable-monitor-profile"; // Enable Native Web Worker support const char kEnableNativeWebWorkers[] = "enable-native-web-workers"; +// Enable AutoFill++. +const char kEnableNewAutoFill[] = "enable-new-autofill"; + // Enable remote web font support. SVG font should always work whether // this option is specified or not. const char kEnableRemoteFonts[] = "enable-remote-fonts"; @@ -304,6 +307,11 @@ const char kInternalNaCl[] = "internal-nacl"; // Specifies the flags passed to JS engine const char kJavaScriptFlags[] = "js-flags"; +#if !defined(OS_MACOSX) +// Enable Kiosk mode. +const char kKioskMode[] = "kiosk"; +#endif + // Load an extension from the specified directory. const char kLoadExtension[] = "load-extension"; @@ -692,7 +700,4 @@ const char kGearsPluginPathOverride[] = "gears-plugin-path"; // appropriate ifdef at the bottom. The order should match the header. // ----------------------------------------------------------------------------- -// Enable AutoFill++. -const char kEnableNewAutoFill[] = "enable-new-autofill"; - } // namespace switches diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h index 4174564..fea5e43 100644 --- a/chrome/common/chrome_switches.h +++ b/chrome/common/chrome_switches.h @@ -73,6 +73,7 @@ extern const char kDisableLocalStorage[]; extern const char kEnableLogging[]; extern const char kEnableMonitorProfile[]; extern const char kEnableNativeWebWorkers[]; +extern const char kEnableNewAutoFill[]; extern const char kEnableRemoteFonts[]; extern const char kEnableRendererAccessibility[]; extern const char kEnableSeccompSandbox[]; @@ -96,6 +97,11 @@ extern const char kInProcessPlugins[]; extern const char kIncognito[]; extern const char kInternalNaCl[]; extern const char kJavaScriptFlags[]; + +#if !defined(OS_MACOSX) +extern const char kKioskMode[]; +#endif + extern const char kLoadExtension[]; extern const char kLoadPlugin[]; extern const char kLogFilterPrefix[]; @@ -206,8 +212,6 @@ extern const char kGearsPluginPathOverride[]; // DON'T ADD RANDOM STUFF HERE. Put it in the main section above in // alphabetical order, or in one of the ifdefs (also in order in each section). -extern const char kEnableNewAutoFill[]; - } // namespace switches #endif // CHROME_COMMON_CHROME_SWITCHES_H_ |