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

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

Issue 36473003: Rename StackingClient -> WindowTreeClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: done. Created 7 years, 2 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
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_native_widget_aura.h ('k') | ui/views/widget/native_widget_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d3aeba4b7f4ea9e16dfb033a99f32f29ad9afcb6..bb5a8d667adb4f15302adca948865745e3da994d 100644
--- a/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
+++ b/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
@@ -9,7 +9,7 @@
#include "ui/aura/client/aura_constants.h"
#include "ui/aura/client/cursor_client.h"
#include "ui/aura/client/focus_client.h"
-#include "ui/aura/client/stacking_client.h"
+#include "ui/aura/client/window_tree_client.h"
#include "ui/aura/root_window.h"
#include "ui/aura/root_window_host.h"
#include "ui/aura/window.h"
@@ -133,18 +133,19 @@ class DesktopNativeWidgetTopLevelHandler : public aura::WindowObserver {
DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetTopLevelHandler);
};
-class DesktopNativeWidgetAuraStackingClient :
- public aura::client::StackingClient {
+class DesktopNativeWidgetAuraWindowTreeClient :
+ public aura::client::WindowTreeClient {
public:
- explicit DesktopNativeWidgetAuraStackingClient(aura::RootWindow* root_window)
+ explicit DesktopNativeWidgetAuraWindowTreeClient(
+ aura::RootWindow* root_window)
: root_window_(root_window) {
- aura::client::SetStackingClient(root_window_, this);
+ aura::client::SetWindowTreeClient(root_window_, this);
}
- virtual ~DesktopNativeWidgetAuraStackingClient() {
- aura::client::SetStackingClient(root_window_, NULL);
+ virtual ~DesktopNativeWidgetAuraWindowTreeClient() {
+ aura::client::SetWindowTreeClient(root_window_, NULL);
}
- // Overridden from client::StackingClient:
+ // Overridden from client::WindowTreeClient:
virtual aura::Window* GetDefaultParent(aura::Window* context,
aura::Window* window,
const gfx::Rect& bounds) OVERRIDE {
@@ -167,7 +168,7 @@ class DesktopNativeWidgetAuraStackingClient :
private:
aura::RootWindow* root_window_;
- DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAuraStackingClient);
+ DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAuraWindowTreeClient);
};
} // namespace
@@ -233,7 +234,7 @@ void DesktopNativeWidgetAura::OnHostClosed() {
root_window_event_filter_->RemoveHandler(input_method_event_filter_.get());
- stacking_client_.reset(); // Uses root_window_ at destruction.
+ window_tree_client_.reset(); // Uses root_window_ at destruction.
capture_client_.reset(); // Uses root_window_ at destruction.
@@ -353,8 +354,8 @@ void DesktopNativeWidgetAura::InitNativeWidget(
root_window_->AddRootWindowObserver(this);
- stacking_client_.reset(
- new DesktopNativeWidgetAuraStackingClient(root_window_.get()));
+ window_tree_client_.reset(
+ new DesktopNativeWidgetAuraWindowTreeClient(root_window_.get()));
drop_helper_.reset(new DropHelper(
static_cast<internal::RootView*>(GetWidget()->GetRootView())));
aura::client::SetDragDropDelegate(window_, this);
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_native_widget_aura.h ('k') | ui/views/widget/native_widget_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698