Chromium Code Reviews| Index: components/mus/ws/window_server.h |
| diff --git a/components/mus/ws/window_server.h b/components/mus/ws/window_server.h |
| index 0ecbc76ee4cbf90554d5794dc7343d3c4b88b1b4..20b0fd5c8fe3d61bfffd6ff2f754d22b5d7f2dc2 100644 |
| --- a/components/mus/ws/window_server.h |
| +++ b/components/mus/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_.get(); } |
|
dcheng
2016/07/06 09:27:53
Nit: the .get() here can be omitted
|
| + |
| 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_; |