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

Unified Diff: ui/aura/root_window.cc

Issue 8916020: Second attempt at moving the StackingClient to a property on the RootWindow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years 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/aura/root_window.h ('k') | ui/aura/test/aura_test_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/root_window.cc
===================================================================
--- ui/aura/root_window.cc (revision 114527)
+++ ui/aura/root_window.cc (working copy)
@@ -15,10 +15,6 @@
#include "base/string_split.h"
#include "ui/aura/aura_switches.h"
#include "ui/aura/client/activation_client.h"
-#include "ui/aura/client/drag_drop_client.h"
-#include "ui/aura/client/stacking_client.h"
-#include "ui/aura/client/tooltip_client.h"
-#include "ui/aura/client/window_drag_drop_delegate.h"
#include "ui/aura/root_window_host.h"
#include "ui/aura/root_window_observer.h"
#include "ui/aura/event.h"
@@ -58,24 +54,6 @@
return hit_test_code != HTCLIENT && hit_test_code != HTNOWHERE;
}
-class DefaultStackingClient : public StackingClient {
- public:
- explicit DefaultStackingClient(RootWindow* root_window)
- : root_window_(root_window) {}
- virtual ~DefaultStackingClient() {}
-
- private:
-
- // Overridden from StackingClient:
- virtual void AddChildToDefaultParent(Window* window) OVERRIDE {
- root_window_->AddChild(window);
- }
-
- RootWindow* root_window_;
-
- DISALLOW_COPY_AND_ASSIGN(DefaultStackingClient);
-};
-
typedef std::vector<EventFilter*> EventFilters;
void GetEventFiltersToNotify(Window* target, EventFilters* filters) {
@@ -110,10 +88,6 @@
instance_ = NULL;
}
-void RootWindow::SetStackingClient(StackingClient* stacking_client) {
- stacking_client_.reset(stacking_client);
-}
-
void RootWindow::ShowRootWindow() {
host_->Show();
}
@@ -333,8 +307,6 @@
RootWindow::RootWindow()
: Window(NULL),
host_(aura::RootWindowHost::Create(GetInitialHostWindowBounds())),
- ALLOW_THIS_IN_INITIALIZER_LIST(
- stacking_client_(new DefaultStackingClient(this))),
ALLOW_THIS_IN_INITIALIZER_LIST(schedule_paint_factory_(this)),
mouse_button_flags_(0),
last_cursor_(kCursorNull),
« no previous file with comments | « ui/aura/root_window.h ('k') | ui/aura/test/aura_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698