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

Issue 2724693002: mash: improves browser frame decorations (Closed)

Created:
3 years, 9 months ago by sky
Modified:
3 years, 9 months ago
Reviewers:
Tom Sepez, James Cook
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, sadrul, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, tfarina, hidehiko+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, lhchavez+watch_chromium.org, victorhsieh+watch_chromium.org, oshima+watch_chromium.org, kalyank, darin (slow to review), davemoore+watch_chromium.org, yusukes+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mash: improves frame rendering in mash BrowserFrameMus was created more than a year ago and had gotten a bit out of sync with other ash changes. This change gets browser windows looking better, but is really just a start. We really need to promote BrowserHeaderPainter to ash, but that's a bigger project. As I believe the non-client area should be rendered by ash we need a way for clients to signal they want windows to look like browser windows. This adds a WindowStyle that is meant to indicate that. This also makes DesktopWindowTreeHostMus windows opacity honor that set in the initparams, which is needed for browser windows as they are transparent. Lastly adds a couple of names to some of the apps, and makes the name of a Widget be set on the top-level window. BUG=697206 TEST=none Review-Url: https://codereview.chromium.org/2724693002 Cr-Commit-Position: refs/heads/master@{#454938} Committed: https://chromium.googlesource.com/chromium/src/+/b5e2126f04fe0ee4d9d418e2c2fa617bb7e37b97

Patch Set 1 #

Patch Set 2 : cleanup #

Total comments: 10

Patch Set 3 : comments #

Patch Set 4 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+230 lines, -62 lines) Patch
M ash/common/frame/custom_frame_view_ash.h View 4 chunks +10 lines, -1 line 0 comments Download
M ash/common/frame/custom_frame_view_ash.cc View 1 2 3 6 chunks +27 lines, -5 lines 0 comments Download
M ash/common/frame/default_header_painter.h View 3 chunks +4 lines, -1 line 0 comments Download
M ash/common/frame/default_header_painter.cc View 2 chunks +16 lines, -5 lines 0 comments Download
M ash/common/frame/header_view.h View 1 2 chunks +4 lines, -1 line 0 comments Download
M ash/common/frame/header_view.cc View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M ash/mus/frame/custom_frame_view_mus.h View 1 chunk +2 lines, -1 line 0 comments Download
M ash/mus/frame/custom_frame_view_mus.cc View 1 chunk +6 lines, -2 lines 0 comments Download
M ash/mus/non_client_frame_controller.cc View 1 2 8 chunks +24 lines, -9 lines 0 comments Download
M ash/mus/property_util.h View 2 chunks +6 lines, -0 lines 0 comments Download
M ash/mus/property_util.cc View 1 2 chunks +12 lines, -0 lines 0 comments Download
M ash/public/cpp/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
A ash/public/cpp/window_style.h View 1 chunk +19 lines, -0 lines 0 comments Download
A ash/public/cpp/window_style.cc View 1 1 chunk +16 lines, -0 lines 0 comments Download
M ash/public/interfaces/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
A ash/public/interfaces/window_style.mojom View 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_frame_mus.cc View 3 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_mus.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_mus.cc View 8 chunks +35 lines, -28 lines 0 comments Download
M chrome/browser/ui/views/status_bubble_views.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M mash/quick_launch/quick_launch.cc View 2 chunks +3 lines, -0 lines 0 comments Download
M ui/views/mus/desktop_window_tree_host_mus.cc View 1 2 2 chunks +13 lines, -3 lines 0 comments Download
M ui/wm/core/shadow_types.h View 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 19 (11 generated)
sky
tsepez: mojom changes jamescook: the rest
3 years, 9 months ago (2017-03-02 18:38:26 UTC) #4
Tom Sepez
mojom LGTM
3 years, 9 months ago (2017-03-02 19:07:25 UTC) #7
James Cook
https://codereview.chromium.org/2724693002/diff/20001/ash/common/frame/custom_frame_view_ash.cc File ash/common/frame/custom_frame_view_ash.cc (right): https://codereview.chromium.org/2724693002/diff/20001/ash/common/frame/custom_frame_view_ash.cc#newcode140 ash/common/frame/custom_frame_view_ash.cc:140: base::Optional<int> header_height_; This makes sense as Optional. https://codereview.chromium.org/2724693002/diff/20001/ash/common/frame/custom_frame_view_ash.h File ...
3 years, 9 months ago (2017-03-02 21:00:01 UTC) #10
sky
https://codereview.chromium.org/2724693002/diff/20001/ash/common/frame/custom_frame_view_ash.h File ash/common/frame/custom_frame_view_ash.h (right): https://codereview.chromium.org/2724693002/diff/20001/ash/common/frame/custom_frame_view_ash.h#newcode65 ash/common/frame/custom_frame_view_ash.h:65: void SetHeaderHeight(base::Optional<int> height); On 2017/03/02 21:00:00, James Cook wrote: ...
3 years, 9 months ago (2017-03-02 21:28:42 UTC) #11
James Cook
https://codereview.chromium.org/2724693002/diff/20001/ash/common/frame/custom_frame_view_ash.h File ash/common/frame/custom_frame_view_ash.h (right): https://codereview.chromium.org/2724693002/diff/20001/ash/common/frame/custom_frame_view_ash.h#newcode65 ash/common/frame/custom_frame_view_ash.h:65: void SetHeaderHeight(base::Optional<int> height); On 2017/03/02 21:28:42, sky wrote: > ...
3 years, 9 months ago (2017-03-02 21:44:24 UTC) #12
James Cook
LGTM per hallway discussion
3 years, 9 months ago (2017-03-02 23:52:55 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2724693002/60001
3 years, 9 months ago (2017-03-06 19:12:00 UTC) #16
commit-bot: I haz the power
3 years, 9 months ago (2017-03-06 20:26:02 UTC) #19
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/b5e2126f04fe0ee4d9d418e2c2fa...

Powered by Google App Engine
This is Rietveld 408576698