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

Issue 2694213003: mash: wires up shadows for mash (Closed)

Created:
3 years, 10 months ago by sky
Modified:
3 years, 10 months ago
Reviewers:
Tom Sepez, msw, reveman
CC:
Aaron Boodman, abarth-chromium, chromium-reviews, darin (slow to review), Evan Stade, kalyank, qsr+mojo_chromium.org, rjkroege, sadrul, tfarina, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mash: wires up shadows for mash Specifically Widget::InitParams::shadow_type/shadow_elevation weren't plumbed through for DesktopWindowTreeHostMus. This meant the types weren't applied at to the aura::Window. They also weren't routed through the PropertyConverter. ShadowController is an EnvObserver. ShadowController runs both in mus and clients. Previously ShadowController keyed off new aura::Window creation to set the ShadowElevation property. This is problematic for the mus case as we want mus to make the decisions about shadows (unless a client has a specific requirement). To get this to work with mus I added a new shadow elevation type, DEFAULT, which means the shadow should be chosen based on the window type. ShadowController no longer sets the shadow type, instead it keys of the existing type and maps DEFAULT accordingly. This way mash sees DEFAULT and creates the right shadow. BUG=690546 670840 TEST=none R=msw@chromium.org Review-Url: https://codereview.chromium.org/2694213003 Cr-Commit-Position: refs/heads/master@{#450775} Committed: https://chromium.googlesource.com/chromium/src/+/5c71eb349c1b9f3e0624ad6f27ba0b09c666337f

Patch Set 1 #

Patch Set 2 : cleanup #

Total comments: 20

Patch Set 3 : feedback #

Patch Set 4 : defaults test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+186 lines, -66 lines) Patch
M ash/mus/window_manager.cc View 1 2 3 chunks +8 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M components/exo/shell_surface_unittest.cc View 4 chunks +9 lines, -5 lines 0 comments Download
M services/ui/public/interfaces/window_manager.mojom View 1 chunk +3 lines, -0 lines 0 comments Download
M services/ui/ws/window_manager_state.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M ui/aura/mus/property_converter.h View 1 3 chunks +10 lines, -1 line 0 comments Download
M ui/aura/mus/property_converter.cc View 2 chunks +12 lines, -2 lines 0 comments Download
M ui/aura/mus/property_converter_unittest.cc View 7 chunks +14 lines, -0 lines 0 comments Download
M ui/views/mus/desktop_window_tree_host_mus.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/mus/desktop_window_tree_host_mus.cc View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M ui/views/mus/desktop_window_tree_host_mus_unittest.cc View 1 2 3 2 chunks +29 lines, -0 lines 0 comments Download
M ui/views/mus/mus_client.cc View 1 2 4 chunks +28 lines, -21 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_native_widget_aura.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_win.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/widget/native_widget_aura.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M ui/views/widget/native_widget_aura.cc View 2 chunks +13 lines, -6 lines 0 comments Download
M ui/wm/core/shadow.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M ui/wm/core/shadow_controller.cc View 1 2 4 chunks +13 lines, -4 lines 0 comments Download
M ui/wm/core/shadow_types.h View 2 chunks +7 lines, -4 lines 0 comments Download
M ui/wm/core/shadow_types.cc View 1 1 chunk +6 lines, -10 lines 0 comments Download

Messages

Total messages: 27 (19 generated)
sky
reveman: exo (I move GetShadowElevation to the exo test as that is the only place ...
3 years, 10 months ago (2017-02-15 00:08:37 UTC) #3
Tom Sepez
lgtm
3 years, 10 months ago (2017-02-15 00:34:40 UTC) #6
msw
+CC estade (he recently added the shadow elevation code) https://codereview.chromium.org/2694213003/diff/20001/ash/mus/window_manager.cc File ash/mus/window_manager.cc (right): https://codereview.chromium.org/2694213003/diff/20001/ash/mus/window_manager.cc#newcode323 ash/mus/window_manager.cc:323: ...
3 years, 10 months ago (2017-02-15 01:37:29 UTC) #7
sky
https://codereview.chromium.org/2694213003/diff/20001/ash/mus/window_manager.cc File ash/mus/window_manager.cc (right): https://codereview.chromium.org/2694213003/diff/20001/ash/mus/window_manager.cc#newcode323 ash/mus/window_manager.cc:323: return property_converter_->IsTransportNameRegistered(name); On 2017/02/15 01:37:29, msw wrote: > aside: ...
3 years, 10 months ago (2017-02-15 03:58:25 UTC) #10
msw
lgtm
3 years, 10 months ago (2017-02-15 18:04:30 UTC) #19
reveman
components/exo lgtm
3 years, 10 months ago (2017-02-15 18:09:52 UTC) #20
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/2694213003/60001
3 years, 10 months ago (2017-02-15 18:20:05 UTC) #23
commit-bot: I haz the power
3 years, 10 months ago (2017-02-15 19:43:53 UTC) #27
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/5c71eb349c1b9f3e0624ad6f27ba...

Powered by Google App Engine
This is Rietveld 408576698