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

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

Issue 1881253002: mus: Implement ScreenMus::GetCursorScreenPoint(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't crash on empty roots. Created 4 years, 8 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/test_window_tree.cc
diff --git a/components/mus/public/cpp/tests/test_window_tree.cc b/components/mus/public/cpp/tests/test_window_tree.cc
index 5d45dcfd17220a8b68a79d3f9eed282949b2b9e4..d6defbefc43a71ad2fbdf1be7649e27a816b6148 100644
--- a/components/mus/public/cpp/tests/test_window_tree.cc
+++ b/components/mus/public/cpp/tests/test_window_tree.cc
@@ -152,4 +152,12 @@ void TestWindowTree::OnWindowInputEventAck(uint32_t event_id,
void TestWindowTree::GetWindowManagerClient(
mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal) {}
+void TestWindowTree::GetCursorScreenPoint(
+ const GetCursorScreenPointCallback& callback) {
+ mojo::PointPtr p = mojo::Point::New();
+ p->x = 0;
+ p->y = 0;
+ callback.Run(std::move(p));
+}
+
} // namespace mus

Powered by Google App Engine
This is Rietveld 408576698