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

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

Issue 187483005: Extending the Views-on-Mac experiment: whole app list grid. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: still compiles r263560 + crrev/195793005 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 | Annotate | Revision Log
« 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 19 matching lines...) Expand all
30 30
31 bool IsAppListSyncEnabled() { 31 bool IsAppListSyncEnabled() {
32 #if defined(OS_CHROMEOS) 32 #if defined(OS_CHROMEOS)
33 return !CommandLine::ForCurrentProcess()->HasSwitch(kDisableSyncAppList); 33 return !CommandLine::ForCurrentProcess()->HasSwitch(kDisableSyncAppList);
34 #else 34 #else
35 return CommandLine::ForCurrentProcess()->HasSwitch(kEnableSyncAppList); 35 return CommandLine::ForCurrentProcess()->HasSwitch(kEnableSyncAppList);
36 #endif 36 #endif
37 } 37 }
38 38
39 bool IsFolderUIEnabled() { 39 bool IsFolderUIEnabled() {
40 return true;
40 #if defined(OS_MACOSX) 41 #if defined(OS_MACOSX)
41 return false; // Folder UI not implemented for OSX 42 return false; // Folder UI not implemented for OSX
42 #endif 43 #endif
43 // Folder UI is available only when AppList sync is enabled, and should 44 // Folder UI is available only when AppList sync is enabled, and should
44 // not be disabled separately. 45 // not be disabled separately.
45 return IsAppListSyncEnabled(); 46 return IsAppListSyncEnabled();
46 } 47 }
47 48
48 bool IsVoiceSearchEnabled() { 49 bool IsVoiceSearchEnabled() {
49 // Speech recognition in AppList is only for ChromeOS right now. 50 // Speech recognition in AppList is only for ChromeOS right now.
(...skipping 14 matching lines...) Expand all
64 } 65 }
65 66
66 bool IsExperimentalAppListPositionEnabled() { 67 bool IsExperimentalAppListPositionEnabled() {
67 return CommandLine::ForCurrentProcess()->HasSwitch( 68 return CommandLine::ForCurrentProcess()->HasSwitch(
68 kEnableExperimentalAppListPosition) || 69 kEnableExperimentalAppListPosition) ||
69 IsExperimentalAppListEnabled(); 70 IsExperimentalAppListEnabled();
70 } 71 }
71 72
72 } // namespace switches 73 } // namespace switches
73 } // namespace app_list 74 } // 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