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

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: rework 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.
13 const char kEnableExperimentalAppList[] = "enable-experimental-app-list";
14
15 // If set, folder will be disabled in app list UI. 12 // If set, folder will be disabled in app list UI.
16 const char kDisableFolderUI[] = "disable-app-list-folder-ui"; 13 const char kDisableFolderUI[] = "disable-app-list-folder-ui";
17 14
18 // If set, the voice search is disabled in app list UI. 15 // If set, the voice search is disabled in app list UI.
19 const char kDisableVoiceSearch[] = "disable-app-list-voice-search"; 16 const char kDisableVoiceSearch[] = "disable-app-list-voice-search";
20 17
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";
20
21 // If set, the experimental app list will be used.
22 const char kEnableExperimentalAppList[] = "enable-experimental-app-list";
23
21 // If set, it will always listen to the audio locally and open the app-list 24 // If set, it will always listen to the audio locally and open the app-list
22 // when the hotword is recognized. 25 // when the hotword is recognized.
23 const char kEnableHotwordAlwaysOn[] = "enable-app-list-hotword-always-on"; 26 const char kEnableHotwordAlwaysOn[] = "enable-app-list-hotword-always-on";
24 27
25 // If set, the app info context menu item is available in the app list UI. 28 // If set, the app list will show the start page webui.
26 const char kEnableAppInfo[] = "enable-app-list-app-info"; 29 const char kShowAppListStartPage[] = "show-app-list-start-page";
xiyuan 2014/03/14 17:00:54 Can we get rid of this and use just kEnableExperim
calamity 2014/05/07 06:11:52 Done.
27 30
28 // Folder UI is enabled by default. 31 // Folder UI is enabled by default.
29 bool IsFolderUIEnabled() { 32 bool IsFolderUIEnabled() {
30 return !CommandLine::ForCurrentProcess()->HasSwitch(kDisableFolderUI); 33 return !CommandLine::ForCurrentProcess()->HasSwitch(kDisableFolderUI);
31 } 34 }
32 35
33 bool IsVoiceSearchEnabled() { 36 bool IsVoiceSearchEnabled() {
34 // Speech recognition in AppList is only for ChromeOS right now. 37 // Speech recognition in AppList is only for ChromeOS right now.
35 #if defined(OS_CHROMEOS) 38 #if defined(OS_CHROMEOS)
36 return !CommandLine::ForCurrentProcess()->HasSwitch(kDisableVoiceSearch); 39 return !CommandLine::ForCurrentProcess()->HasSwitch(kDisableVoiceSearch);
(...skipping 13 matching lines...) Expand all
50 53
51 bool IsAppInfoEnabled() { 54 bool IsAppInfoEnabled() {
52 return CommandLine::ForCurrentProcess()->HasSwitch(kEnableAppInfo); 55 return CommandLine::ForCurrentProcess()->HasSwitch(kEnableAppInfo);
53 } 56 }
54 57
55 bool IsExperimentalAppListEnabled() { 58 bool IsExperimentalAppListEnabled() {
56 return CommandLine::ForCurrentProcess()->HasSwitch( 59 return CommandLine::ForCurrentProcess()->HasSwitch(
57 kEnableExperimentalAppList); 60 kEnableExperimentalAppList);
58 } 61 }
59 62
63 bool IsStartPageWebUIEnabled() {
64 return CommandLine::ForCurrentProcess()->HasSwitch(kShowAppListStartPage);
65 }
66
60 } // namespace switches 67 } // namespace switches
61 } // namespace app_list 68 } // namespace app_list
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698