summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authoroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-09 19:27:43 +0000
committeroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-09 19:27:43 +0000
commit29197f8cd1fd499128a2ad845a866313d4eeaf00 (patch)
tree137cc52803e518f7b4edd94b93ab0c89d6df8aa8 /build
parente7aa62a3bf6993369b5adb61028fddb3eb7a58bf (diff)
downloadchromium_src-29197f8cd1fd499128a2ad845a866313d4eeaf00.zip
chromium_src-29197f8cd1fd499128a2ad845a866313d4eeaf00.tar.gz
chromium_src-29197f8cd1fd499128a2ad845a866313d4eeaf00.tar.bz2
Floating point based Point/Size/Rect and Insets
This is copied from integer version, instead of using template, to minimize conflict with m19 branch, as using template requires updating forward declaration of these classes in many places. I put this behind gyp flag for now so that we can move forward without breaking non DIP build until we can get aura working with DIP. BUG=114664 TEST=none Review URL: http://codereview.chromium.org/10025004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131405 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r--build/common.gypi9
1 files changed, 9 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi
index d56a3b5..8ed6796 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -29,6 +29,9 @@
# Whether or not we are building the Ash shell.
'use_ash%': 0,
+ # Enable DIP (Density Independent Pixels) support.
+ 'enable_dip%': 0,
+
# Use OpenSSL instead of NSS. Under development: see http://crbug.com/62803
'use_openssl%': 0,
@@ -42,6 +45,7 @@
'chromeos%': '<(chromeos)',
'use_aura%': '<(use_aura)',
'use_ash%': '<(use_ash)',
+ 'enable_dip%': '<(enable_dip)',
'use_openssl%': '<(use_openssl)',
'use_virtual_keyboard%': '<(use_virtual_keyboard)',
'enable_viewport%': '<(enable_viewport)',
@@ -87,6 +91,7 @@
'toolkit_views%': '<(toolkit_views)',
'use_aura%': '<(use_aura)',
'use_ash%': '<(use_ash)',
+ 'enable_dip%': '<(enable_dip)',
'use_openssl%': '<(use_openssl)',
'use_virtual_keyboard%': '<(use_virtual_keyboard)',
'enable_viewport%': '<(enable_viewport)',
@@ -461,6 +466,7 @@
'ui_compositor_image_transport%': '<(ui_compositor_image_transport)',
'use_aura%': '<(use_aura)',
'use_ash%': '<(use_ash)',
+ 'enable_dip%': '<(enable_dip)',
'use_openssl%': '<(use_openssl)',
'use_nss%': '<(use_nss)',
'os_bsd%': '<(os_bsd)',
@@ -1184,6 +1190,9 @@
['use_ash==1', {
'defines': ['USE_ASH=1'],
}],
+ ['enable_dip==1', {
+ 'defines': ['ENABLE_DIP'],
+ }],
['use_nss==1', {
'defines': ['USE_NSS=1'],
}],