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

Side by Side Diff: ui/base/ui_base_switches.cc

Issue 11565019: Consolidate dialog style flags and strings; etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Alphabetize IDS strings. Created 8 years 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
« chrome/common/chrome_switches.h ('K') | « ui/base/ui_base_switches.h ('k') | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/base/ui_base_switches.h" 5 #include "ui/base/ui_base_switches.h"
6 6
7 namespace switches { 7 namespace switches {
8 8
9 // Disable touch adjustment.
10 const char kDisableTouchAdjustment[] = "disable-touch-adjustment";
11
9 // Enable support for bezel touch. 12 // Enable support for bezel touch.
10 const char kEnableBezelTouch[] = "enable-bezel-touch"; 13 const char kEnableBezelTouch[] = "enable-bezel-touch";
11 14
12 // Disable touch adjustment. 15 // Enables the new dialog style wherever it is available.
13 const char kDisableTouchAdjustment[] = "disable-touch-adjustment"; 16 const char kEnableNewDialogStyle[] = "enable-new-dialog-style";
17
18 // Enables new menu UI.
19 const char kEnableNewMenuStyle[] = "enable-new-menu-style";
20
21 const char kEnableTouchDragDrop[] = "enable-touch-drag-drop";
14 22
15 // Enables the Views textfield on Windows. 23 // Enables the Views textfield on Windows.
16 const char kEnableViewsTextfield[] = "enable-views-textfield"; 24 const char kEnableViewsTextfield[] = "enable-views-textfield";
17 25
18 // Overrides the device scale factor for the browser UI and the 26 // Overrides the device scale factor for the browser UI and the
19 // contents. 27 // contents.
20 const char kForceDeviceScaleFactor[] = "force-device-scale-factor"; 28 const char kForceDeviceScaleFactor[] = "force-device-scale-factor";
21 29
22 // If a resource is requested at a scale factor at which it is not available 30 // If a resource is requested at a scale factor at which it is not available
23 // or the resource is the incorrect size (based on the size of the 1x resource), 31 // or the resource is the incorrect size (based on the size of the 1x resource),
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 68
61 // The values the kTouchOptimizedUI switch may have, as in 69 // The values the kTouchOptimizedUI switch may have, as in
62 // "--touch-optimized-ui=disabled". 70 // "--touch-optimized-ui=disabled".
63 // auto: Enabled on monitors which have touchscreen support (default). 71 // auto: Enabled on monitors which have touchscreen support (default).
64 const char kTouchOptimizedUIAuto[] = "auto"; 72 const char kTouchOptimizedUIAuto[] = "auto";
65 // enabled: always optimized for touch (even if no touch support). 73 // enabled: always optimized for touch (even if no touch support).
66 const char kTouchOptimizedUIEnabled[] = "enabled"; 74 const char kTouchOptimizedUIEnabled[] = "enabled";
67 // disabled: never optimized for touch. 75 // disabled: never optimized for touch.
68 const char kTouchOptimizedUIDisabled[] = "disabled"; 76 const char kTouchOptimizedUIDisabled[] = "disabled";
69 77
70 // Enables new menu UI.
71 const char kEnableNewMenuStyle[] = "enable-new-menu-style";
72
73 #if defined(USE_XI2_MT) 78 #if defined(USE_XI2_MT)
74 // The calibration factors given as "<left>,<right>,<top>,<bottom>". 79 // The calibration factors given as "<left>,<right>,<top>,<bottom>".
75 const char kTouchCalibration[] = "touch-calibration"; 80 const char kTouchCalibration[] = "touch-calibration";
76 #endif 81 #endif
77 82
78 #if defined(OS_MACOSX) 83 #if defined(OS_MACOSX)
79 const char kDisableCompositedCoreAnimationPlugins[] = 84 const char kDisableCompositedCoreAnimationPlugins[] =
80 "disable-composited-core-animation-plugins"; 85 "disable-composited-core-animation-plugins";
81 // Disables using core animation in plugins. This is triggered when accelerated 86 // Disables using core animation in plugins. This is triggered when accelerated
82 // compositing is disabled. See http://crbug.com/122430 87 // compositing is disabled. See http://crbug.com/122430
83 const char kDisableCoreAnimationPlugins[] = 88 const char kDisableCoreAnimationPlugins[] =
84 "disable-core-animation-plugins"; 89 "disable-core-animation-plugins";
85 #endif 90 #endif
86 91
87 #if defined(TOOLKIT_VIEWS) && defined(OS_LINUX) 92 #if defined(TOOLKIT_VIEWS) && defined(OS_LINUX)
88 // Tells chrome to interpret events from these devices as touch events. Only 93 // Tells chrome to interpret events from these devices as touch events. Only
89 // available with XInput 2 (i.e. X server 1.8 or above). The id's of the 94 // available with XInput 2 (i.e. X server 1.8 or above). The id's of the
90 // devices can be retrieved from 'xinput list'. 95 // devices can be retrieved from 'xinput list'.
91 const char kTouchDevices[] = "touch-devices"; 96 const char kTouchDevices[] = "touch-devices";
92 #endif 97 #endif
93 98
94 const char kEnableTouchDragDrop[] = "enable-touch-drag-drop";
95
96 } // namespace switches 99 } // namespace switches
OLDNEW
« chrome/common/chrome_switches.h ('K') | « ui/base/ui_base_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698