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

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

Issue 6381010: touch-devices switch: documentation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 1363 matching lines...) Expand 10 before | Expand all | Expand 10 after
1374 // Sets a token in the token service, for testing. 1374 // Sets a token in the token service, for testing.
1375 const char kSetToken[] = "set-token"; 1375 const char kSetToken[] = "set-token";
1376 1376
1377 // Debug only switch to specify which websocket live experiment host to be used. 1377 // Debug only switch to specify which websocket live experiment host to be used.
1378 // If host is specified, it also makes initial delay shorter (5 min to 5 sec) 1378 // If host is specified, it also makes initial delay shorter (5 min to 5 sec)
1379 // to make it faster to test websocket live experiment code. 1379 // to make it faster to test websocket live experiment code.
1380 const char kWebSocketLiveExperimentHost[] = "websocket-live-experiment-host"; 1380 const char kWebSocketLiveExperimentHost[] = "websocket-live-experiment-host";
1381 #endif 1381 #endif
1382 1382
1383 #if defined(HAVE_XINPUT2) 1383 #if defined(HAVE_XINPUT2)
1384 // Tells chrome to interpret events from these devices as touch events. Only
1385 // available with XInput 2 (i.e. X server 1.8 or above). The id's of the devices
1386 // can be retrieved from 'xinput list'.
1384 const char kTouchDevices[] = "touch-devices"; 1387 const char kTouchDevices[] = "touch-devices";
1385 #endif 1388 #endif
1386 1389
1387 1390
1388 // SeccompSandboxEnabled() controls whether we are using Seccomp. 1391 // SeccompSandboxEnabled() controls whether we are using Seccomp.
1389 // It is currently off by default on all platforms. 1392 // It is currently off by default on all platforms.
1390 // TODO(evan): unify all of these once we turn the seccomp sandbox always 1393 // TODO(evan): unify all of these once we turn the seccomp sandbox always
1391 // on. Also remove the #include of command_line.h above. 1394 // on. Also remove the #include of command_line.h above.
1392 1395
1393 // Disable the seccomp sandbox (Linux only) 1396 // Disable the seccomp sandbox (Linux only)
1394 const char kDisableSeccompSandbox[] = "disable-seccomp-sandbox"; 1397 const char kDisableSeccompSandbox[] = "disable-seccomp-sandbox";
1395 // Enable the seccomp sandbox (Linux only) 1398 // Enable the seccomp sandbox (Linux only)
1396 const char kEnableSeccompSandbox[] = "enable-seccomp-sandbox"; 1399 const char kEnableSeccompSandbox[] = "enable-seccomp-sandbox";
1397 1400
1398 bool SeccompSandboxEnabled() { 1401 bool SeccompSandboxEnabled() {
1399 return CommandLine::ForCurrentProcess()->HasSwitch( 1402 return CommandLine::ForCurrentProcess()->HasSwitch(
1400 switches::kEnableSeccompSandbox); 1403 switches::kEnableSeccompSandbox);
1401 } 1404 }
1402 1405
1403 // ----------------------------------------------------------------------------- 1406 // -----------------------------------------------------------------------------
1404 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1407 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1405 // 1408 //
1406 // You were going to just dump your switches here, weren't you? Instead, 1409 // You were going to just dump your switches here, weren't you? Instead,
1407 // please put them in alphabetical order above, or in order inside the 1410 // please put them in alphabetical order above, or in order inside the
1408 // appropriate ifdef at the bottom. The order should match the header. 1411 // appropriate ifdef at the bottom. The order should match the header.
1409 // ----------------------------------------------------------------------------- 1412 // -----------------------------------------------------------------------------
1410 1413
1411 } // namespace switches 1414 } // namespace switches
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698