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

Unified Diff: content/common/input/input_event_stream_validator.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: content/common/input/input_event_stream_validator.cc
diff --git a/content/common/input/input_event_stream_validator.cc b/content/common/input/input_event_stream_validator.cc
index 8025fb8d5c76c23c40a900f8549882ff87d3f006..0b56e6e1de838f4fc3b076fab47fad109c6ae83a 100644
--- a/content/common/input/input_event_stream_validator.cc
+++ b/content/common/input/input_event_stream_validator.cc
@@ -36,12 +36,12 @@ void InputEventStreamValidator::Validate(const WebInputEvent& event) {
bool InputEventStreamValidator::ValidateImpl(const blink::WebInputEvent& event,
std::string* error_msg) {
DCHECK(error_msg);
- if (WebInputEvent::isGestureEventType(event.type)) {
+ if (WebInputEvent::isGestureEventType(event.type())) {
const WebGestureEvent& gesture = static_cast<const WebGestureEvent&>(event);
// TODO(jdduke): Validate touchpad gesture streams.
if (gesture.sourceDevice == blink::WebGestureDeviceTouchscreen)
return gesture_validator_.Validate(gesture, error_msg);
- } else if (WebInputEvent::isTouchEventType(event.type)) {
+ } else if (WebInputEvent::isTouchEventType(event.type())) {
const WebTouchEvent& touch = static_cast<const WebTouchEvent&>(event);
return touch_validator_.Validate(touch, error_msg);
}

Powered by Google App Engine
This is Rietveld 408576698