Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ui/app_list/app_list_switches.h" | 5 #include "ui/app_list/app_list_switches.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 namespace app_list { | 10 namespace app_list { |
| 11 namespace switches { | 11 namespace switches { |
| 12 | 12 |
| 13 // Specifies the chrome-extension:// URL for the contents of an additional page | 13 // Specifies the chrome-extension:// URL for the contents of an additional page |
| 14 // added to the app launcher. | 14 // added to the app launcher. |
| 15 const char kCustomLauncherPage[] = "custom-launcher-page"; | 15 const char kCustomLauncherPage[] = "custom-launcher-page"; |
| 16 | 16 |
| 17 // If set, the app list will not be dismissed when it loses focus. This is | 17 // If set, the app list will not be dismissed when it loses focus. This is |
| 18 // useful when testing the app list or a custom launcher page. It can still be | 18 // useful when testing the app list or a custom launcher page. It can still be |
| 19 // dismissed via the other methods (like the Esc key). | 19 // dismissed via the other methods (like the Esc key). |
| 20 const char kDisableAppListDismissOnBlur[] = "disable-app-list-dismiss-on-blur"; | 20 const char kDisableAppListDismissOnBlur[] = "disable-app-list-dismiss-on-blur"; |
| 21 | 21 |
| 22 // If set, the app list will be enabled as if enabled from CWS. | 22 // If set, the app list will be enabled as if enabled from CWS. |
| 23 const char kEnableAppList[] = "enable-app-list"; | 23 const char kEnableAppList[] = "enable-app-list"; |
| 24 | 24 |
| 25 // Enables the fullscreen app list | |
|
vadimt
2017/04/13 21:48:34
add '.'
newcomer
2017/04/18 21:12:33
Done.
| |
| 26 extern const char kEnableFullscreenAppList[] = "ash-enable-fullscreen-app-list"; | |
| 27 | |
| 25 // Enable/disable syncing of the app list independent of extensions. | 28 // Enable/disable syncing of the app list independent of extensions. |
| 26 const char kEnableSyncAppList[] = "enable-sync-app-list"; | 29 const char kEnableSyncAppList[] = "enable-sync-app-list"; |
| 27 const char kDisableSyncAppList[] = "disable-sync-app-list"; | 30 const char kDisableSyncAppList[] = "disable-sync-app-list"; |
| 28 | 31 |
| 29 // Enable/disable drive search in chrome launcher. | 32 // Enable/disable drive search in chrome launcher. |
| 30 const char kEnableDriveSearchInChromeLauncher[] = | 33 const char kEnableDriveSearchInChromeLauncher[] = |
| 31 "enable-drive-search-in-app-launcher"; | 34 "enable-drive-search-in-app-launcher"; |
| 32 const char kDisableDriveSearchInChromeLauncher[] = | 35 const char kDisableDriveSearchInChromeLauncher[] = |
| 33 "disable-drive-search-in-app-launcher"; | 36 "disable-drive-search-in-app-launcher"; |
| 34 | 37 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 69 | 72 |
| 70 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | 73 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 71 kDisableDriveSearchInChromeLauncher)) | 74 kDisableDriveSearchInChromeLauncher)) |
| 72 return false; | 75 return false; |
| 73 | 76 |
| 74 return true; | 77 return true; |
| 75 } | 78 } |
| 76 | 79 |
| 77 } // namespace switches | 80 } // namespace switches |
| 78 } // namespace app_list | 81 } // namespace app_list |
| OLD | NEW |