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

Unified Diff: components/mus/ws/test_utils.cc

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.cc
diff --git a/components/mus/ws/test_utils.cc b/components/mus/ws/test_utils.cc
index ada01b34fbe754b6fa565795dd91c4bc7170dd44..278c6615174e8cc5fad2fd9f8ff6148b852eeed0 100644
--- a/components/mus/ws/test_utils.cc
+++ b/components/mus/ws/test_utils.cc
@@ -165,6 +165,14 @@ void TestWindowManager::WmCreateTopLevelWindow(
void TestWindowManager::WmClientJankinessChanged(ClientSpecificId client_id,
bool janky) {}
+void TestWindowManager::WmPerformMoveLoop(uint32_t change_id,
+ uint32_t window_id,
+ const gfx::Point& cursor_location) {
+ on_perform_move_loop_called_ = true;
+}
+
+void TestWindowManager::WmCancelMoveLoop(uint32_t window_id) {}
+
void TestWindowManager::OnAccelerator(uint32_t id,
std::unique_ptr<ui::Event> event) {
on_accelerator_called_ = true;
@@ -298,6 +306,12 @@ void TestWindowTreeClient::OnChangeCompleted(uint32_t change_id, bool success) {
tracker_.OnChangeCompleted(change_id, success);
}
+void TestWindowTreeClient::OnMoveLoopCompleted(uint32_t change_id,
+ bool success) {
+ if (record_on_change_completed_)
+ tracker_.OnChangeCompleted(change_id, success);
+}
+
void TestWindowTreeClient::RequestClose(uint32_t window_id) {}
void TestWindowTreeClient::GetWindowManager(

Powered by Google App Engine
This is Rietveld 408576698