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

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: Fix tests 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
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..ad71f782ee7c3c0586d45c5304d392cadfc93dee 100644
--- a/ui/chromeos/touch_exploration_controller.cc
+++ b/ui/chromeos/touch_exploration_controller.cc
@@ -149,9 +149,12 @@ 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,
+ static_cast<aura::Window*>(nullptr),
+ static_cast<aura::Window*>(nullptr));
sadrul 2014/12/15 17:40:46 Can you just do: mutable_touch_event = touch_event
jdduke (slow) 2014/12/15 18:37:37 Hmm, much better, I guess assignment works but not
+ gesture_provider_->OnTouchEvent(&mutable_touch_event);
+ gesture_provider_->OnSyncTouchEventAck(
+ mutable_touch_event.unique_event_id(), false);
ProcessGestureEvents();
}

Powered by Google App Engine
This is Rietveld 408576698