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

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

Issue 231883003: [stash] 20140404-crbug-312961-mac-views-bridge-C-wholegrid Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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.gyp ('k') | ui/app_list/cocoa/apps_collection_view_drag_manager.h » ('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 {
(...skipping 13 matching lines...) Expand all
24 // If set, the experimental app list position will be used. 24 // If set, the experimental app list position will be used.
25 const char kEnableExperimentalAppListPosition[] = 25 const char kEnableExperimentalAppListPosition[] =
26 "enable-experimental-app-list-position"; 26 "enable-experimental-app-list-position";
27 27
28 // If set, it will always listen to the audio locally and open the app-list 28 // If set, it will always listen to the audio locally and open the app-list
29 // when the hotword is recognized. 29 // when the hotword is recognized.
30 const char kEnableHotwordAlwaysOn[] = "enable-app-list-hotword-always-on"; 30 const char kEnableHotwordAlwaysOn[] = "enable-app-list-hotword-always-on";
31 31
32 // Folder UI is enabled by default. 32 // Folder UI is enabled by default.
33 bool IsFolderUIEnabled() { 33 bool IsFolderUIEnabled() {
34 return true;
34 #if !defined(OS_MACOSX) 35 #if !defined(OS_MACOSX)
35 return !CommandLine::ForCurrentProcess()->HasSwitch(kDisableFolderUI); 36 return !CommandLine::ForCurrentProcess()->HasSwitch(kDisableFolderUI);
36 #else 37 #else
37 return false; 38 return false;
38 #endif 39 #endif
39 } 40 }
40 41
41 bool IsVoiceSearchEnabled() { 42 bool IsVoiceSearchEnabled() {
42 // Speech recognition in AppList is only for ChromeOS right now. 43 // Speech recognition in AppList is only for ChromeOS right now.
43 #if defined(OS_CHROMEOS) 44 #if defined(OS_CHROMEOS)
(...skipping 22 matching lines...) Expand all
66 } 67 }
67 68
68 bool IsExperimentalAppListPositionEnabled() { 69 bool IsExperimentalAppListPositionEnabled() {
69 return CommandLine::ForCurrentProcess()->HasSwitch( 70 return CommandLine::ForCurrentProcess()->HasSwitch(
70 kEnableExperimentalAppListPosition) || 71 kEnableExperimentalAppListPosition) ||
71 IsExperimentalAppListEnabled(); 72 IsExperimentalAppListEnabled();
72 } 73 }
73 74
74 } // namespace switches 75 } // namespace switches
75 } // namespace app_list 76 } // namespace app_list
OLDNEW
« no previous file with comments | « ui/app_list/app_list.gyp ('k') | ui/app_list/cocoa/apps_collection_view_drag_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698