| Index: ui/views/view.h
|
| diff --git a/ui/views/view.h b/ui/views/view.h
|
| index bfa107c7eb59451d32fd8c211537fb1c21eda3d0..9fe7a06b1202437640512bd68317eab569783f96 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 layer being created or destroyed in a child. An
|
| + // example where a subclass may override this method is when it wants to clip
|
| + // the child by adding its own layer.
|
| + virtual void OnChildLayerChanged(View* child);
|
| +
|
| // Input ---------------------------------------------------------------------
|
|
|
| virtual DragInfo* GetDragInfo();
|
| @@ -1515,6 +1520,10 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
|
|
|
| //////////////////////////////////////////////////////////////////////////////
|
|
|
| + // Notifies parents about layering changes in the view. This includes layer
|
| + // creation and destruction.
|
| + void NotifyParentsOfLayerChange();
|
| +
|
| // Creation and lifetime -----------------------------------------------------
|
|
|
| // False if this View is owned by its parent - i.e. it will be deleted by its
|
|
|