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

Unified Diff: ash/common/wm/overview/window_grid.cc

Issue 2596743002: Replace WM shadow types (on/off) and styles (small/inactive/active) (Closed)
Patch Set: . Created 4 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
Index: ash/common/wm/overview/window_grid.cc
diff --git a/ash/common/wm/overview/window_grid.cc b/ash/common/wm/overview/window_grid.cc
index 428e046dbc5cfef92fb4fc51a030df6877fc98b9..bccb3fe41362731505c483c1614d8b5d216bb4a6 100644
--- a/ash/common/wm/overview/window_grid.cc
+++ b/ash/common/wm/overview/window_grid.cc
@@ -44,6 +44,7 @@
#include "ui/views/view.h"
#include "ui/views/widget/widget.h"
#include "ui/wm/core/shadow.h"
+#include "ui/wm/core/shadow_types.h"
#include "ui/wm/core/window_animations.h"
namespace ash {
@@ -675,7 +676,7 @@ void WindowGrid::InitSelectionWidget(WindowSelector::Direction direction) {
widget_window->SetName("OverviewModeSelector");
selector_shadow_.reset(new ::wm::Shadow());
- selector_shadow_->Init(::wm::Shadow::STYLE_ACTIVE);
+ selector_shadow_->Init(::wm::ShadowElevation::BIG);
sky 2017/01/03 22:35:38 Inside ShadowController you define kActiveNormalSh
Evan Stade 2017/01/04 00:20:45 IMO it's better that it doesn't, because the selec
selector_shadow_->layer()->SetVisible(true);
selection_widget_->GetLayer()->SetMasksToBounds(false);
selection_widget_->GetLayer()->Add(selector_shadow_->layer());
« no previous file with comments | « no previous file | ash/common/wm/overview/window_selector_item.cc » ('j') | ui/views/widget/native_widget_aura.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698