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

Unified Diff: services/ui/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: dcheng nits Created 4 years, 5 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
« no previous file with comments | « services/ui/public/cpp/tests/window_server_test_base.h ('k') | services/ui/public/cpp/window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/public/cpp/tests/window_server_test_base.cc
diff --git a/services/ui/public/cpp/tests/window_server_test_base.cc b/services/ui/public/cpp/tests/window_server_test_base.cc
index bdb64dd46a44356f87bf390395670552adeb05c2..403127497ac6099cd3a37b368a5aa6b37c1f5fe9 100644
--- a/services/ui/public/cpp/tests/window_server_test_base.cc
+++ b/services/ui/public/cpp/tests/window_server_test_base.cc
@@ -136,6 +136,22 @@ void WindowServerTestBase::OnAccelerator(uint32_t id, const ui::Event& event) {
window_manager_delegate_->OnAccelerator(id, event);
}
+void WindowServerTestBase::OnWmPerformMoveLoop(
+ Window* window,
+ 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(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));
« no previous file with comments | « services/ui/public/cpp/tests/window_server_test_base.h ('k') | services/ui/public/cpp/window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698