Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(388)

Side by Side Diff: ui/base/ui_base_switches.cc

Issue 10255020: Get the default device scale factor from monitor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updated comment Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/base/ui_base_switches.h ('k') | ui/gfx/monitor.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« no previous file with comments | « ui/base/ui_base_switches.h ('k') | ui/gfx/monitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698