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"; |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 // Enables touch event based drag and drop. | 33 // Enables touch event based drag and drop. |
34 const char kEnableTouchDragDrop[] = "enable-touch-drag-drop"; | 34 const char kEnableTouchDragDrop[] = "enable-touch-drag-drop"; |
35 | 35 |
36 // Enables controls that support touch base text editing. | 36 // Enables controls that support touch base text editing. |
37 const char kEnableTouchEditing[] = "enable-touch-editing"; | 37 const char kEnableTouchEditing[] = "enable-touch-editing"; |
38 | 38 |
39 // Enables the Views textfield on Windows. | 39 // Enables the Views textfield on Windows. |
40 const char kEnableViewsTextfield[] = "enable-views-textfield"; | 40 const char kEnableViewsTextfield[] = "enable-views-textfield"; |
41 | 41 |
| 42 // Enables/Disables High DPI support (windows) |
| 43 const char kHighDPISupport[] = "high-dpi-support"; |
| 44 |
42 // Overrides the device scale factor for the browser UI and the contents. | 45 // Overrides the device scale factor for the browser UI and the contents. |
43 const char kForceDeviceScaleFactor[] = "force-device-scale-factor"; | 46 const char kForceDeviceScaleFactor[] = "force-device-scale-factor"; |
44 | 47 |
45 // If a resource is requested at a scale factor at which it is not available | 48 // If a resource is requested at a scale factor at which it is not available |
46 // or the resource is the incorrect size (based on the size of the 1x resource), | 49 // or the resource is the incorrect size (based on the size of the 1x resource), |
47 // generates the missing resource and applies a red mask to the generated | 50 // generates the missing resource and applies a red mask to the generated |
48 // resource. Resources for which hidpi is not supported because of software | 51 // resource. Resources for which hidpi is not supported because of software |
49 // reasons will show up pixelated. | 52 // reasons will show up pixelated. |
50 const char kHighlightMissingScaledResources[] = | 53 const char kHighlightMissingScaledResources[] = |
51 "highlight-missing-scaled-resources"; | 54 "highlight-missing-scaled-resources"; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 #endif | 103 #endif |
101 | 104 |
102 #if defined(TOOLKIT_VIEWS) && defined(OS_LINUX) | 105 #if defined(TOOLKIT_VIEWS) && defined(OS_LINUX) |
103 // Tells chrome to interpret events from these devices as touch events. Only | 106 // Tells chrome to interpret events from these devices as touch events. Only |
104 // available with XInput 2 (i.e. X server 1.8 or above). The id's of the | 107 // available with XInput 2 (i.e. X server 1.8 or above). The id's of the |
105 // devices can be retrieved from 'xinput list'. | 108 // devices can be retrieved from 'xinput list'. |
106 const char kTouchDevices[] = "touch-devices"; | 109 const char kTouchDevices[] = "touch-devices"; |
107 #endif | 110 #endif |
108 | 111 |
109 } // namespace switches | 112 } // namespace switches |
OLD | NEW |