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

Unified Diff: components/mus/public/cpp/tests/window_server_test_base.cc

Issue 2060513002: Tab dragging as implemented as a mus API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: OnWmMoveLoopComplete() -> WmResponse() and use change_id instead of window_id in cancel. 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/public/cpp/tests/window_server_test_base.cc
diff --git a/components/mus/public/cpp/tests/window_server_test_base.cc b/components/mus/public/cpp/tests/window_server_test_base.cc
index 93394f79e1c3dfe10e2a283435a0eff535e5e7a6..b389b06911827750d2632c71916ca0b63f3164ac 100644
--- a/components/mus/public/cpp/tests/window_server_test_base.cc
+++ b/components/mus/public/cpp/tests/window_server_test_base.cc
@@ -137,6 +137,22 @@ void WindowServerTestBase::OnAccelerator(uint32_t id, const ui::Event& event) {
window_manager_delegate_->OnAccelerator(id, event);
}
+void WindowServerTestBase::OnWmPerformMoveLoop(
+ ::mus::Window* window,
+ ::mus::mojom::MoveLoopSource source,
+ const gfx::Point& cursor_location,
+ const base::Callback<void(bool)>& on_done) {
+ if (window_manager_delegate_) {
+ window_manager_delegate_->OnWmPerformMoveLoop(window, source,
+ cursor_location, on_done);
+ }
+}
+
+void WindowServerTestBase::OnWmCancelMoveLoop(::mus::Window* window) {
+ if (window_manager_delegate_)
+ window_manager_delegate_->OnWmCancelMoveLoop(window);
+}
+
void WindowServerTestBase::Create(shell::Connection* connection,
mojom::WindowTreeClientRequest request) {
new WindowTreeClient(this, nullptr, std::move(request));

Powered by Google App Engine
This is Rietveld 408576698