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

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

Issue 186483004: Add a skeleton Start Page to the experimental app list. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ares_change_experimental_animation
Patch Set: Created 6 years, 9 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
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 8
9 namespace app_list { 9 namespace app_list {
10 namespace switches { 10 namespace switches {
11 11
12 // If set, the experimental app list will be used. 12 // If set, the experimental app list will be used.
13 const char kEnableExperimentalAppList[] = "enable-experimental-app-list"; 13 const char kEnableExperimentalAppList[] = "enable-experimental-app-list";
14 14
15 // If set, folder will be enabled in app list UI. 15 // If set, folder will be enabled in app list UI.
16 const char kEnableFolderUI[] = "enable-app-list-folder-ui"; 16 const char kEnableFolderUI[] = "enable-app-list-folder-ui";
17 17
18 // If set, the voice search is disabled in app list UI. 18 // If set, the voice search is disabled in app list UI.
19 const char kDisableVoiceSearch[] = "disable-app-list-voice-search"; 19 const char kDisableVoiceSearch[] = "disable-app-list-voice-search";
20 20
21 // If set, the app info context menu item is available in the app list UI. 21 // If set, the app info context menu item is available in the app list UI.
22 const char kEnableAppInfo[] = "enable-app-list-app-info"; 22 const char kEnableAppInfo[] = "enable-app-list-app-info";
23 23
24 // If set, the app list will show the start page webui.
25 const char kShowAppListStartPage[] = "show-app-list-start-page";
26
24 bool IsFolderUIEnabled() { 27 bool IsFolderUIEnabled() {
25 return CommandLine::ForCurrentProcess()->HasSwitch(kEnableFolderUI); 28 return CommandLine::ForCurrentProcess()->HasSwitch(kEnableFolderUI);
26 } 29 }
27 30
28 bool IsVoiceSearchEnabled() { 31 bool IsVoiceSearchEnabled() {
29 // Speech recognition in AppList is only for ChromeOS right now. 32 // Speech recognition in AppList is only for ChromeOS right now.
30 #if defined(OS_CHROMEOS) 33 #if defined(OS_CHROMEOS)
31 return !CommandLine::ForCurrentProcess()->HasSwitch(kDisableVoiceSearch); 34 return !CommandLine::ForCurrentProcess()->HasSwitch(kDisableVoiceSearch);
32 #else 35 #else
33 return false; 36 return false;
34 #endif 37 #endif
35 } 38 }
36 39
37 bool IsAppInfoEnabled() { 40 bool IsAppInfoEnabled() {
38 return CommandLine::ForCurrentProcess()->HasSwitch(kEnableAppInfo); 41 return CommandLine::ForCurrentProcess()->HasSwitch(kEnableAppInfo);
39 } 42 }
40 43
41 bool IsExperimentalAppListEnabled() { 44 bool IsExperimentalAppListEnabled() {
42 return CommandLine::ForCurrentProcess()->HasSwitch( 45 return CommandLine::ForCurrentProcess()->HasSwitch(
43 kEnableExperimentalAppList); 46 kEnableExperimentalAppList);
44 } 47 }
45 48
49 bool IsStartPageWebUIEnabled() {
50 return CommandLine::ForCurrentProcess()->HasSwitch(kShowAppListStartPage);
51 }
52
46 } // namespace switches 53 } // namespace switches
47 } // namespace app_list 54 } // namespace app_list
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698