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

Side by Side Diff: chrome/common/chrome_switches.cc

Issue 6975045: touch: Always expect XInput2 availability. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 years, 6 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
OLDNEW
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 1111 matching lines...) Expand 10 before | Expand all | Expand 10 after
1122 // Enable Kiosk mode. 1122 // Enable Kiosk mode.
1123 const char kKioskMode[] = "kiosk"; 1123 const char kKioskMode[] = "kiosk";
1124 #endif 1124 #endif
1125 1125
1126 // Enables debug paint in views framework. Enabling this causes the damaged 1126 // Enables debug paint in views framework. Enabling this causes the damaged
1127 // region being painted to flash in red. 1127 // region being painted to flash in red.
1128 #if defined(TOOLKIT_VIEWS) 1128 #if defined(TOOLKIT_VIEWS)
1129 const char kDebugViewsPaint[] = "debug-views-paint"; 1129 const char kDebugViewsPaint[] = "debug-views-paint";
1130 #endif 1130 #endif
1131 1131
1132 #if defined(TOUCH_UI)
1132 // Debug only switch to prevent the mouse cursor from disappearing when 1133 // Debug only switch to prevent the mouse cursor from disappearing when
1133 // touch is enabled 1134 // touch is enabled
1134 #if defined(TOUCH_UI)
1135 const char kKeepMouseCursor[] = "keep-mouse-cursor"; 1135 const char kKeepMouseCursor[] = "keep-mouse-cursor";
1136
1137 // Tells chrome to interpret events from these devices as touch events. Only
1138 // available with XInput 2 (i.e. X server 1.8 or above). The id's of the devices
1139 // can be retrieved from 'xinput list'.
1140 const char kTouchDevices[] = "touch-devices";
1136 #endif 1141 #endif
1137 1142
1138 #ifndef NDEBUG 1143 #ifndef NDEBUG
1139 // Clear the token service before using it. This allows simulating 1144 // Clear the token service before using it. This allows simulating
1140 // the expiration of credentials during testing. 1145 // the expiration of credentials during testing.
1141 const char kClearTokenService[] = "clear-token-service"; 1146 const char kClearTokenService[] = "clear-token-service";
1142 1147
1143 // Sets a token in the token service, for testing. 1148 // Sets a token in the token service, for testing.
1144 const char kSetToken[] = "set-token"; 1149 const char kSetToken[] = "set-token";
1145 1150
1146 // Debug only switch to specify which websocket live experiment host to be used. 1151 // Debug only switch to specify which websocket live experiment host to be used.
1147 // If host is specified, it also makes initial delay shorter (5 min to 5 sec) 1152 // If host is specified, it also makes initial delay shorter (5 min to 5 sec)
1148 // to make it faster to test websocket live experiment code. 1153 // to make it faster to test websocket live experiment code.
1149 const char kWebSocketLiveExperimentHost[] = "websocket-live-experiment-host"; 1154 const char kWebSocketLiveExperimentHost[] = "websocket-live-experiment-host";
1150 1155
1151 // Debug only switch to give access to all private extension APIs to 1156 // Debug only switch to give access to all private extension APIs to
1152 // any non-component extension that is requesting it. 1157 // any non-component extension that is requesting it.
1153 const char kExposePrivateExtensionApi[] = "expose-private-extension-api"; 1158 const char kExposePrivateExtensionApi[] = "expose-private-extension-api";
1154 #endif 1159 #endif
1155 1160
1156 #if defined(HAVE_XINPUT2)
1157 // Tells chrome to interpret events from these devices as touch events. Only
1158 // available with XInput 2 (i.e. X server 1.8 or above). The id's of the devices
1159 // can be retrieved from 'xinput list'.
1160 const char kTouchDevices[] = "touch-devices";
1161 #endif
1162
1163 #if defined(GOOGLE_CHROME_BUILD) && !defined(OS_CHROMEOS) 1161 #if defined(GOOGLE_CHROME_BUILD) && !defined(OS_CHROMEOS)
1164 // Disable print preview (Not exposed via about:flags. Only used for testing.) 1162 // Disable print preview (Not exposed via about:flags. Only used for testing.)
1165 const char kDisablePrintPreview[] = "disable-print-preview"; 1163 const char kDisablePrintPreview[] = "disable-print-preview";
1166 1164
1167 bool IsPrintPreviewEnabled() { 1165 bool IsPrintPreviewEnabled() {
1168 return !CommandLine::ForCurrentProcess()->HasSwitch(kDisablePrintPreview); 1166 return !CommandLine::ForCurrentProcess()->HasSwitch(kDisablePrintPreview);
1169 } 1167 }
1170 #else 1168 #else
1171 // Enable print preview (no PDF viewer, thus not supported with Chromium). 1169 // Enable print preview (no PDF viewer, thus not supported with Chromium).
1172 const char kEnablePrintPreview[] = "enable-print-preview"; 1170 const char kEnablePrintPreview[] = "enable-print-preview";
1173 1171
1174 bool IsPrintPreviewEnabled() { 1172 bool IsPrintPreviewEnabled() {
1175 return CommandLine::ForCurrentProcess()->HasSwitch(kEnablePrintPreview); 1173 return CommandLine::ForCurrentProcess()->HasSwitch(kEnablePrintPreview);
1176 } 1174 }
1177 #endif 1175 #endif
1178 1176
1179 // ----------------------------------------------------------------------------- 1177 // -----------------------------------------------------------------------------
1180 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1178 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1181 // 1179 //
1182 // You were going to just dump your switches here, weren't you? Instead, 1180 // You were going to just dump your switches here, weren't you? Instead,
1183 // please put them in alphabetical order above, or in order inside the 1181 // please put them in alphabetical order above, or in order inside the
1184 // appropriate ifdef at the bottom. The order should match the header. 1182 // appropriate ifdef at the bottom. The order should match the header.
1185 // ----------------------------------------------------------------------------- 1183 // -----------------------------------------------------------------------------
1186 1184
1187 } // namespace switches 1185 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698