Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: ui/app_list/app_list_switches.cc

Issue 2840993002: Revert of Implementation of a full screen app list and re-alphabetized switches (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/app_list/app_list_switches.h ('k') | ui/app_list/demo/app_list_demo_views.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // If empty, search answers in the app app list are disabled, otherwise the URL 13 // If empty, search answers in the app app list are disabled, otherwise the URL
14 // of the answer server. 14 // of the answer server.
15 const char kAnswerServerUrl[] = "answer-server-url"; 15 const char kAnswerServerUrl[] = "answer-server-url";
16 16
17 // Specifies the chrome-extension:// URL for the contents of an additional page 17 // Specifies the chrome-extension:// URL for the contents of an additional page
18 // added to the app launcher. 18 // added to the app launcher.
19 const char kCustomLauncherPage[] = "custom-launcher-page"; 19 const char kCustomLauncherPage[] = "custom-launcher-page";
20 20
21 // If set, the app list will not be dismissed when it loses focus. This is 21 // If set, the app list will not be dismissed when it loses focus. This is
22 // useful when testing the app list or a custom launcher page. It can still be 22 // useful when testing the app list or a custom launcher page. It can still be
23 // dismissed via the other methods (like the Esc key). 23 // dismissed via the other methods (like the Esc key).
24 const char kDisableAppListDismissOnBlur[] = "disable-app-list-dismiss-on-blur"; 24 const char kDisableAppListDismissOnBlur[] = "disable-app-list-dismiss-on-blur";
25 25
26 // If set, the app list will be enabled as if enabled from CWS. 26 // If set, the app list will be enabled as if enabled from CWS.
27 const char kEnableAppList[] = "enable-app-list"; 27 const char kEnableAppList[] = "enable-app-list";
28 28
29 // Enables the fullscreen app list.
30 extern const char kEnableFullscreenAppList[] = "enable-fullscreen-app-list";
31
32 // Enable/disable syncing of the app list independent of extensions. 29 // Enable/disable syncing of the app list independent of extensions.
33 const char kEnableSyncAppList[] = "enable-sync-app-list"; 30 const char kEnableSyncAppList[] = "enable-sync-app-list";
34 const char kDisableSyncAppList[] = "disable-sync-app-list"; 31 const char kDisableSyncAppList[] = "disable-sync-app-list";
35 32
36 // Enable/disable drive search in chrome launcher. 33 // Enable/disable drive search in chrome launcher.
37 const char kEnableDriveSearchInChromeLauncher[] = 34 const char kEnableDriveSearchInChromeLauncher[] =
38 "enable-drive-search-in-app-launcher"; 35 "enable-drive-search-in-app-launcher";
39 const char kDisableDriveSearchInChromeLauncher[] = 36 const char kDisableDriveSearchInChromeLauncher[] =
40 "disable-drive-search-in-app-launcher"; 37 "disable-drive-search-in-app-launcher";
41 38
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 80
84 std::string AnswerServerUrl() { 81 std::string AnswerServerUrl() {
85 return base::CommandLine::ForCurrentProcess()->GetSwitchValueNative( 82 return base::CommandLine::ForCurrentProcess()->GetSwitchValueNative(
86 kAnswerServerUrl); 83 kAnswerServerUrl);
87 } 84 }
88 85
89 bool IsAnswerCardEnabled() { 86 bool IsAnswerCardEnabled() {
90 return !AnswerServerUrl().empty(); 87 return !AnswerServerUrl().empty();
91 } 88 }
92 89
93 bool IsFullscreenAppListEnabled() {
94 return base::CommandLine::ForCurrentProcess()->HasSwitch(
95 kEnableFullscreenAppList);
96 }
97
98 } // namespace switches 90 } // namespace switches
99 } // namespace app_list 91 } // namespace app_list
OLDNEW
« no previous file with comments | « ui/app_list/app_list_switches.h ('k') | ui/app_list/demo/app_list_demo_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698