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 | 8 |
9 namespace app_list { | 9 namespace app_list { |
10 namespace switches { | 10 namespace switches { |
11 | 11 |
12 // Disables syncing of the app list independent of extensions. | 12 // Disables syncing of the app list independent of extensions. |
13 const char kDisableSyncAppList[] = "disable-sync-app-list"; | 13 const char kDisableSyncAppList[] = "disable-sync-app-list"; |
14 | 14 |
15 // If set, the voice search is disabled in app list UI. | 15 // If set, the voice search is disabled in app list UI. |
16 const char kDisableVoiceSearch[] = "disable-app-list-voice-search"; | 16 const char kDisableVoiceSearch[] = "disable-app-list-voice-search"; |
17 | 17 |
18 // If set, the app info context menu item is available in the app list UI. | 18 // If set, the app info context menu item is available in the app list UI. |
19 const char kEnableAppInfo[] = "enable-app-list-app-info"; | 19 const char kEnableAppInfo[] = "enable-app-list-app-info"; |
20 | 20 |
21 // If set, the app list will be centered and wide instead of tall. | 21 // If set, the app list will be centered and wide instead of tall. |
22 const char kEnableCenteredAppList[] = "enable-centered-app-list"; | 22 const char kEnableCenteredAppList[] = "enable-centered-app-list"; |
23 | 23 |
| 24 // If set, Drive apps of the user shows side-by-side with Chrome apps. |
| 25 const char kEnableDriveAppsInAppList[] = "enable-drive-apps-in-app-list"; |
| 26 |
24 // If set, the experimental app list will be used. Implies | 27 // If set, the experimental app list will be used. Implies |
25 // --enable-centered-app-list. | 28 // --enable-centered-app-list. |
26 const char kEnableExperimentalAppList[] = "enable-experimental-app-list"; | 29 const char kEnableExperimentalAppList[] = "enable-experimental-app-list"; |
27 | 30 |
28 // Enables syncing of the app list independent of extensions. | 31 // Enables syncing of the app list independent of extensions. |
29 const char kEnableSyncAppList[] = "enable-sync-app-list"; | 32 const char kEnableSyncAppList[] = "enable-sync-app-list"; |
30 | 33 |
31 bool IsAppListSyncEnabled() { | 34 bool IsAppListSyncEnabled() { |
32 #if defined(TOOLKIT_VIEWS) | 35 #if defined(TOOLKIT_VIEWS) |
33 return !CommandLine::ForCurrentProcess()->HasSwitch(kDisableSyncAppList); | 36 return !CommandLine::ForCurrentProcess()->HasSwitch(kDisableSyncAppList); |
(...skipping 27 matching lines...) Expand all Loading... |
61 bool IsExperimentalAppListEnabled() { | 64 bool IsExperimentalAppListEnabled() { |
62 return CommandLine::ForCurrentProcess()->HasSwitch( | 65 return CommandLine::ForCurrentProcess()->HasSwitch( |
63 kEnableExperimentalAppList); | 66 kEnableExperimentalAppList); |
64 } | 67 } |
65 | 68 |
66 bool IsCenteredAppListEnabled() { | 69 bool IsCenteredAppListEnabled() { |
67 return CommandLine::ForCurrentProcess()->HasSwitch(kEnableCenteredAppList) || | 70 return CommandLine::ForCurrentProcess()->HasSwitch(kEnableCenteredAppList) || |
68 IsExperimentalAppListEnabled(); | 71 IsExperimentalAppListEnabled(); |
69 } | 72 } |
70 | 73 |
| 74 bool IsDriveAppsInAppListEnabled() { |
| 75 return CommandLine::ForCurrentProcess()->HasSwitch(kEnableDriveAppsInAppList); |
| 76 } |
| 77 |
71 } // namespace switches | 78 } // namespace switches |
72 } // namespace app_list | 79 } // namespace app_list |
OLD | NEW |