| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/common/chrome_switches.h" | 5 #include "chrome/common/chrome_switches.h" |
| 6 | 6 |
| 7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 | 9 |
| 10 namespace switches { | 10 namespace switches { |
| (...skipping 1159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1170 | 1170 |
| 1171 #if defined(TOOLKIT_VIEWS) | 1171 #if defined(TOOLKIT_VIEWS) |
| 1172 // Enables debug paint in views framework. Enabling this causes the damaged | 1172 // Enables debug paint in views framework. Enabling this causes the damaged |
| 1173 // region being painted to flash in red. | 1173 // region being painted to flash in red. |
| 1174 const char kDebugViewsPaint[] = "debug-views-paint"; | 1174 const char kDebugViewsPaint[] = "debug-views-paint"; |
| 1175 | 1175 |
| 1176 // Runs Chrome inside the views desktop shell. | 1176 // Runs Chrome inside the views desktop shell. |
| 1177 const char kViewsDesktop[] = "views-desktop"; | 1177 const char kViewsDesktop[] = "views-desktop"; |
| 1178 #endif | 1178 #endif |
| 1179 | 1179 |
| 1180 #if defined(TOUCH_UI) |
| 1180 // Debug only switch to prevent the mouse cursor from disappearing when | 1181 // Debug only switch to prevent the mouse cursor from disappearing when |
| 1181 // touch is enabled | 1182 // touch is enabled |
| 1182 #if defined(TOUCH_UI) | |
| 1183 const char kKeepMouseCursor[] = "keep-mouse-cursor"; | 1183 const char kKeepMouseCursor[] = "keep-mouse-cursor"; |
| 1184 |
| 1185 // Tells chrome to interpret events from these devices as touch events. Only |
| 1186 // available with XInput 2 (i.e. X server 1.8 or above). The id's of the devices |
| 1187 // can be retrieved from 'xinput list'. |
| 1188 const char kTouchDevices[] = "touch-devices"; |
| 1184 #endif | 1189 #endif |
| 1185 | 1190 |
| 1186 #ifndef NDEBUG | 1191 #ifndef NDEBUG |
| 1187 // Clear the token service before using it. This allows simulating | 1192 // Clear the token service before using it. This allows simulating |
| 1188 // the expiration of credentials during testing. | 1193 // the expiration of credentials during testing. |
| 1189 const char kClearTokenService[] = "clear-token-service"; | 1194 const char kClearTokenService[] = "clear-token-service"; |
| 1190 | 1195 |
| 1191 // Sets a token in the token service, for testing. | 1196 // Sets a token in the token service, for testing. |
| 1192 const char kSetToken[] = "set-token"; | 1197 const char kSetToken[] = "set-token"; |
| 1193 | 1198 |
| 1194 // Debug only switch to specify which websocket live experiment host to be used. | 1199 // Debug only switch to specify which websocket live experiment host to be used. |
| 1195 // If host is specified, it also makes initial delay shorter (5 min to 5 sec) | 1200 // If host is specified, it also makes initial delay shorter (5 min to 5 sec) |
| 1196 // to make it faster to test websocket live experiment code. | 1201 // to make it faster to test websocket live experiment code. |
| 1197 const char kWebSocketLiveExperimentHost[] = "websocket-live-experiment-host"; | 1202 const char kWebSocketLiveExperimentHost[] = "websocket-live-experiment-host"; |
| 1198 | 1203 |
| 1199 // Debug only switch to give access to all private extension APIs to | 1204 // Debug only switch to give access to all private extension APIs to |
| 1200 // any non-component extension that is requesting it. | 1205 // any non-component extension that is requesting it. |
| 1201 const char kExposePrivateExtensionApi[] = "expose-private-extension-api"; | 1206 const char kExposePrivateExtensionApi[] = "expose-private-extension-api"; |
| 1202 #endif | 1207 #endif |
| 1203 | 1208 |
| 1204 #if defined(HAVE_XINPUT2) | |
| 1205 // Tells chrome to interpret events from these devices as touch events. Only | |
| 1206 // available with XInput 2 (i.e. X server 1.8 or above). The id's of the devices | |
| 1207 // can be retrieved from 'xinput list'. | |
| 1208 const char kTouchDevices[] = "touch-devices"; | |
| 1209 #endif | |
| 1210 | |
| 1211 #if defined(GOOGLE_CHROME_BUILD) && !defined(OS_CHROMEOS) && !defined(OS_MACOSX) | 1209 #if defined(GOOGLE_CHROME_BUILD) && !defined(OS_CHROMEOS) && !defined(OS_MACOSX) |
| 1212 // Disable print preview (Not exposed via about:flags. Only used for testing.) | 1210 // Disable print preview (Not exposed via about:flags. Only used for testing.) |
| 1213 const char kDisablePrintPreview[] = "disable-print-preview"; | 1211 const char kDisablePrintPreview[] = "disable-print-preview"; |
| 1214 | 1212 |
| 1215 bool IsPrintPreviewEnabled() { | 1213 bool IsPrintPreviewEnabled() { |
| 1216 return !CommandLine::ForCurrentProcess()->HasSwitch(kDisablePrintPreview); | 1214 return !CommandLine::ForCurrentProcess()->HasSwitch(kDisablePrintPreview); |
| 1217 } | 1215 } |
| 1218 #else | 1216 #else |
| 1219 // Enable print preview (no PDF viewer, thus not supported with Chromium). | 1217 // Enable print preview (no PDF viewer, thus not supported with Chromium). |
| 1220 const char kEnablePrintPreview[] = "enable-print-preview"; | 1218 const char kEnablePrintPreview[] = "enable-print-preview"; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1236 | 1234 |
| 1237 // ----------------------------------------------------------------------------- | 1235 // ----------------------------------------------------------------------------- |
| 1238 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1236 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1239 // | 1237 // |
| 1240 // You were going to just dump your switches here, weren't you? Instead, | 1238 // You were going to just dump your switches here, weren't you? Instead, |
| 1241 // please put them in alphabetical order above, or in order inside the | 1239 // please put them in alphabetical order above, or in order inside the |
| 1242 // appropriate ifdef at the bottom. The order should match the header. | 1240 // appropriate ifdef at the bottom. The order should match the header. |
| 1243 // ----------------------------------------------------------------------------- | 1241 // ----------------------------------------------------------------------------- |
| 1244 | 1242 |
| 1245 } // namespace switches | 1243 } // namespace switches |
| OLD | NEW |