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

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: more comments Created 4 years, 3 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 | « services/ui/ws/window_manager_state.cc ('k') | services/ui/ws/window_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/window_server.h
diff --git a/services/ui/ws/window_server.h b/services/ui/ws/window_server.h
index ad2862c300ae0c525953d812d3a1adbcd7f20c4c..11fa7cc10c2eb79bdca56877368abf73eb5ced38 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"
@@ -220,6 +221,15 @@ class WindowServer : public ServerWindowDelegate,
gfx::Rect GetCurrentMoveLoopRevertBounds();
bool in_move_loop() const { return !!current_move_loop_; }
+ void StartDragLoop(uint32_t change_id,
+ ServerWindow* window,
+ WindowTree* initiator);
+ void EndDragLoop();
+ uint32_t GetCurrentDragLoopChangeId();
+ ServerWindow* GetCurrentDragLoopWindow();
+ WindowTree* GetCurrentDragLoopInitiator();
+ bool in_drag_loop() const { return !!current_drag_loop_; }
+
void OnDisplayReady(Display* display, bool is_first);
void OnNoMoreDisplays();
WindowManagerState* GetWindowManagerStateForUser(const UserId& user_id);
@@ -234,6 +244,7 @@ class WindowServer : public ServerWindowDelegate,
private:
struct CurrentMoveLoopState;
+ struct CurrentDragLoopState;
friend class Operation;
using WindowTreeMap =
@@ -346,6 +357,7 @@ class WindowServer : public ServerWindowDelegate,
std::unique_ptr<DisplayManager> display_manager_;
+ std::unique_ptr<CurrentDragLoopState> current_drag_loop_;
std::unique_ptr<CurrentMoveLoopState> current_move_loop_;
// Set of WindowTrees.
« no previous file with comments | « services/ui/ws/window_manager_state.cc ('k') | services/ui/ws/window_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698