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

Unified Diff: ui/wm/core/shadow.h

Issue 2550593002: Update WM shadows for MD. (Closed)
Patch Set: fix corners 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: ui/wm/core/shadow.h
diff --git a/ui/wm/core/shadow.h b/ui/wm/core/shadow.h
index 81199f848fd361d94cbc7ac006e66935f0f8ec22..07df0235e5731e3df72c5c9a99e64380e0458527 100644
--- a/ui/wm/core/shadow.h
+++ b/ui/wm/core/shadow.h
@@ -69,6 +69,10 @@ class WM_EXPORT Shadow : public ui::ImplicitAnimationObserver {
// |content_bounds_|.
void UpdateLayerBounds();
+ // Returns the "elevation" for |style_|, which dictates the shadow's display
+ // characteristics.
James Cook 2016/12/05 23:38:35 nit: Document that elevation currently means size
Evan Stade 2016/12/06 00:53:21 Done.
+ int ElevationForStyle();
+
// The current style, set when the transition animation starts.
Style style_;
@@ -79,16 +83,9 @@ class WM_EXPORT Shadow : public ui::ImplicitAnimationObserver {
// The actual shadow layer corresponding to a cc::NinePatchLayer.
std::unique_ptr<ui::Layer> shadow_layer_;
- // Size of the current shadow image.
- gfx::Size image_size_;
-
// Bounds of the content that the shadow encloses.
gfx::Rect content_bounds_;
- // The interior inset of the shadow images. The content bounds of the image
- // grid should be set to |content_bounds_| inset by this amount.
- int interior_inset_;
-
DISALLOW_COPY_AND_ASSIGN(Shadow);
};

Powered by Google App Engine
This is Rietveld 408576698