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

Unified Diff: content/common/input/input_event_stream_validator.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/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 fac93dc2f7ec10eec2b3794f5c0617c82d32b87e..bb178ed8af064f567315bf7ef828a164b3e52411 100644
--- a/content/common/input/input_event_stream_validator.cc
+++ b/content/common/input/input_event_stream_validator.cc
@@ -37,12 +37,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);
}
« no previous file with comments | « content/common/input/gesture_event_stream_validator.cc ('k') | content/common/input/input_param_traits_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698