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

Unified Diff: ash/common/wm/overview/window_selector_item.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_selector_item.cc
diff --git a/ash/common/wm/overview/window_selector_item.cc b/ash/common/wm/overview/window_selector_item.cc
index f76a37ae1eb84ea73dd5e1bbb262e51a5c7edadd..182beb5676c61017a59a4723d7ddc8d4bc07d723 100644
--- a/ash/common/wm/overview/window_selector_item.cc
+++ b/ash/common/wm/overview/window_selector_item.cc
@@ -44,6 +44,7 @@
#include "ui/views/layout/box_layout.h"
#include "ui/views/window/non_client_view.h"
#include "ui/wm/core/shadow.h"
+#include "ui/wm/core/shadow_types.h"
#include "ui/wm/core/window_util.h"
namespace ash {
@@ -666,7 +667,7 @@ void WindowSelectorItem::CreateWindowLabel(const base::string16& title) {
if (ash::MaterialDesignController::GetMode() ==
ash::MaterialDesignController::Mode::MATERIAL_EXPERIMENTAL) {
shadow_.reset(new ::wm::Shadow());
- shadow_->Init(::wm::Shadow::STYLE_INACTIVE);
+ shadow_->Init(::wm::ShadowElevation::MEDIUM);
shadow_->layer()->SetVisible(true);
window_label_->GetLayer()->Add(shadow_->layer());
}

Powered by Google App Engine
This is Rietveld 408576698