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

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

Issue 2248263003: Updates PointerEventRouter to handle switching move type (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge again 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_tree.h » ('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 98ea49a6fdf85bb68303832df8755b47c7aa0e7e..b9ef94cf25b48b22c0dfabc569c912e1866f6735 100644
--- a/services/ui/ws/test_utils.cc
+++ b/services/ui/ws/test_utils.cc
@@ -150,9 +150,8 @@ const ViewportMetrics& TestFrameGeneratorDelegate::GetViewportMetrics() {
WindowTreeTestApi::WindowTreeTestApi(WindowTree* tree) : tree_(tree) {}
WindowTreeTestApi::~WindowTreeTestApi() {}
-void WindowTreeTestApi::StartPointerWatcher(bool want_moves,
- uint32_t pointer_watcher_id) {
- tree_->StartPointerWatcher(want_moves, pointer_watcher_id);
+void WindowTreeTestApi::StartPointerWatcher(bool want_moves) {
+ tree_->StartPointerWatcher(want_moves);
}
void WindowTreeTestApi::StopPointerWatcher() {
@@ -330,15 +329,14 @@ void TestWindowTreeClient::OnWindowSharedPropertyChanged(
void TestWindowTreeClient::OnWindowInputEvent(uint32_t event_id,
uint32_t window,
std::unique_ptr<ui::Event> event,
- uint32_t event_observer_id) {
- tracker_.OnWindowInputEvent(window, *event.get(), event_observer_id);
+ bool matches_pointer_watcher) {
+ tracker_.OnWindowInputEvent(window, *event.get(), matches_pointer_watcher);
}
void TestWindowTreeClient::OnPointerEventObserved(
std::unique_ptr<ui::Event> event,
- uint32_t event_observer_id,
uint32_t window_id) {
- tracker_.OnPointerEventObserved(*event.get(), event_observer_id, window_id);
+ tracker_.OnPointerEventObserved(*event.get(), window_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_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698