summaryrefslogtreecommitdiffstats
path: root/build/common.gypi
diff options
context:
space:
mode:
authorsaintlou@chromium.org <saintlou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-13 02:50:22 +0000
committersaintlou@chromium.org <saintlou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-13 02:50:22 +0000
commitfd88a8846f9024e104e549188b16803a135e1fc5 (patch)
tree857b0c74bf5c0c68e2ab672c0cb9b6eeb08eca07 /build/common.gypi
parent7a20ff6604a8ba6398eb4f357894072c61698e65 (diff)
downloadchromium_src-fd88a8846f9024e104e549188b16803a135e1fc5.zip
chromium_src-fd88a8846f9024e104e549188b16803a135e1fc5.tar.gz
chromium_src-fd88a8846f9024e104e549188b16803a135e1fc5.tar.bz2
Up to now the only touch UI was running Pure Views. However, we want to improve Pure Views for Chromium and ChromiumOS benefit independently of Touch. And therefore make the "use_only_pure_views" orthogonal so that it can be enabled with chromeos==0 or ==1 and/or with touchui==0.
The ultimate goal is to have toolkit_views <==> use_only_pure_views when all the GTK code has been removed from Views. Note: as a side-effect this should reduce the need to use #ifdef TOUCH_UI which in many cases shall be replaced by USE_ONLY_PURE_VIEWS. BUG=none TEST=none Review URL: http://codereview.chromium.org/7780012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100846 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/common.gypi')
-rw-r--r--build/common.gypi42
1 files changed, 19 insertions, 23 deletions
diff --git a/build/common.gypi b/build/common.gypi
index 821f94c..0e435d6 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -25,12 +25,8 @@
# or if it must only use GTK (the default at the moment).
# This is an intermediate step until all of Views is 'Pure',
# at which point we plan to remove those switches.
- # This turns on the TOOLKIT_USES_PURE_VIEWS macro which is used
- # to replace the corresponding GTK implementation in such a way
- # that GTK and PureViews can coexist. This intermediate solution
- # allow us to switch the view implementations using
- # --use-pure-views, without breaking exiting gtk implementation.
- 'toolkit_uses_pure_views%': 0,
+ # This turns on the USE_ONLY_PURE_VIEWS macro.
+ 'use_only_pure_views%': 0,
# Disable touch support by default.
'touchui%': 0,
@@ -48,7 +44,7 @@
},
# Copy conditionally-set variables out one scope.
'chromeos%': '<(chromeos)',
- 'toolkit_uses_pure_views%': '<(toolkit_uses_pure_views)',
+ 'use_only_pure_views%': '<(use_only_pure_views)',
'touchui%': '<(touchui)',
'webui_dialogs%': '<(webui_dialogs)',
'views_compositor%': '<(views_compositor)',
@@ -66,23 +62,23 @@
'<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s/arm.*/arm/;s/i86pc/ia32/")',
}],
- # Set default value of toolkit_views on for Windows, Chrome OS
- # and the touch UI.
- ['OS=="win" or chromeos==1 or touchui==1 or toolkit_uses_pure_views==1', {
+ # Set default value of toolkit_views on for Windows, Chrome OS,
+ # Touch and PureView.
+ ['OS=="win" or chromeos==1 or touchui==1 or use_only_pure_views==1', {
'toolkit_views%': 1,
}, {
'toolkit_views%': 0,
}],
- # Views are always Pure in Touch case
+ # Views are always Pure in Touch case.
['touchui==1', {
- 'toolkit_uses_pure_views%': 1,
+ 'use_only_pure_views%': 1,
}, {
- 'toolkit_uses_pure_views%': 0,
+ 'use_only_pure_views%': 0,
}],
- # Use WebUI dialogs in TouchUI builds.
- ['touchui==1', {
+ # Use WebUI dialogs in TouchUI and PureView builds.
+ ['touchui==1 or use_only_pure_views==1', {
'webui_dialogs%': 1,
}],
@@ -99,7 +95,7 @@
'webui_dialogs%': '<(webui_dialogs)',
'host_arch%': '<(host_arch)',
'toolkit_views%': '<(toolkit_views)',
- 'toolkit_uses_pure_views%': '<(toolkit_uses_pure_views)',
+ 'use_only_pure_views%': '<(use_only_pure_views)',
'views_compositor%': '<(views_compositor)',
'use_aura%': '<(use_aura)',
@@ -270,8 +266,8 @@
'file_manager_extension%': 0,
}],
- # Enable WebUI TaskManager only on Chrome OS and Touch UI.
- ['chromeos==1 or touchui==1', {
+ # Enable WebUI TaskManager only on Chrome OS, Touch or PureView.
+ ['chromeos==1 or touchui==1 or use_only_pure_views==1', {
'webui_task_manager%': 1,
}, {
'webui_task_manager%': 0,
@@ -293,7 +289,7 @@
'host_arch%': '<(host_arch)',
'library%': 'static_library',
'toolkit_views%': '<(toolkit_views)',
- 'toolkit_uses_pure_views%': '<(toolkit_uses_pure_views)',
+ 'use_only_pure_views%': '<(use_only_pure_views)',
'views_compositor%': '<(views_compositor)',
'use_aura%': '<(use_aura)',
'os_posix%': '<(os_posix)',
@@ -668,8 +664,8 @@
['toolkit_views==1', {
'grit_defines': ['-D', 'toolkit_views'],
}],
- ['toolkit_uses_pure_views==1', {
- 'grit_defines': ['-D', 'toolkit_uses_pure_views'],
+ ['use_only_pure_views==1', {
+ 'grit_defines': ['-D', 'use_only_pure_views'],
}],
['touchui==1', {
'grit_defines': ['-D', 'touchui'],
@@ -781,8 +777,8 @@
['toolkit_views==1', {
'defines': ['TOOLKIT_VIEWS=1'],
}],
- ['toolkit_uses_pure_views==1', {
- 'defines': ['TOOLKIT_USES_PURE_VIEWS=1'],
+ ['use_only_pure_views==1', {
+ 'defines': ['USE_ONLY_PURE_VIEWS=1'],
}],
['views_compositor==1', {
'defines': ['VIEWS_COMPOSITOR=1'],