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

Unified Diff: mash/wm/non_client_frame_controller.cc

Issue 1492323003: Updates shadow when active window changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years 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 | « mash/wm/BUILD.gn ('k') | mash/wm/property_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/wm/non_client_frame_controller.cc
diff --git a/mash/wm/non_client_frame_controller.cc b/mash/wm/non_client_frame_controller.cc
index 4cd4027b37f0df76eaf3066749e5b1f2ba6e9b4a..ca8e9a63b58b62ee2d3690b4388c2dc134f5f427 100644
--- a/mash/wm/non_client_frame_controller.cc
+++ b/mash/wm/non_client_frame_controller.cc
@@ -117,7 +117,8 @@ class WmNativeWidgetMus : public views::NativeWidgetMus {
aura::WindowTreeHost* window_tree_host = GetNativeView()->GetHost();
// TODO(sky): shadow should be determined by window type.
shadow_.reset(new Shadow);
- shadow_->Init(Shadow::STYLE_ACTIVE);
+ shadow_->Init(Shadow::STYLE_INACTIVE);
+ SetShadow(window(), shadow_.get());
ContentWindowLayoutManager* layout_manager = new ContentWindowLayoutManager(
window_tree_host->window(), ShadowStyle::NORMAL, shadow_.get());
window_tree_host->window()->SetLayoutManager(layout_manager);
« no previous file with comments | « mash/wm/BUILD.gn ('k') | mash/wm/property_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698