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

Unified Diff: components/mus/ws/test_utils.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/test_utils.h
diff --git a/components/mus/ws/test_utils.h b/components/mus/ws/test_utils.h
index 19cb43215c0baa0fd70c3bcf27f6bb3a3beb409c..5ec050b81e8928b8c34db3602a201f047206869f 100644
--- a/components/mus/ws/test_utils.h
+++ b/components/mus/ws/test_utils.h
@@ -234,6 +234,7 @@ class TestWindowManager : public mojom::WindowManager {
return true;
}
+ bool on_perform_move_loop_called() { return on_perform_move_loop_called_; }
bool on_accelerator_called() { return on_accelerator_called_; }
uint32_t on_accelerator_id() { return on_accelerator_id_; }
@@ -256,8 +257,14 @@ class TestWindowManager : public mojom::WindowManager {
mojo::Map<mojo::String, mojo::Array<uint8_t>> properties) override;
void WmClientJankinessChanged(ClientSpecificId client_id,
bool janky) override;
+ void WmPerformMoveLoop(uint32_t change_id,
+ uint32_t window_id,
+ const gfx::Point& cursor_location) override;
+ void WmCancelMoveLoop(uint32_t window_id) override;
void OnAccelerator(uint32_t id, std::unique_ptr<ui::Event> event) override;
+ bool on_perform_move_loop_called_ = false;
+
bool got_create_top_level_window_;
uint32_t change_id_;
@@ -336,6 +343,7 @@ class TestWindowTreeClient : public mus::mojom::WindowTreeClient {
void OnWindowPredefinedCursorChanged(uint32_t window_id,
mojom::Cursor cursor_id) override;
void OnChangeCompleted(uint32_t change_id, bool success) override;
+ void OnMoveLoopCompleted(uint32_t change_id, bool success) override;
void RequestClose(uint32_t window_id) override;
void GetWindowManager(
mojo::AssociatedInterfaceRequest<mojom::WindowManager> internal) override;

Powered by Google App Engine
This is Rietveld 408576698