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

Unified Diff: blimp/client/core/input/blimp_input_manager.cc

Issue 2569273002: Add constructors to WebInputEvents and setters so we can work at cleaning up these public structs. (Closed)
Patch Set: Rebase Created 3 years, 12 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
Index: blimp/client/core/input/blimp_input_manager.cc
diff --git a/blimp/client/core/input/blimp_input_manager.cc b/blimp/client/core/input/blimp_input_manager.cc
index 66c0d0514e3176125c38dbdc99aaf9c0374e0e7d..0d4702aba378bf9dac15067da1c9dc276a9139da 100644
--- a/blimp/client/core/input/blimp_input_manager.cc
+++ b/blimp/client/core/input/blimp_input_manager.cc
@@ -81,7 +81,7 @@ void BlimpInputManager::OnGestureEvent(const ui::GestureEventData& gesture) {
// See crbug.com/443247.
if (web_gesture.type == blink::WebInputEvent::GestureTap &&
web_gesture.modifiers == blink::WebInputEvent::ShiftKey) {
- web_gesture.modifiers = 0;
+ web_gesture.setModifiers(blink::WebInputEvent::NoModifiers);
}
compositor_task_runner_->PostTask(

Powered by Google App Engine
This is Rietveld 408576698