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

Unified Diff: ui/chromeos/touch_exploration_controller.cc

Issue 679633005: Expose native, desktop and mobile gesture detection defaults (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code review Created 6 years 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 | « ui/aura/window_event_dispatcher_unittest.cc ('k') | ui/events/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/chromeos/touch_exploration_controller.cc
diff --git a/ui/chromeos/touch_exploration_controller.cc b/ui/chromeos/touch_exploration_controller.cc
index 7e00b640ab3b39cc824d7dce80fbc7b595528d34..2d90e27d9ba8fb545c272e77e5a9683d66466880 100644
--- a/ui/chromeos/touch_exploration_controller.cc
+++ b/ui/chromeos/touch_exploration_controller.cc
@@ -149,9 +149,10 @@ ui::EventRewriteStatus TouchExplorationController::RewriteEvent(
// leaves one of these states, SET_STATE will set the gesture provider to
// NULL.
if (gesture_provider_.get()) {
- gesture_provider_->OnTouchEvent(touch_event);
- gesture_provider_->OnSyncTouchEventAck(touch_event.unique_event_id(),
- false);
+ ui::TouchEvent mutable_touch_event = touch_event;
+ gesture_provider_->OnTouchEvent(&mutable_touch_event);
+ gesture_provider_->OnSyncTouchEventAck(
+ mutable_touch_event.unique_event_id(), false);
ProcessGestureEvents();
}
« no previous file with comments | « ui/aura/window_event_dispatcher_unittest.cc ('k') | ui/events/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698