summaryrefslogtreecommitdiffstats
path: root/ui/ui.gyp
diff options
context:
space:
mode:
authoryiyaoliu@chromium.org <yiyaoliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-07 21:52:05 +0000
committeryiyaoliu@chromium.org <yiyaoliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-07 21:52:05 +0000
commite659b4bee3ac8351072862af9c9fda5d90239750 (patch)
tree1e9ddcd353ef6f2c01f2ed2fd9bb5546f90bccf8 /ui/ui.gyp
parent530af5a1a500313993c5a1607a8c1691a0c2eaf1 (diff)
downloadchromium_src-e659b4bee3ac8351072862af9c9fda5d90239750.zip
chromium_src-e659b4bee3ac8351072862af9c9fda5d90239750.tar.gz
chromium_src-e659b4bee3ac8351072862af9c9fda5d90239750.tar.bz2
Add cross-platform API to get the form factor of the device
This API returns whether the device is a phone or a tablet for Android and iOS (for other platforms, it always returns the device as being desktop). The new API is placed in //ui rather than //chrome in order to make it accessible to components. BUG=312903 Review URL: https://codereview.chromium.org/50603005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233697 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/ui.gyp')
-rw-r--r--ui/ui.gyp9
1 files changed, 9 insertions, 0 deletions
diff --git a/ui/ui.gyp b/ui/ui.gyp
index b167374..d0b75cd 100644
--- a/ui/ui.gyp
+++ b/ui/ui.gyp
@@ -141,6 +141,10 @@
'base/default_theme_provider.cc',
'base/default_theme_provider.h',
'base/default_theme_provider_mac.mm',
+ 'base/device_form_factor_android.cc',
+ 'base/device_form_factor_desktop.cc',
+ 'base/device_form_factor_ios.mm',
+ 'base/device_form_factor.h',
'base/dragdrop/cocoa_dnd_util.h',
'base/dragdrop/cocoa_dnd_util.mm',
'base/dragdrop/drag_drop_types.h',
@@ -568,6 +572,11 @@
'ui_java',
],
}],
+ ['OS=="android" or OS=="ios"', {
+ 'sources!': [
+ 'base/device_form_factor_desktop.cc'
+ ],
+ }],
['OS=="linux"', {
'libraries': [
'-ldl',