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

Issue 7273079: Introducing TOOLKIT_USES_PURE_VIEWS (Closed)

Created:
9 years, 5 months ago by Emmanuel Saint-loubert-Bié
Modified:
9 years, 5 months ago
Reviewers:
oshima
CC:
chromium-reviews, dhollowa, sadrul
Visibility:
Public.

Description

As per oshima: The ultimate goal is to eliminate TOOLKIT_USES_GTK. Once that migration is completed, TOOLKIT_VIEWS + OS_LINUX should be enough. Until this happens, we need a binary that: 1) has both gtk and pure-views 2) can enable pure views components with --use-pure-views when possible (this is default in touchui=1). If we could switch everything with --use-pure-views, that'd be nice, but the world is not perfect and there are things that cannot co-exist (such as message pump). For such component, we'll use GYP_DEFINES to switch. 1) TOOLKIT_USES_PURE_VIEWS is defined with toolkit_pure_views=1. 2) all (or most of) chrome features must be functional with toolkit_pure_views=1 3) both TOOLKIT_USES_GTK and TOOLKIT_USES_PURE_VIEWS are defined. The latter has higher priority (that is, if implementation can't co-exists, TOOLKIT_USE_PURE_VIEWS will take precedence). 4) As the migration proceeds, there will be less TOOLKIT_USES_GTK and more TOOLKIT_USES_PURE_VIEWS. 5) Once the migration is complete (that is, there is no TOOKIT_USES_GTK), we can remove TOOLKIT_USES_PURE_VIEWS or replace it with OS_LINUX when necessary. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=91164

Patch Set 1 #

Total comments: 6

Patch Set 2 : Applied Oshima's comments #

Patch Set 3 : Minor edit #

Total comments: 1

Patch Set 4 : Updated with Oshima's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -1 line) Patch
M build/common.gypi View 1 2 3 7 chunks +28 lines, -1 line 0 comments Download
M views/widget/widget.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Emmanuel Saint-loubert-Bié
9 years, 5 months ago (2011-06-29 21:35:52 UTC) #1
oshima
http://codereview.chromium.org/7273079/diff/1/build/common.gypi File build/common.gypi (right): http://codereview.chromium.org/7273079/diff/1/build/common.gypi#newcode24 build/common.gypi:24: # Whether the Views toolkit is Pure or GTK ...
9 years, 5 months ago (2011-06-30 00:06:32 UTC) #2
Emmanuel Saint-loubert-Bié
Oshima PTAL http://codereview.chromium.org/7273079/diff/1/build/common.gypi File build/common.gypi (right): http://codereview.chromium.org/7273079/diff/1/build/common.gypi#newcode24 build/common.gypi:24: # Whether the Views toolkit is Pure ...
9 years, 5 months ago (2011-06-30 00:23:29 UTC) #3
oshima
9 years, 5 months ago (2011-06-30 17:46:51 UTC) #4
Can you update the comment? then LGTM.

http://codereview.chromium.org/7273079/diff/1006/build/common.gypi
File build/common.gypi (right):

http://codereview.chromium.org/7273079/diff/1006/build/common.gypi#newcode29
build/common.gypi:29: # the remaining GTK code (which will diminish over time).
Can you incorporate something like below?

TOOLKIT_USES_PURE_VIEWS macro is used to replace 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.

Powered by Google App Engine
This is Rietveld 408576698