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

Unified Diff: ui/views/widget/native_widget_private.h

Issue 15114002: Reorder the NativeViews attached to a view via kViewHostKey according to the position of the view (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
Index: ui/views/widget/native_widget_private.h
diff --git a/ui/views/widget/native_widget_private.h b/ui/views/widget/native_widget_private.h
index 9d43c789b1a3759d0e507307956f038cd87d68ae..e7415c5d85eb76454222beee7377546c4fb8d950 100644
--- a/ui/views/widget/native_widget_private.h
+++ b/ui/views/widget/native_widget_private.h
@@ -101,6 +101,15 @@ class VIEWS_EXPORT NativeWidgetPrivate : public NativeWidget {
virtual gfx::Vector2d CalculateOffsetToAncestorWithLayer(
ui::Layer** layer_parent) = 0;
+ // Reorder the child layers of the widget's layer so that their order matches
+ // the order of views with layers / views with attached layers in the view
+ // hierarchy.
+ virtual void ReorderLayers() = 0;
+
+ // Returns true if a child NativeView is attached to one of the widget's
+ // views.
+ virtual bool HasNativeViewAttachedToViewTree() const = 0;
+
// Notifies the NativeWidget that a view was removed from the Widget's view
// hierarchy.
virtual void ViewRemoved(View* view) = 0;

Powered by Google App Engine
This is Rietveld 408576698