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

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: test mocks too 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 075057586da6b529745f57f24dd0a64d4b26307a..df1aa7acc80cf350a05454926da8531313ab59d1 100644
--- a/components/mus/public/cpp/tests/test_window_tree.cc
+++ b/components/mus/public/cpp/tests/test_window_tree.cc
@@ -151,4 +151,12 @@ void TestWindowTree::OnWindowInputEventAck(uint32_t event_id, bool handled) {
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