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

Unified Diff: chrome/common/form_factor.h

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: Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/form_factor.h
diff --git a/chrome/common/form_factor.h b/chrome/common/form_factor.h
new file mode 100644
index 0000000000000000000000000000000000000000..6c778d2ff46d862fa2a3793d37f8496a851fb4c2
--- /dev/null
+++ b/chrome/common/form_factor.h
@@ -0,0 +1,14 @@
+// Copyright
Alexei Svitkine (slow) 2013/10/29 15:26:21 Use the following copyright blob (in all the files
yao 2013/10/29 19:21:57 Done.
+
+#ifndef CHROME_COMMON_FORM_FACTOR_H_
+#define CHROME_COMMON_FORM_FACTOR_H_
+
+enum Study_FormFactor {
Alexei Svitkine (slow) 2013/10/29 15:26:21 This should be a different enum than the variation
yao 2013/10/29 19:21:57 Done.
+ Study_FormFactor_DESKTOP = 0,
+ Study_FormFactor_PHONE = 1,
+ Study_FormFactor_TABLET = 2
+};
+
+Study_FormFactor GetFormFactor();
Alexei Svitkine (slow) 2013/10/29 15:26:21 Needs a comment. Mention that on non-Android, non-
yao 2013/10/29 19:21:57 Done.
+
+#endif // CHROME_COMMON_FORM_FACTOR_H_

Powered by Google App Engine
This is Rietveld 408576698