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

Unified Diff: components/mus/ws/window_manager_state.h

Issue 2060513002: Tab dragging as implemented as a mus API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use not not pattern to fix win compile 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/ws/window_manager_state.h
diff --git a/components/mus/ws/window_manager_state.h b/components/mus/ws/window_manager_state.h
index dca6670d400ac522e3b2bc62821babc653840a3f..8ab6bd181bd29ac6e2f2e534c4e9d04569a25da3 100644
--- a/components/mus/ws/window_manager_state.h
+++ b/components/mus/ws/window_manager_state.h
@@ -56,6 +56,15 @@ class WindowManagerState : public EventDispatcherDelegate {
return event_dispatcher_.capture_window();
}
+ //
+ void StartMoveLoop(uint32_t change_id, WindowId window_id,
sky 2016/06/24 19:59:01 In general only the functions from clients use a W
+ const gfx::Rect& revert_bounds);
+ void EndMoveLoop();
+ uint32_t GetCurrentMoveLoopChangeId();
+ WindowId GetCurrentMoveLoopWindowId();
+ gfx::Rect GetCurrentMoveLoopRevertBounds();
+ bool in_move_loop() { return !!current_move_loop_.get(); }
+
void ReleaseCaptureBlockedByModalWindow(const ServerWindow* modal_window);
void ReleaseCaptureBlockedByAnyModalWindow();
@@ -80,6 +89,7 @@ class WindowManagerState : public EventDispatcherDelegate {
void OnEventAck(mojom::WindowTree* tree, mojom::EventResult result);
private:
+ struct CurrentMoveLoopState;
class ProcessedEventTarget;
friend class Display;
friend class test::WindowManagerStateTestApi;
@@ -166,6 +176,7 @@ class WindowManagerState : public EventDispatcherDelegate {
base::WeakPtr<Accelerator> post_target_accelerator_;
std::queue<std::unique_ptr<QueuedEvent>> event_queue_;
base::OneShotTimer event_ack_timer_;
+ std::unique_ptr<CurrentMoveLoopState> current_move_loop_;
EventDispatcher event_dispatcher_;

Powered by Google App Engine
This is Rietveld 408576698