| 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 // The default device scale factor to apply to the browser UI and | 9 // The default device scale factor to apply to the browser UI and |
| 10 // the contents in the absence of a viewport meta tag. | 10 // the contents in the absence of a viewport meta tag. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 const char kEnableTouchEvents[] = "enable-touch-events"; | 21 const char kEnableTouchEvents[] = "enable-touch-events"; |
| 22 | 22 |
| 23 // The language file that we want to try to open. Of the form | 23 // The language file that we want to try to open. Of the form |
| 24 // language[-country] where language is the 2 letter code from ISO-639. | 24 // language[-country] where language is the 2 letter code from ISO-639. |
| 25 const char kLang[] = "lang"; | 25 const char kLang[] = "lang"; |
| 26 | 26 |
| 27 // Loads 2x resources. These resource paks currently contain | 27 // Loads 2x resources. These resource paks currently contain |
| 28 // mix of 1x and 2x and loading them may break the UI on 2x display. | 28 // mix of 1x and 2x and loading them may break the UI on 2x display. |
| 29 const char kLoad2xResources[] = "load-2x-resources"; | 29 const char kLoad2xResources[] = "load-2x-resources"; |
| 30 | 30 |
| 31 // Generates a 2x version of resources for which no 2x version is available or |
| 32 // the 2x version is of an incorrect size and applies a red mask to the |
| 33 // resource. Resources for which hidpi is not supported because of software |
| 34 // reasons will show up pixelated. |
| 35 const char kHighlightMissing2xResources[] = |
| 36 "highlight-missing-2x-resources"; |
| 37 |
| 31 // Load the locale resources from the given path. When running on Mac/Unix the | 38 // Load the locale resources from the given path. When running on Mac/Unix the |
| 32 // path should point to a locale.pak file. | 39 // path should point to a locale.pak file. |
| 33 const char kLocalePak[] = "locale_pak"; | 40 const char kLocalePak[] = "locale_pak"; |
| 34 | 41 |
| 35 // Disable ui::MessageBox. This is useful when running as part of scripts that | 42 // Disable ui::MessageBox. This is useful when running as part of scripts that |
| 36 // do not have a user interface. | 43 // do not have a user interface. |
| 37 const char kNoMessageBox[] = "no-message-box"; | 44 const char kNoMessageBox[] = "no-message-box"; |
| 38 | 45 |
| 39 // Enables UI changes that make it easier to use with a touchscreen. | 46 // Enables UI changes that make it easier to use with a touchscreen. |
| 40 // WARNING: Do not check this flag directly when deciding what UI to draw, | 47 // WARNING: Do not check this flag directly when deciding what UI to draw, |
| (...skipping 15 matching lines...) Expand all Loading... |
| 56 #endif | 63 #endif |
| 57 | 64 |
| 58 #if defined(TOOLKIT_VIEWS) && defined(OS_LINUX) | 65 #if defined(TOOLKIT_VIEWS) && defined(OS_LINUX) |
| 59 // Tells chrome to interpret events from these devices as touch events. Only | 66 // Tells chrome to interpret events from these devices as touch events. Only |
| 60 // available with XInput 2 (i.e. X server 1.8 or above). The id's of the | 67 // available with XInput 2 (i.e. X server 1.8 or above). The id's of the |
| 61 // devices can be retrieved from 'xinput list'. | 68 // devices can be retrieved from 'xinput list'. |
| 62 const char kTouchDevices[] = "touch-devices"; | 69 const char kTouchDevices[] = "touch-devices"; |
| 63 #endif | 70 #endif |
| 64 | 71 |
| 65 } // namespace switches | 72 } // namespace switches |
| OLD | NEW |