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

Unified Diff: ui/gfx/compositor/layer.h

Issue 9703068: Clip constrained windows to the tabcontents bounds. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 | « chrome/browser/ui/views/tab_contents/native_tab_contents_view_aura.cc ('k') | ui/gfx/compositor/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/compositor/layer.h
===================================================================
--- ui/gfx/compositor/layer.h (revision 126769)
+++ ui/gfx/compositor/layer.h (working copy)
@@ -128,6 +128,11 @@
// otherwise.
gfx::Rect GetTargetBounds() const;
+ // Sets/gets whether or not drawing of child layers should be clipped to the
+ // bounds of this layer.
+ void SetMasksToBounds(bool masks_to_bounds);
+ bool GetMasksToBounds() const;
+
// The opacity of the layer. The opacity is applied to each pixel of the
// texture (resulting alpha = opacity * alpha).
float opacity() const { return opacity_; }
« no previous file with comments | « chrome/browser/ui/views/tab_contents/native_tab_contents_view_aura.cc ('k') | ui/gfx/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698