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

Unified Diff: ui/views/view.h

Issue 2813353002: Ensure that the focus ring in the bookmarks bar does not paint outside the parent view. (Closed)
Patch Set: Rename layer notification to OnChildLayerChanged() Created 3 years, 8 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
Index: ui/views/view.h
diff --git a/ui/views/view.h b/ui/views/view.h
index bfa107c7eb59451d32fd8c211537fb1c21eda3d0..0152645874da1d29198e4f0e8a7391b44e2be896 100644
--- a/ui/views/view.h
+++ b/ui/views/view.h
@@ -1189,6 +1189,11 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
// below layers owned by a view.
virtual void ReorderChildLayers(ui::Layer* parent_layer);
+ // Notifies parents about a change in a child layer. An example where a
sky 2017/04/17 15:24:01 Be explicit and say either the layer is being crea
ananta 2017/04/18 03:04:26 Done.
+ // subclass may override this method is when it wants to clip the child by
+ // adding its own layer.
+ virtual void OnChildLayerChanged(View* child) {}
sky 2017/04/17 15:24:01 Don't inline the implementation.
ananta 2017/04/18 03:04:26 Done.
+
// Input ---------------------------------------------------------------------
virtual DragInfo* GetDragInfo();

Powered by Google App Engine
This is Rietveld 408576698