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

Unified Diff: services/ui/public/cpp/window_tree_client.h

Issue 2180683003: NOSUBMIT: PointerWatcher observes all pointer events, with moves optional (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: services/ui/public/cpp/window_tree_client.h
diff --git a/services/ui/public/cpp/window_tree_client.h b/services/ui/public/cpp/window_tree_client.h
index 5f11f731b219761bb7f976d573e59a5f24b07486..c40df920b2236092903bf3d656fc4916c4378b46 100644
--- a/services/ui/public/cpp/window_tree_client.h
+++ b/services/ui/public/cpp/window_tree_client.h
@@ -178,10 +178,11 @@ class WindowTreeClient : public mojom::WindowTreeClient,
// race the asynchronous initialization; but in that case we return (0, 0).
gfx::Point GetCursorScreenPoint();
- // 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
+ // See description in window_tree.mojom. When an existing pointer watcher is
+ // updated or cleared then any future events from the server for that watcher
// will be ignored.
- void SetEventObserver(mojom::EventMatcherPtr matcher);
+ void StartPointerWatcher(bool want_moves);
+ void StopPointerWatcher();
// Performs a window move. |callback| will be asynchronously called with the
// whether the move loop completed successfully.
@@ -414,10 +415,10 @@ class WindowTreeClient : public mojom::WindowTreeClient,
window_manager_internal_;
mojom::WindowManagerClientAssociatedPtr window_manager_internal_client_;
- bool has_event_observer_ = false;
+ bool has_pointer_watcher_ = false;
- // Monotonically increasing ID for event observers.
- uint32_t event_observer_id_ = 0u;
+ // Monotonically increasing ID for pointer watchers.
+ uint32_t pointer_watcher_id_ = 0u;
// The current change id for the client.
uint32_t current_move_loop_change_ = 0u;
« no previous file with comments | « services/ui/public/cpp/tests/window_tree_client_unittest.cc ('k') | services/ui/public/interfaces/window_tree.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698