|
|
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
Total comments: 20
|
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
|
Total messages: 27 (19 generated)
|