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

Unified Diff: ui/views/mus/desktop_window_tree_host_mus.cc

Issue 2694213003: mash: wires up shadows for mash (Closed)
Patch Set: defaults test Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/mus/desktop_window_tree_host_mus.h ('k') | ui/views/mus/desktop_window_tree_host_mus_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/desktop_window_tree_host_mus.cc
diff --git a/ui/views/mus/desktop_window_tree_host_mus.cc b/ui/views/mus/desktop_window_tree_host_mus.cc
index 26389b854b63277f398c351ed06a4e1e3b6a0313..3bd57d5dc174975b108ba1bb20130ecec810aab6 100644
--- a/ui/views/mus/desktop_window_tree_host_mus.cc
+++ b/ui/views/mus/desktop_window_tree_host_mus.cc
@@ -287,6 +287,8 @@ void DesktopWindowTreeHostMus::Init(aura::Window* content_window,
aura::client::SetCursorClient(window(), cursor_manager_.get());
InitHost();
+ NativeWidgetAura::SetShadowElevationFromInitParams(window(), params);
+
// Transient parents are connected using the Window created by WindowTreeHost,
// which is owned by the window manager. This way the window manager can
// properly identify and honor transients.
@@ -717,6 +719,11 @@ bool DesktopWindowTreeHostMus::ShouldUseDesktopNativeCursorManager() const {
return false;
}
+bool DesktopWindowTreeHostMus::ShouldCreateVisibilityController() const {
+ // Window manager takes care of all top-level window animations.
+ return false;
+}
+
void DesktopWindowTreeHostMus::OnWindowManagerFrameValuesChanged() {
NonClientView* non_client_view =
native_widget_delegate_->AsWidget()->non_client_view();
« no previous file with comments | « ui/views/mus/desktop_window_tree_host_mus.h ('k') | ui/views/mus/desktop_window_tree_host_mus_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698