Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / ui / app_list / app_list_switches.cc
index d0c77d2..ea10c7c 100644 (file)
@@ -9,18 +9,27 @@
 namespace app_list {
 namespace switches {
 
+// Specifies the chrome-extension:// URL for the contents of an additional page
+// added to the experimental app launcher.
+const char kCustomLauncherPage[] = "custom-launcher-page";
+
 // If set, the app info context menu item is not available in the app list UI.
 const char kDisableAppInfo[] = "disable-app-list-app-info";
 
+// If set, the app list will not be dismissed when it loses focus. This is
+// useful when testing the app list or a custom launcher page. It can still be
+// dismissed via the other methods (like the Esc key).
+const char kDisableAppListDismissOnBlur[] = "disable-app-list-dismiss-on-blur";
+
+// If set, Drive apps will not be shown side-by-side with Chrome apps.
+const char kDisableDriveAppsInAppList[] = "disable-drive-apps-in-app-list";
+
 // Disables syncing of the app list independent of extensions.
 const char kDisableSyncAppList[] = "disable-sync-app-list";
 
 // If set, the app list will be centered and wide instead of tall.
 const char kEnableCenteredAppList[] = "enable-centered-app-list";
 
-// If set, Drive apps of the user shows side-by-side with Chrome apps.
-const char kEnableDriveAppsInAppList[] = "enable-drive-apps-in-app-list";
-
 // If set, the experimental app list will be used. Implies
 // --enable-centered-app-list.
 const char kEnableExperimentalAppList[] = "enable-experimental-app-list";
@@ -72,8 +81,18 @@ bool IsCenteredAppListEnabled() {
          IsExperimentalAppListEnabled();
 }
 
+bool ShouldNotDismissOnBlur() {
+  return CommandLine::ForCurrentProcess()->HasSwitch(
+      kDisableAppListDismissOnBlur);
+}
+
 bool IsDriveAppsInAppListEnabled() {
-  return CommandLine::ForCurrentProcess()->HasSwitch(kEnableDriveAppsInAppList);
+#if defined(OS_CHROMEOS)
+  return !CommandLine::ForCurrentProcess()->HasSwitch(
+      kDisableDriveAppsInAppList);
+#else
+  return false;
+#endif
 }
 
 }  // namespace switches