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

Unified Diff: components/mus/public/cpp/window_manager_delegate.h

Issue 2060513002: Tab dragging as implemented as a mus API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Thread move loop source through api. Created 4 years, 6 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/public/cpp/window_manager_delegate.h
diff --git a/components/mus/public/cpp/window_manager_delegate.h b/components/mus/public/cpp/window_manager_delegate.h
index 99ddf34cc4e10daae412fa917ebd078bebe9c909..9e41bbd96d0df53575368e9485a333f063d2b0af 100644
--- a/components/mus/public/cpp/window_manager_delegate.h
+++ b/components/mus/public/cpp/window_manager_delegate.h
@@ -16,6 +16,7 @@
#include "components/mus/public/interfaces/cursor.mojom.h"
#include "components/mus/public/interfaces/event_matcher.mojom.h"
#include "components/mus/public/interfaces/window_manager_constants.mojom.h"
+#include "components/mus/public/interfaces/window_tree_constants.mojom.h"
#include "ui/events/mojo/event.mojom.h"
namespace display {
@@ -107,6 +108,14 @@ class WindowManagerDelegate {
virtual void OnAccelerator(uint32_t id, const ui::Event& event) = 0;
+ virtual void OnWmPerformMoveLoop(
+ Window* window,
+ ::mus::mojom::MoveLoopSource source,
+ const gfx::Point& cursor_location,
+ const base::Callback<void(bool)>& on_done) = 0;
+
+ virtual void OnWmCancelMoveLoop(Window* window) = 0;
+
protected:
virtual ~WindowManagerDelegate() {}
};

Powered by Google App Engine
This is Rietveld 408576698