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

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

Issue 162753002: Center and change the aspect ratio for the experimental app list. [Win] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android compile Created 6 years, 10 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/views/app_list_folder_view.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 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
12 // If set, folder will be enabled in app list UI. 15 // If set, folder will be enabled in app list UI.
13 const char kEnableFolderUI[] = "enable-app-list-folder-ui"; 16 const char kEnableFolderUI[] = "enable-app-list-folder-ui";
14 17
15 // If set, the voice search is disabled in app list UI. 18 // If set, the voice search is disabled in app list UI.
16 const char kDisableVoiceSearch[] = "disable-app-list-voice-search"; 19 const char kDisableVoiceSearch[] = "disable-app-list-voice-search";
17 20
18 // 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.
19 const char kEnableAppInfo[] = "enable-app-list-app-info"; 22 const char kEnableAppInfo[] = "enable-app-list-app-info";
20 23
21 bool IsFolderUIEnabled() { 24 bool IsFolderUIEnabled() {
22 return CommandLine::ForCurrentProcess()->HasSwitch(kEnableFolderUI); 25 return CommandLine::ForCurrentProcess()->HasSwitch(kEnableFolderUI);
23 } 26 }
24 27
25 bool IsVoiceSearchEnabled() { 28 bool IsVoiceSearchEnabled() {
26 // Speech recognition in AppList is only for ChromeOS right now. 29 // Speech recognition in AppList is only for ChromeOS right now.
27 #if defined(OS_CHROMEOS) 30 #if defined(OS_CHROMEOS)
28 return !CommandLine::ForCurrentProcess()->HasSwitch(kDisableVoiceSearch); 31 return !CommandLine::ForCurrentProcess()->HasSwitch(kDisableVoiceSearch);
29 #else 32 #else
30 return false; 33 return false;
31 #endif 34 #endif
32 } 35 }
33 36
34 bool IsAppInfoEnabled() { 37 bool IsAppInfoEnabled() {
35 return CommandLine::ForCurrentProcess()->HasSwitch(kEnableAppInfo); 38 return CommandLine::ForCurrentProcess()->HasSwitch(kEnableAppInfo);
36 } 39 }
37 40
38 } // namespcae switches 41 } // namespcae switches
39 } // namespace app_list 42 } // namespace app_list
OLDNEW
« no previous file with comments | « ui/app_list/app_list_switches.h ('k') | ui/app_list/views/app_list_folder_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698