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

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: remove kTabletUI from chrome/common 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..24b7df39b8af643a7df06a47f5eb2db40f374ff0 100644
--- a/ui/base/ui_base_switches.cc
+++ b/ui/base/ui_base_switches.cc
@@ -50,6 +50,9 @@ const char kLocalePak[] = "locale_pak";
// do not have a user interface.
const char kNoMessageBox[] = "no-message-box";
+// Uses the tablet specific UI components when available
+const char kTabletUI[] = "tablet-ui";
Alexei Svitkine (slow) 2013/11/01 18:48:27 This should be ifdef android.
yao 2013/11/04 15:56:19 Done.
+
// Enables UI changes that make it easier to use with a touchscreen.
// WARNING: Do not check this flag directly when deciding what UI to draw,
// instead you must call ui::GetDisplayLayout
« ui/base/ui_base_switches.h ('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