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

Unified Diff: content/common/input/gesture_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/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 14028ca032e119ec0548caf4c8ba3635ac64eadc..4a918619863c749dc9b78142d7ac154de9ddefba 100644
--- a/content/common/input/gesture_event_stream_validator.cc
+++ b/content/common/input/gesture_event_stream_validator.cc
@@ -24,11 +24,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");

Powered by Google App Engine
This is Rietveld 408576698