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

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

Issue 2573073003: Collapse the API surface on WebInputEvent via accessor functions. (Closed)
Patch Set: Created 4 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: 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 5b2b3867622fa46062852e0cdac0c58423e38b91..cffe91829fc68b2d05a4800086cc4ccf28c0f495 100644
--- a/blimp/client/core/input/blimp_input_manager.cc
+++ b/blimp/client/core/input/blimp_input_manager.cc
@@ -79,8 +79,8 @@ void BlimpInputManager::OnGestureEvent(const ui::GestureEventData& gesture) {
// to stop providing shift meta values to synthetic MotionEvents. This
// prevents unintended shift+click interpretation of all accessibility clicks.
// See crbug.com/443247.
- if (web_gesture.type == blink::WebInputEvent::GestureTap &&
- web_gesture.modifiers == blink::WebInputEvent::ShiftKey) {
+ if (web_gesture.type() == blink::WebInputEvent::GestureTap &&
+ web_gesture.modifiers() == blink::WebInputEvent::ShiftKey) {
web_gesture.setModifiers(0);
}

Powered by Google App Engine
This is Rietveld 408576698