New issue
Advanced search Search tips

Issue 670840 link

Starred by 2 users

Issue metadata

Status: Archived
Owner:
Closed: Feb 2017
Cc:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug

Blocking:
issue 669964



Sign in to add a comment

Make ash-mus use wm::ShadowController/Shadow

Project Member Reported by sky@chromium.org, Dec 2 2016

Issue description

It has copies of these that talked to ui::Window. Now that ash is going to always use aura it should be possible to use the wm classes.
 

Comment 1 by sky@chromium.org, Dec 12 2016

Cc: est...@chromium.org sky@chromium.org jamescook@chromium.org
 Issue 671418  has been merged into this issue.

Comment 2 by sky@chromium.org, Feb 13 2017

Owner: sky@chromium.org
Status: Started (was: Untriaged)
I think not using ash's ShadowController in mash is partly to blame for 690546.
Project Member

Comment 5 by bugdroid1@chromium.org, Feb 15 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/5c71eb349c1b9f3e0624ad6f27ba0b09c666337f

commit 5c71eb349c1b9f3e0624ad6f27ba0b09c666337f
Author: sky <sky@chromium.org>
Date: Wed Feb 15 19:39:25 2017

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}

[modify] https://crrev.com/5c71eb349c1b9f3e0624ad6f27ba0b09c666337f/ash/mus/window_manager.cc
[modify] https://crrev.com/5c71eb349c1b9f3e0624ad6f27ba0b09c666337f/chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc
[modify] https://crrev.com/5c71eb349c1b9f3e0624ad6f27ba0b09c666337f/components/exo/shell_surface_unittest.cc
[modify] https://crrev.com/5c71eb349c1b9f3e0624ad6f27ba0b09c666337f/services/ui/public/interfaces/window_manager.mojom
[modify] https://crrev.com/5c71eb349c1b9f3e0624ad6f27ba0b09c666337f/services/ui/ws/window_manager_state.cc
[modify] https://crrev.com/5c71eb349c1b9f3e0624ad6f27ba0b09c666337f/ui/aura/mus/property_converter.cc
[modify] https://crrev.com/5c71eb349c1b9f3e0624ad6f27ba0b09c666337f/ui/aura/mus/property_converter.h
[modify] https://crrev.com/5c71eb349c1b9f3e0624ad6f27ba0b09c666337f/ui/aura/mus/property_converter_unittest.cc
[modify] https://crrev.com/5c71eb349c1b9f3e0624ad6f27ba0b09c666337f/ui/views/mus/desktop_window_tree_host_mus.cc
[modify] https://crrev.com/5c71eb349c1b9f3e0624ad6f27ba0b09c666337f/ui/views/mus/desktop_window_tree_host_mus.h
[modify] https://crrev.com/5c71eb349c1b9f3e0624ad6f27ba0b09c666337f/ui/views/mus/desktop_window_tree_host_mus_unittest.cc
[modify] https://crrev.com/5c71eb349c1b9f3e0624ad6f27ba0b09c666337f/ui/views/mus/mus_client.cc
[modify] https://crrev.com/5c71eb349c1b9f3e0624ad6f27ba0b09c666337f/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
[modify] https://crrev.com/5c71eb349c1b9f3e0624ad6f27ba0b09c666337f/ui/views/widget/desktop_aura/desktop_window_tree_host.h
[modify] https://crrev.com/5c71eb349c1b9f3e0624ad6f27ba0b09c666337f/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
[modify] https://crrev.com/5c71eb349c1b9f3e0624ad6f27ba0b09c666337f/ui/views/widget/desktop_aura/desktop_window_tree_host_win.h
[modify] https://crrev.com/5c71eb349c1b9f3e0624ad6f27ba0b09c666337f/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc
[modify] https://crrev.com/5c71eb349c1b9f3e0624ad6f27ba0b09c666337f/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h
[modify] https://crrev.com/5c71eb349c1b9f3e0624ad6f27ba0b09c666337f/ui/views/widget/native_widget_aura.cc
[modify] https://crrev.com/5c71eb349c1b9f3e0624ad6f27ba0b09c666337f/ui/views/widget/native_widget_aura.h
[modify] https://crrev.com/5c71eb349c1b9f3e0624ad6f27ba0b09c666337f/ui/wm/core/shadow.cc
[modify] https://crrev.com/5c71eb349c1b9f3e0624ad6f27ba0b09c666337f/ui/wm/core/shadow_controller.cc
[modify] https://crrev.com/5c71eb349c1b9f3e0624ad6f27ba0b09c666337f/ui/wm/core/shadow_types.cc
[modify] https://crrev.com/5c71eb349c1b9f3e0624ad6f27ba0b09c666337f/ui/wm/core/shadow_types.h

Comment 6 by sky@chromium.org, Feb 15 2017

Status: Fixed (was: Started)

Comment 7 by dchan@google.com, Apr 17 2017

Labels: VerifyIn-59

Comment 8 by dchan@google.com, May 30 2017

Labels: VerifyIn-60

Comment 9 by dchan@chromium.org, Aug 1 2017

Labels: VerifyIn-61

Comment 10 by dchan@chromium.org, Oct 14 2017

Status: Archived (was: Fixed)

Sign in to add a comment