OLD | NEW |
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 // Disables use of DWM composition for top level windows. | 9 // Disables use of DWM composition for top level windows. |
10 const char kDisableDwmComposition[] = "disable-dwm-composition"; | 10 const char kDisableDwmComposition[] = "disable-dwm-composition"; |
11 | 11 |
12 // Disables touch adjustment. | 12 // Disables touch adjustment. |
13 const char kDisableTouchAdjustment[] = "disable-touch-adjustment"; | 13 const char kDisableTouchAdjustment[] = "disable-touch-adjustment"; |
14 | 14 |
15 // Disables the Views textfield on Windows. | 15 // Disables the Views textfield on Windows. |
16 const char kDisableViewsTextfield[] = "disable-views-textfield"; | 16 const char kDisableViewsTextfield[] = "disable-views-textfield"; |
17 | 17 |
18 // Enables support for bezel touch. | 18 // Enables support for bezel touch. |
19 const char kEnableBezelTouch[] = "enable-bezel-touch"; | 19 const char kEnableBezelTouch[] = "enable-bezel-touch"; |
20 | 20 |
21 // Enables the new dialog style wherever it is available. | 21 // Enables the new dialog style wherever it is available. |
22 const char kEnableNewDialogStyle[] = "enable-new-dialog-style"; | 22 const char kEnableNewDialogStyle[] = "enable-new-dialog-style"; |
23 | 23 |
24 const char kEnableTouchDragDrop[] = "enable-touch-drag-drop"; | 24 const char kEnableTouchDragDrop[] = "enable-touch-drag-drop"; |
| 25 const char kDisableTouchDragDrop[] = "disable-touch-drag-drop"; |
25 | 26 |
26 // Enables controls that support touch base text editing. | 27 // Enables controls that support touch base text editing. |
27 const char kEnableTouchEditing[] = "enable-touch-editing"; | 28 const char kEnableTouchEditing[] = "enable-touch-editing"; |
| 29 const char kDisableTouchEditing[] = "disable-touch-editing"; |
28 | 30 |
29 // Enables the Views textfield on Windows. | 31 // Enables the Views textfield on Windows. |
30 const char kEnableViewsTextfield[] = "enable-views-textfield"; | 32 const char kEnableViewsTextfield[] = "enable-views-textfield"; |
31 | 33 |
32 // Overrides the device scale factor for the browser UI and the contents. | 34 // Overrides the device scale factor for the browser UI and the contents. |
33 const char kForceDeviceScaleFactor[] = "force-device-scale-factor"; | 35 const char kForceDeviceScaleFactor[] = "force-device-scale-factor"; |
34 | 36 |
35 // If a resource is requested at a scale factor at which it is not available | 37 // If a resource is requested at a scale factor at which it is not available |
36 // or the resource is the incorrect size (based on the size of the 1x resource), | 38 // or the resource is the incorrect size (based on the size of the 1x resource), |
37 // generates the missing resource and applies a red mask to the generated | 39 // generates the missing resource and applies a red mask to the generated |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 #endif | 92 #endif |
91 | 93 |
92 #if defined(TOOLKIT_VIEWS) && defined(OS_LINUX) | 94 #if defined(TOOLKIT_VIEWS) && defined(OS_LINUX) |
93 // Tells chrome to interpret events from these devices as touch events. Only | 95 // Tells chrome to interpret events from these devices as touch events. Only |
94 // available with XInput 2 (i.e. X server 1.8 or above). The id's of the | 96 // available with XInput 2 (i.e. X server 1.8 or above). The id's of the |
95 // devices can be retrieved from 'xinput list'. | 97 // devices can be retrieved from 'xinput list'. |
96 const char kTouchDevices[] = "touch-devices"; | 98 const char kTouchDevices[] = "touch-devices"; |
97 #endif | 99 #endif |
98 | 100 |
99 } // namespace switches | 101 } // namespace switches |
OLD | NEW |