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

Side by Side Diff: chrome/common/form_factor_ios.mm

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, 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
(Empty)
1 // Copyright
2
3 #include "form_factor.h"
4
5 Study_FormFactor GetFormFactor() {
6 UIUserInterfaceIdiom idiom = [[UIDevice currentDevice] userInterfaceIdiom];
Alexei Svitkine (slow) 2013/10/29 15:26:21 This probably needs some include. You can probably
yao 2013/10/29 19:21:57 Done.
7 if (idiom == UIUserInterfaceIdiomPad) {
8 return Study_FormFactor_TABLET;
9 }
10 return Study_FormFactor_PHONE;
11 }
OLDNEW
« chrome/common/form_factor_android.cc ('K') | « chrome/common/form_factor_desktop.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698