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

Issue 375843002: MacViews: Initial chrome_browser_ui.gypi support for views on mac (Closed)

Created:
6 years, 5 months ago by tapted
Modified:
6 years, 4 months ago
Reviewers:
brettw, Andre, sky
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, mac-views-reviews_chromium.org
Project:
chromium
Visibility:
Public.

Description

MacViews: 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -25 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -2 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 10 chunks +29 lines, -22 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Andre
https://codereview.chromium.org/375843002/diff/180001/chrome/chrome_browser_ui.gypi File chrome/chrome_browser_ui.gypi (right): https://codereview.chromium.org/375843002/diff/180001/chrome/chrome_browser_ui.gypi#newcode1825 chrome/chrome_browser_ui.gypi:1825: 'chrome_browser_ui_task_manager_non_mac_sources': [ I think TaskManagerView is now ready for ...
6 years, 5 months ago (2014-07-18 20:08:57 UTC) #1
tapted
https://codereview.chromium.org/375843002/diff/180001/chrome/chrome_browser_ui.gypi File chrome/chrome_browser_ui.gypi (right): https://codereview.chromium.org/375843002/diff/180001/chrome/chrome_browser_ui.gypi#newcode1830 chrome/chrome_browser_ui.gypi:1830: 'browser/ui/cocoa/task_manager_mac.mm', On 2014/07/18 20:08:57, Andre wrote: > These 2 ...
6 years, 5 months ago (2014-07-23 03:20:32 UTC) #2
tapted
Not for review yet (although it shouldn't change too much). But I have some really ...
6 years, 5 months ago (2014-07-23 03:20:39 UTC) #3
tapted
https://codereview.chromium.org/375843002/diff/180001/chrome/chrome_browser_ui.gypi File chrome/chrome_browser_ui.gypi (right): https://codereview.chromium.org/375843002/diff/180001/chrome/chrome_browser_ui.gypi#newcode1830 chrome/chrome_browser_ui.gypi:1830: 'browser/ui/cocoa/task_manager_mac.mm', On 2014/07/23 03:20:31, tapted wrote: > On 2014/07/18 ...
6 years, 4 months ago (2014-07-29 08:04:10 UTC) #4
tapted
Hi sky and brettw - please take a look. This is now just changes to ...
6 years, 4 months ago (2014-07-29 08:29:33 UTC) #5
sky
LGTM
6 years, 4 months ago (2014-07-29 17:23:12 UTC) #6
brettw
lgtm
6 years, 4 months ago (2014-07-29 20:33:25 UTC) #7
tapted
The CQ bit was checked by tapted@chromium.org
6 years, 4 months ago (2014-07-29 23:09:29 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tapted@chromium.org/375843002/240001
6 years, 4 months ago (2014-07-29 23:10:38 UTC) #9
commit-bot: I haz the power
6 years, 4 months ago (2014-07-30 00:10:45 UTC) #10
Message was sent while issue was closed.
Change committed as 286355

Powered by Google App Engine
This is Rietveld 408576698