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 |
| 10 // the contents in the absence of a viewport meta tag. |
| 11 const char kDefaultDeviceScaleFactor[] = "default-device-scale-factor"; |
| 12 |
9 // Enable support for touch events. | 13 // Enable support for touch events. |
10 const char kEnableTouchEvents[] = "enable-touch-events"; | 14 const char kEnableTouchEvents[] = "enable-touch-events"; |
11 | 15 |
12 // The language file that we want to try to open. Of the form | 16 // The language file that we want to try to open. Of the form |
13 // language[-country] where language is the 2 letter code from ISO-639. | 17 // language[-country] where language is the 2 letter code from ISO-639. |
14 const char kLang[] = "lang"; | 18 const char kLang[] = "lang"; |
15 | 19 |
16 // Load the locale resources from the given path. When running on Mac/Unix the | 20 // Load the locale resources from the given path. When running on Mac/Unix the |
17 // path should point to a locale.pak file. | 21 // path should point to a locale.pak file. |
18 const char kLocalePak[] = "locale_pak"; | 22 const char kLocalePak[] = "locale_pak"; |
19 | 23 |
20 // Disable ui::MessageBox. This is useful when running as part of scripts that | 24 // Disable ui::MessageBox. This is useful when running as part of scripts that |
21 // do not have a user interface. | 25 // do not have a user interface. |
22 const char kNoMessageBox[] = "no-message-box"; | 26 const char kNoMessageBox[] = "no-message-box"; |
23 | 27 |
24 // Enables UI changes that make it easier to use with a touchscreen. | 28 // Enables UI changes that make it easier to use with a touchscreen. |
25 const char kTouchOptimizedUI[] = "touch-optimized-ui"; | 29 const char kTouchOptimizedUI[] = "touch-optimized-ui"; |
26 | 30 |
27 #if defined(OS_MACOSX) | 31 #if defined(OS_MACOSX) |
28 const char kDisableCompositedCoreAnimationPlugins[] = | 32 const char kDisableCompositedCoreAnimationPlugins[] = |
29 "disable-composited-core-animation-plugins"; | 33 "disable-composited-core-animation-plugins"; |
30 #endif | 34 #endif |
31 | 35 |
32 } // namespace switches | 36 } // namespace switches |
OLD | NEW |