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

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

Issue 2060513002: Tab dragging as implemented as a mus API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dcheng nits Created 4 years, 5 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_client_unittest.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 0018ac2b6b0d9e0cb81c85d5b9c325149fd5429b..64e421169c6de0173a9972a0a990ae575e5b6df7 100644
--- a/services/ui/ws/window_server.h
+++ b/services/ui/ws/window_server.h
@@ -196,7 +196,19 @@ class WindowServer : public ServerWindowDelegate,
// a [re]paint. This should only be called in a test configuration.
void SetPaintCallback(const base::Callback<void(ServerWindow*)>& callback);
+ void StartMoveLoop(uint32_t change_id,
+ ServerWindow* window,
+ WindowTree* initiator,
+ const gfx::Rect& revert_bounds);
+ void EndMoveLoop();
+ uint32_t GetCurrentMoveLoopChangeId();
+ ServerWindow* GetCurrentMoveLoopWindow();
+ WindowTree* GetCurrentMoveLoopInitiator();
+ gfx::Rect GetCurrentMoveLoopRevertBounds();
+ bool in_move_loop() const { return !!current_move_loop_; }
+
private:
+ struct CurrentMoveLoopState;
friend class Operation;
using WindowTreeMap =
@@ -311,6 +323,8 @@ class WindowServer : public ServerWindowDelegate,
std::unique_ptr<DisplayManager> display_manager_;
+ std::unique_ptr<CurrentMoveLoopState> current_move_loop_;
+
// Set of WindowTrees.
WindowTreeMap tree_map_;
« no previous file with comments | « services/ui/ws/window_manager_client_unittest.cc ('k') | services/ui/ws/window_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698