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

Unified Diff: components/mus/example/wm/window_manager_impl.h

Issue 1414943003: Moves move logic into WM instead of WS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: components/mus/example/wm/window_manager_impl.h
diff --git a/components/mus/example/wm/window_manager_impl.h b/components/mus/example/wm/window_manager_impl.h
index 9edd5dbb1fabca2b65e9aecab0438c9dbf0d826c..51b315d5a1be5385f22ef0cca4397a5c7a7852b5 100644
--- a/components/mus/example/wm/window_manager_impl.h
+++ b/components/mus/example/wm/window_manager_impl.h
@@ -12,6 +12,7 @@
#include "components/mus/public/cpp/window_observer.h"
#include "components/mus/public/interfaces/window_manager.mojom.h"
+class MoveLoop;
class WindowManagerApplication;
using WindowManagerErrorCodeCallback =
@@ -38,7 +39,12 @@ class WindowManagerImpl : public mus::mojom::WindowManager,
const WindowManagerErrorCodeCallback& callback) override;
void GetDisplays(const GetDisplaysCallback& callback) override;
+ // mus::WindowObserver:
+ void OnWindowDestroyed(mus::Window* window) override;
+ void OnWindowInputEvent(mus::Window* window, const mojo::EventPtr& event);
+
WindowManagerApplication* state_;
+ scoped_ptr<MoveLoop> move_loop_;
DISALLOW_COPY_AND_ASSIGN(WindowManagerImpl);
};

Powered by Google App Engine
This is Rietveld 408576698