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

Unified Diff: components/mus/public/cpp/window_tree_connection.h

Issue 1881253002: mus: Implement ScreenMus::GetCursorScreenPoint(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with tot 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/window_tree_connection.h
diff --git a/components/mus/public/cpp/window_tree_connection.h b/components/mus/public/cpp/window_tree_connection.h
index b4b235154b68b31d294e01f847a1478af457d3ad..f9ec3cccda2dda364af09ab42fd2da44b3003a1f 100644
--- a/components/mus/public/cpp/window_tree_connection.h
+++ b/components/mus/public/cpp/window_tree_connection.h
@@ -16,6 +16,10 @@
#include "components/mus/public/interfaces/window_tree.mojom.h"
#include "mojo/public/cpp/bindings/interface_request.h"
+namespace gfx {
+class Point;
+}
+
namespace shell {
class Connector;
}
@@ -78,6 +82,10 @@ class WindowTreeConnection {
// Sets focus to null. This does nothing if focus is currently null.
virtual void ClearFocus() = 0;
+ // Returns the current location of the mouse on screen. Note: this method may
+ // race the asynchronous initialization; but in that case we return (0, 0).
+ virtual gfx::Point GetCursorScreenPoint() = 0;
+
// See description in window_tree.mojom. When an existing event observer is
// updated or cleared then any future events from the server for that observer
// will be ignored.
« no previous file with comments | « components/mus/public/cpp/tests/test_window_tree.cc ('k') | components/mus/public/interfaces/window_tree.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698