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

Unified Diff: services/ui/ws/test_utils.h

Issue 2183163002: mus: Change PointerWatcher to observe all pointer events, with moves optional. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pointer enter/exit; has_pointer_watcher etc Created 4 years, 4 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/ws/test_utils.h
diff --git a/services/ui/ws/test_utils.h b/services/ui/ws/test_utils.h
index 5a889f87721958725b098aff32fd591a54881b60..b7dd8fa97f0ec3804cd793120fce85fb22699170 100644
--- a/services/ui/ws/test_utils.h
+++ b/services/ui/ws/test_utils.h
@@ -110,8 +110,8 @@ class WindowTreeTestApi {
tree_->OnAcceleratorAck(tree_->event_ack_id_, result);
}
- void SetEventObserver(mojom::EventMatcherPtr matcher,
- uint32_t event_observer_id);
+ void StartPointerWatcher(bool want_moves, uint32_t pointer_watcher_id);
+ void StopPointerWatcher();
private:
WindowTree* tree_;
@@ -402,8 +402,8 @@ class TestWindowTreeClient : public ui::mojom::WindowTreeClient {
uint32_t window,
std::unique_ptr<ui::Event> event,
uint32_t event_observer_id) override;
- void OnEventObserved(std::unique_ptr<ui::Event> event,
- uint32_t event_observer_id) override;
+ void OnPointerEventObserved(std::unique_ptr<ui::Event> event,
+ uint32_t event_observer_id) override;
void OnWindowFocused(uint32_t focused_window_id) override;
void OnWindowPredefinedCursorChanged(uint32_t window_id,
mojom::Cursor cursor_id) override;

Powered by Google App Engine
This is Rietveld 408576698