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

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

Issue 2550593002: Update WM shadows for MD. (Closed)
Patch Set: fix border for small windows 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
« no previous file with comments | « ui/gfx/shadow_value.cc ('k') | ui/wm/core/shadow.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/wm/core/shadow.h
diff --git a/ui/wm/core/shadow.h b/ui/wm/core/shadow.h
index 81199f848fd361d94cbc7ac006e66935f0f8ec22..e0b7a1db301c88aa440c6d48f9091a6ef4348a72 100644
--- a/ui/wm/core/shadow.h
+++ b/ui/wm/core/shadow.h
@@ -69,8 +69,13 @@ class WM_EXPORT Shadow : public ui::ImplicitAnimationObserver {
// |content_bounds_|.
void UpdateLayerBounds();
+ // Returns the "elevation" for |style_|, which dictates the shadow's display
+ // characteristics. The elevation is proportional to the size of the blur and
+ // its offset.
+ int ElevationForStyle();
+
// The current style, set when the transition animation starts.
- Style style_;
+ Style style_ = STYLE_ACTIVE;
// The parent layer of the shadow layer. It serves as a container accessible
// from the outside to control the visibility of the shadow.
@@ -79,16 +84,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);
};
« no previous file with comments | « ui/gfx/shadow_value.cc ('k') | ui/wm/core/shadow.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698