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

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

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: rebase 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
« no previous file with comments | « services/ui/ws/test_utils.h ('k') | services/ui/ws/window_manager_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/test_utils.cc
diff --git a/services/ui/ws/test_utils.cc b/services/ui/ws/test_utils.cc
index e0f83d97a6e4e862875593d8544e31242b20100c..7387a8dbdcaa6b0fcee782c7667e22cdde8c5b0d 100644
--- a/services/ui/ws/test_utils.cc
+++ b/services/ui/ws/test_utils.cc
@@ -139,9 +139,13 @@ const ViewportMetrics& TestFrameGeneratorDelegate::GetViewportMetrics() {
WindowTreeTestApi::WindowTreeTestApi(WindowTree* tree) : tree_(tree) {}
WindowTreeTestApi::~WindowTreeTestApi() {}
-void WindowTreeTestApi::SetEventObserver(mojom::EventMatcherPtr matcher,
- uint32_t event_observer_id) {
- tree_->SetEventObserver(std::move(matcher), event_observer_id);
+void WindowTreeTestApi::StartPointerWatcher(bool want_moves,
+ uint32_t pointer_watcher_id) {
+ tree_->StartPointerWatcher(want_moves, pointer_watcher_id);
+}
+
+void WindowTreeTestApi::StopPointerWatcher() {
+ tree_->StopPointerWatcher();
}
// DisplayTestApi ------------------------------------------------------------
@@ -316,9 +320,10 @@ void TestWindowTreeClient::OnWindowInputEvent(uint32_t event_id,
tracker_.OnWindowInputEvent(window, *event.get(), event_observer_id);
}
-void TestWindowTreeClient::OnEventObserved(std::unique_ptr<ui::Event> event,
- uint32_t event_observer_id) {
- tracker_.OnEventObserved(*event.get(), event_observer_id);
+void TestWindowTreeClient::OnPointerEventObserved(
+ std::unique_ptr<ui::Event> event,
+ uint32_t event_observer_id) {
+ tracker_.OnPointerEventObserved(*event.get(), event_observer_id);
}
void TestWindowTreeClient::OnWindowFocused(uint32_t focused_window_id) {
« no previous file with comments | « services/ui/ws/test_utils.h ('k') | services/ui/ws/window_manager_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698