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

Unified Diff: ui/views/widget/desktop_aura/desktop_native_widget_aura.cc

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/desktop_aura/desktop_native_widget_aura.cc
diff --git a/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc b/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
index 4e6c1c4e46da570505d5db71e9ed736515f10ab6..51b851b0810eb6e5a6f67e349133f3f70893028e 100644
--- a/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
+++ b/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
@@ -33,9 +33,11 @@
#include "ui/views/drag_utils.h"
#include "ui/views/ime/input_method.h"
#include "ui/views/ime/input_method_bridge.h"
+#include "ui/views/view_constants_aura.h"
#include "ui/views/widget/desktop_aura/desktop_root_window_host.h"
#include "ui/views/widget/drop_helper.h"
#include "ui/views/widget/native_widget_aura_window_observer.h"
+#include "ui/views/widget/native_widget_window_reorderer_aura.h"
#include "ui/views/widget/root_view.h"
#include "ui/views/widget/tooltip_manager_aura.h"
#include "ui/views/widget/widget.h"
@@ -270,6 +272,9 @@ void DesktopNativeWidgetAura::InitNativeWidget(
shadow_controller_.reset(
new corewm::ShadowController(
aura::client::GetActivationClient(root_window_.get())));
+
+ window_reorderer_.reset(new NativeWidgetWindowReordererAura(
+ window_, GetWidget()->GetRootView()));
}
NonClientFrameView* DesktopNativeWidgetAura::CreateNonClientFrameView() {
@@ -316,6 +321,10 @@ ui::Layer* DesktopNativeWidgetAura::GetLayer() {
return window_->layer();
}
+void DesktopNativeWidgetAura::ReorderNativeViews() {
+ window_reorderer_->ReorderChildWindows();
+}
+
void DesktopNativeWidgetAura::ViewRemoved(View* view) {
}

Powered by Google App Engine
This is Rietveld 408576698