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

Unified Diff: services/ui/ws/window_server.h

Issue 2266603002: mus: Implement interwindow drag and drop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Uploaded for a few comments. Created 4 years, 4 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: services/ui/ws/window_server.h
diff --git a/services/ui/ws/window_server.h b/services/ui/ws/window_server.h
index 148cda0b2325f4615f79d8a5d382b78794415399..a57816ea9632afb84b4ea88374b611b052d2d720 100644
--- a/services/ui/ws/window_server.h
+++ b/services/ui/ws/window_server.h
@@ -13,6 +13,7 @@
#include <vector>
#include "base/macros.h"
+#include "base/optional.h"
#include "mojo/public/cpp/bindings/array.h"
#include "mojo/public/cpp/bindings/binding.h"
#include "services/ui/clipboard/clipboard_impl.h"
@@ -216,6 +217,11 @@ class WindowServer : public ServerWindowDelegate,
gfx::Rect GetCurrentMoveLoopRevertBounds();
bool in_move_loop() const { return !!current_move_loop_; }
+ void StartDragLoop(uint32_t change_id);
+ void EndDragLoop();
+ uint32_t GetCurrentDragLoopChangeId();
+ bool in_drag_loop() const { return current_drag_loop_.has_value(); }
+
private:
struct CurrentMoveLoopState;
friend class Operation;
@@ -336,6 +342,8 @@ class WindowServer : public ServerWindowDelegate,
std::unique_ptr<DisplayManager> display_manager_;
+ base::Optional<uint32_t> current_drag_loop_;
+
std::unique_ptr<CurrentMoveLoopState> current_move_loop_;
// Set of WindowTrees.

Powered by Google App Engine
This is Rietveld 408576698