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

Unified Diff: content/browser/renderer_host/input/touch_action_filter.cc

Issue 2573073003: Collapse the API surface on WebInputEvent via accessor functions. (Closed)
Patch Set: Fix nits Created 3 years, 11 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: content/browser/renderer_host/input/touch_action_filter.cc
diff --git a/content/browser/renderer_host/input/touch_action_filter.cc b/content/browser/renderer_host/input/touch_action_filter.cc
index 8d7a59a75980070fa9564f4ec5121033466e6548..8c86cd5a13c45a2517ddc54b021b7a6243ce74a7 100644
--- a/content/browser/renderer_host/input/touch_action_filter.cc
+++ b/content/browser/renderer_host/input/touch_action_filter.cc
@@ -41,7 +41,7 @@ bool TouchActionFilter::FilterGestureEvent(WebGestureEvent* gesture_event) {
// Filter for allowable touch actions first (eg. before the TouchEventQueue
// can decide to send a touch cancel event).
- switch (gesture_event->type) {
+ switch (gesture_event->type()) {
case WebInputEvent::GestureScrollBegin:
DCHECK(!drop_scroll_gesture_events_);
DCHECK(!drop_pinch_gesture_events_);
@@ -178,7 +178,7 @@ void TouchActionFilter::ResetTouchAction() {
bool TouchActionFilter::ShouldSuppressScroll(
const blink::WebGestureEvent& gesture_event) {
- DCHECK_EQ(gesture_event.type, WebInputEvent::GestureScrollBegin);
+ DCHECK_EQ(gesture_event.type(), WebInputEvent::GestureScrollBegin);
// if there are two or more pointers then ensure that we allow panning
// if pinch-zoom is allowed. Determine if this should really occur in the
// GestureScrollBegin or not; see crbug.com/649034.

Powered by Google App Engine
This is Rietveld 408576698