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

Unified Diff: ui/compositor/layer_owner.h

Issue 184983005: Remove Views dependency from window_animations.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 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/compositor/layer.cc ('k') | ui/compositor/layer_owner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer_owner.h
diff --git a/ui/compositor/layer_owner.h b/ui/compositor/layer_owner.h
index 8f115d5441c438cb867a26e67ddf58e13ff44ac7..fad4e63c6455eed5ce995a6b33a02570afbc1a9e 100644
--- a/ui/compositor/layer_owner.h
+++ b/ui/compositor/layer_owner.h
@@ -17,6 +17,8 @@ class COMPOSITOR_EXPORT LayerOwner {
LayerOwner();
virtual ~LayerOwner();
+ void SetLayer(Layer* layer);
+
// Releases the owning reference to its layer, and returns it.
// This is used when you need to animate the presentation of the owner just
// prior to destroying it. The Owner can be destroyed soon after calling this
@@ -29,6 +31,11 @@ class COMPOSITOR_EXPORT LayerOwner {
const ui::Layer* layer() const { return layer_; }
protected:
+ void DestroyLayer();
+
+ bool OwnsLayer() const;
+
+ private:
// The LayerOwner owns its layer unless ownership is relinquished via a call
// to AcquireLayer(). After that moment |layer_| will still be valid but
// |layer_owner_| will be NULL. The reason for releasing ownership is that
@@ -37,7 +44,6 @@ class COMPOSITOR_EXPORT LayerOwner {
scoped_ptr<Layer> layer_owner_;
Layer* layer_;
- private:
DISALLOW_COPY_AND_ASSIGN(LayerOwner);
};
« no previous file with comments | « ui/compositor/layer.cc ('k') | ui/compositor/layer_owner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698