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

Unified Diff: ui/views/widget/desktop_aura/desktop_native_widget_aura.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: Changes as requested 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/desktop_aura/desktop_native_widget_aura.h
diff --git a/ui/views/widget/desktop_aura/desktop_native_widget_aura.h b/ui/views/widget/desktop_aura/desktop_native_widget_aura.h
index 7a79db80853154de6b2eca496d6286195e9c3cbf..b71ddedfbffde5d60b011b9e5af8510714a701f0 100644
--- a/ui/views/widget/desktop_aura/desktop_native_widget_aura.h
+++ b/ui/views/widget/desktop_aura/desktop_native_widget_aura.h
@@ -35,6 +35,7 @@ class WindowModalityController;
class DesktopRootWindowHost;
class DropHelper;
class NativeWidgetAuraWindowObserver;
+class NativeWidgetLayerReordererAura;
class TooltipManagerAura;
class VIEWS_EXPORT DesktopNativeWidgetAura
@@ -80,6 +81,7 @@ class VIEWS_EXPORT DesktopNativeWidgetAura
virtual const ui::Compositor* GetCompositor() const OVERRIDE;
virtual ui::Compositor* GetCompositor() OVERRIDE;
virtual ui::Layer* GetLayer() OVERRIDE;
+ virtual void ReorderLayersForAttachedNativeViews() OVERRIDE;
virtual void ViewRemoved(View* view) OVERRIDE;
virtual void SetNativeWindowProperty(const char* name, void* value) OVERRIDE;
virtual void* GetNativeWindowProperty(const char* name) const OVERRIDE;
@@ -238,6 +240,10 @@ class VIEWS_EXPORT DesktopNativeWidgetAura
scoped_ptr<corewm::ShadowController> shadow_controller_;
+ // Reorders layers and windows based on the order of views with layers and
+ // views with attached windows in the widget's view hierarchy.
+ scoped_ptr<NativeWidgetLayerReordererAura> layer_reorderer_;
+
DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura);
};

Powered by Google App Engine
This is Rietveld 408576698