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

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

Issue 50603005: Add cross-platform API to get the form factor of the device (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: small formatting changes Created 7 years, 1 month 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
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 // 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // auto: Enabled on monitors which have touchscreen support (default). 60 // auto: Enabled on monitors which have touchscreen support (default).
61 const char kTouchOptimizedUIAuto[] = "auto"; 61 const char kTouchOptimizedUIAuto[] = "auto";
62 // enabled: always optimized for touch (even if no touch support). 62 // enabled: always optimized for touch (even if no touch support).
63 const char kTouchOptimizedUIEnabled[] = "enabled"; 63 const char kTouchOptimizedUIEnabled[] = "enabled";
64 // disabled: never optimized for touch. 64 // disabled: never optimized for touch.
65 const char kTouchOptimizedUIDisabled[] = "disabled"; 65 const char kTouchOptimizedUIDisabled[] = "disabled";
66 66
67 // Enables touch events on the side bezels. 67 // Enables touch events on the side bezels.
68 const char kTouchSideBezels[] = "touch-side-bezels"; 68 const char kTouchSideBezels[] = "touch-side-bezels";
69 69
70 #if defined(OS_ANDROID)
71 // Uses the tablet specific UI components when available.
72 const char kTabletUI[] = "tablet-ui";
73 #endif
74
70 #if defined(USE_XI2_MT) 75 #if defined(USE_XI2_MT)
71 // The calibration factors given as "<left>,<right>,<top>,<bottom>". 76 // The calibration factors given as "<left>,<right>,<top>,<bottom>".
72 const char kTouchCalibration[] = "touch-calibration"; 77 const char kTouchCalibration[] = "touch-calibration";
73 #endif 78 #endif
74 79
75 } // namespace switches 80 } // namespace switches
OLDNEW
« ui/base/device_form_factor_ios.mm ('K') | « ui/base/ui_base_switches.h ('k') | ui/ui.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698