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

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

Issue 412643002: Hide shadow layer when border exceeds layer bounds. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Separate the shadow layer associated with NinePatchLayer from the container parent layer. Created 6 years, 5 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 | « no previous file | 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 6734445a05f38c223e9aa64d544c29309045e410..8468c67a092a218995852b27b56561b51d6cd14b 100644
--- a/ui/wm/core/shadow.h
+++ b/ui/wm/core/shadow.h
@@ -67,8 +67,13 @@ class WM_EXPORT Shadow : public ui::ImplicitAnimationObserver {
// The current style, set when the transition animation starts.
Style style_;
+ // The parent layer of the shadow layer. It serves as a container accessible
+ // from the outside to control the visibility of the shadow.
scoped_ptr<ui::Layer> layer_;
+ // The actual shadow layer corresponding to a cc::NinePatchLayer.
+ scoped_ptr<ui::Layer> shadow_layer_;
+
// Bounds of the content that the shadow encloses.
gfx::Rect content_bounds_;
« no previous file with comments | « no previous file | ui/wm/core/shadow.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698