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

Unified Diff: content/common/input/gesture_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/gesture_event_stream_validator.cc
diff --git a/content/common/input/gesture_event_stream_validator.cc b/content/common/input/gesture_event_stream_validator.cc
index 8f2020563f890592ad75e8958bc4744082791477..2bcb8b0d5b00b96157184512edd6326f36b988f2 100644
--- a/content/common/input/gesture_event_stream_validator.cc
+++ b/content/common/input/gesture_event_stream_validator.cc
@@ -25,11 +25,11 @@ bool GestureEventStreamValidator::Validate(const blink::WebGestureEvent& event,
std::string* error_msg) {
DCHECK(error_msg);
error_msg->clear();
- if (!WebInputEvent::isGestureEventType(event.type)) {
+ if (!WebInputEvent::isGestureEventType(event.type())) {
error_msg->append(base::StringPrintf("Invalid gesture type: %s",
- WebInputEvent::GetName(event.type)));
+ WebInputEvent::GetName(event.type())));
}
- switch (event.type) {
+ switch (event.type()) {
case WebInputEvent::GestureScrollBegin:
if (scrolling_)
error_msg->append("Scroll begin during scroll\n");
« no previous file with comments | « content/common/input/event_with_latency_info_unittest.cc ('k') | content/common/input/input_event_stream_validator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698