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

Unified Diff: ui/wm/core/shadow.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/widget/native_widget_aura.cc ('k') | ui/wm/core/shadow_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/wm/core/shadow.cc
diff --git a/ui/wm/core/shadow.cc b/ui/wm/core/shadow.cc
index 9a4b81c6356b2b8b9a7b9915d57e4eef468c00d2..2d7d0d44e3fb7405fcd8f14385d2fad8158ebb1b 100644
--- a/ui/wm/core/shadow.cc
+++ b/ui/wm/core/shadow.cc
@@ -32,6 +32,7 @@ Shadow::Shadow()
Shadow::~Shadow() {}
void Shadow::Init(ShadowElevation elevation) {
+ DCHECK_NE(ShadowElevation::DEFAULT, elevation);
desired_elevation_ = elevation;
layer_.reset(new ui::Layer(ui::LAYER_NOT_DRAWN));
RecreateShadowLayer();
@@ -48,6 +49,7 @@ void Shadow::SetContentBounds(const gfx::Rect& content_bounds) {
}
void Shadow::SetElevation(ShadowElevation elevation) {
+ DCHECK_NE(ShadowElevation::DEFAULT, elevation);
if (desired_elevation_ == elevation)
return;
« no previous file with comments | « ui/views/widget/native_widget_aura.cc ('k') | ui/wm/core/shadow_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698