Chromium Code Reviews| 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(); |
| } |