OLD | NEW |
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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 | 60 |
61 bool IsVoiceSearchEnabled() { | 61 bool IsVoiceSearchEnabled() { |
62 // Speech recognition in AppList is only for ChromeOS right now. | 62 // Speech recognition in AppList is only for ChromeOS right now. |
63 #if defined(OS_CHROMEOS) | 63 #if defined(OS_CHROMEOS) |
64 return true; | 64 return true; |
65 #else | 65 #else |
66 return false; | 66 return false; |
67 #endif | 67 #endif |
68 } | 68 } |
69 | 69 |
70 bool IsAppInfoEnabled() { | |
71 #if defined(OS_MACOSX) | |
72 return IsMacViewsAppListListEnabled(); | |
73 #endif | |
74 return true; | |
75 } | |
76 | |
77 bool IsExperimentalAppListEnabled() { | 70 bool IsExperimentalAppListEnabled() { |
78 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | 71 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
79 kEnableExperimentalAppList)) | 72 kEnableExperimentalAppList)) |
80 return true; | 73 return true; |
81 | 74 |
82 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | 75 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
83 kDisableExperimentalAppList)) | 76 kDisableExperimentalAppList)) |
84 return false; | 77 return false; |
85 | 78 |
86 #if defined(OS_CHROMEOS) | 79 #if defined(OS_CHROMEOS) |
(...skipping 28 matching lines...) Expand all Loading... |
115 #if defined(TOOLKIT_VIEWS) | 108 #if defined(TOOLKIT_VIEWS) |
116 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 109 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
117 kEnableMacViewsAppList); | 110 kEnableMacViewsAppList); |
118 #endif | 111 #endif |
119 return false; | 112 return false; |
120 } | 113 } |
121 #endif // defined(OS_MACOSX) | 114 #endif // defined(OS_MACOSX) |
122 | 115 |
123 } // namespace switches | 116 } // namespace switches |
124 } // namespace app_list | 117 } // namespace app_list |
OLD | NEW |