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

Unified Diff: ui/views/view.h

Issue 15922004: Rename Widget::CalculateOffsetToAncestorWithLayer() to Widget::GetLayer() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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/views/view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/view.h
diff --git a/ui/views/view.h b/ui/views/view.h
index 9447364529732256dfdb4f70f68384a7b56785d7..db2452b9462544c4918e0b954d1f103d80239be7 100644
--- a/ui/views/view.h
+++ b/ui/views/view.h
@@ -1076,6 +1076,11 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
virtual gfx::Vector2d CalculateOffsetToAncestorWithLayer(
ui::Layer** layer_parent);
+ // Updates the view's layer's parent. Called when a view is added to a view
+ // hierarchy, responsible for parenting the view's layer to the enclosing
+ // layer in the hierarchy.
+ virtual void UpdateParentLayer();
+
// If this view has a layer, the layer is reparented to |parent_layer| and its
// bounds is set based on |point|. If this view does not have a layer, then
// recurses through all children. This is used when adding a layer to an
@@ -1317,11 +1322,6 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
// layer.
void UpdateParentLayers();
- // Updates the view's layer's parent. Called when a view is added to a view
- // hierarchy, responsible for parenting the view's layer to the enclosing
- // layer in the hierarchy.
- void UpdateParentLayer();
-
// Parents this view's layer to |parent_layer|, and sets its bounds and other
// properties in accordance to |offset|, the view's offset from the
// |parent_layer|.
« no previous file with comments | « no previous file | ui/views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698