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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: ui/base/ui_base_switches.cc
diff --git a/ui/base/ui_base_switches.cc b/ui/base/ui_base_switches.cc
index a955933e9045aa3afe78d08f0534b375c81d4187..acb9ccc937964fdc1d16ab37492ceb536c07668a 100644
--- a/ui/base/ui_base_switches.cc
+++ b/ui/base/ui_base_switches.cc
@@ -67,6 +67,11 @@ const char kTouchOptimizedUIDisabled[] = "disabled";
// Enables touch events on the side bezels.
const char kTouchSideBezels[] = "touch-side-bezels";
+#if defined(OS_ANDROID)
+// Uses the tablet specific UI components when available.
+const char kTabletUI[] = "tablet-ui";
+#endif
+
#if defined(USE_XI2_MT)
// The calibration factors given as "<left>,<right>,<top>,<bottom>".
const char kTouchCalibration[] = "touch-calibration";
« 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