DescriptionMacViews: Initial chrome_browser_ui.gypi support for views on mac
Allows target `chrome` to compile on Mac with toolkit-views. (It also
runs!)
This CL effectively renames the `chrome_browser_ui_views_sources`
sources list to `chrome_browser_ui_views_non_mac_sources`.
chrome_browser_ui_views_sources is now just the subset of files which
are ready for toolkit views on mac.
A use_aura condition becomes toolkit_views to control the filtering of
browser/ui/views/. This also enables other, ready views files for
compilation on a mac toolkit-views build: That is, those not currently
listed in chrome_browser_ui_views_sources, but with a browser/ui/views
prefix (e.g. browser/ui/views/app_list/). This would also include
task_manager_view.cc, which isn't ready, so it's dealt with separately.
For sizes, the linker is still able to do a good job pruning. A local
official/release build for `Google Chrome Framework` suggests this will
regress sizes just a small amount. Additionally enabling the views task
manager (patchset 8) ensures a sufficiently interesting portion of
views.a is linked as well, which regresses sizes more. Results:
Before: framework 78368kB, resources 45040kB
After: framework 78480kB, resources 45232kB (0.14%, 0.42%)
Later (with views+cocoa taskmanagers): 78796kB, resources 45244kB
(0.54%, 0.45% vs "before")
Note those numbers are just a preview since this CL doesn't have a
corresponding change in common.gypi to set toolkit-views=1 by default on
Mac.
BUG=390755
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=286355
Patch Set 1 : mac -> non_mac #Patch Set 2 : rebase #Patch Set 3 : rebase on crrev/381113004 #Patch Set 4 : rebase (r283122) #Patch Set 5 : Now based off master :o #Patch Set 6 : #ifdef instead #
Total comments: 6
Patch Set 7 : rebase onto master @r284384 #Patch Set 8 : With taskmanager: framework 78796k, resources 45244k #Patch Set 9 : remove taskmanager changes: framework 78480k, resources 45232k #
Messages
Total messages: 10 (0 generated)
|