| 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 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 // Enables touch event based drag and drop. | 27 // Enables touch event based drag and drop. |
| 28 const char kEnableTouchDragDrop[] = "enable-touch-drag-drop"; | 28 const char kEnableTouchDragDrop[] = "enable-touch-drag-drop"; |
| 29 | 29 |
| 30 // Enables controls that support touch base text editing. | 30 // Enables controls that support touch base text editing. |
| 31 const char kEnableTouchEditing[] = "enable-touch-editing"; | 31 const char kEnableTouchEditing[] = "enable-touch-editing"; |
| 32 | 32 |
| 33 // Enables the Views textfield on Windows. | 33 // Enables the Views textfield on Windows. |
| 34 const char kEnableViewsTextfield[] = "enable-views-textfield"; | 34 const char kEnableViewsTextfield[] = "enable-views-textfield"; |
| 35 | 35 |
| 36 // Overrides the device scale factor for the browser UI and the contents. | |
| 37 const char kForceDeviceScaleFactor[] = "force-device-scale-factor"; | |
| 38 | |
| 39 // If a resource is requested at a scale factor at which it is not available | 36 // If a resource is requested at a scale factor at which it is not available |
| 40 // or the resource is the incorrect size (based on the size of the 1x resource), | 37 // or the resource is the incorrect size (based on the size of the 1x resource), |
| 41 // generates the missing resource and applies a red mask to the generated | 38 // generates the missing resource and applies a red mask to the generated |
| 42 // resource. Resources for which hidpi is not supported because of software | 39 // resource. Resources for which hidpi is not supported because of software |
| 43 // reasons will show up pixelated. | 40 // reasons will show up pixelated. |
| 44 const char kHighlightMissingScaledResources[] = | 41 const char kHighlightMissingScaledResources[] = |
| 45 "highlight-missing-scaled-resources"; | 42 "highlight-missing-scaled-resources"; |
| 46 | 43 |
| 47 // The language file that we want to try to open. Of the form | 44 // The language file that we want to try to open. Of the form |
| 48 // language[-country] where language is the 2 letter code from ISO-639. | 45 // language[-country] where language is the 2 letter code from ISO-639. |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 #endif | 87 #endif |
| 91 | 88 |
| 92 #if defined(TOOLKIT_VIEWS) && defined(OS_LINUX) | 89 #if defined(TOOLKIT_VIEWS) && defined(OS_LINUX) |
| 93 // Tells chrome to interpret events from these devices as touch events. Only | 90 // 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 | 91 // 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'. | 92 // devices can be retrieved from 'xinput list'. |
| 96 const char kTouchDevices[] = "touch-devices"; | 93 const char kTouchDevices[] = "touch-devices"; |
| 97 #endif | 94 #endif |
| 98 | 95 |
| 99 } // namespace switches | 96 } // namespace switches |
| OLD | NEW |