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

Unified Diff: content/common/input/gesture_event_stream_validator.cc

Issue 2250233002: Type->String helper function added to WebInputEvent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 9bdea8a481fe9bc7e8d1b91040b856e634ffa85c..bd6590bcea75c16e2b845de2e4bc78d872634ac8 100644
--- a/content/common/input/gesture_event_stream_validator.cc
+++ b/content/common/input/gesture_event_stream_validator.cc
@@ -25,8 +25,8 @@ bool GestureEventStreamValidator::Validate(const blink::WebGestureEvent& event,
DCHECK(error_msg);
error_msg->clear();
if (!WebInputEvent::isGestureEventType(event.type)) {
- error_msg->append(base::StringPrintf(
- "Invalid gesture type: %s", WebInputEventTraits::GetName(event.type)));
+ error_msg->append(base::StringPrintf("Invalid gesture type: %s",
+ WebInputEvent::GetName(event.type)));
}
switch (event.type) {
case WebInputEvent::GestureScrollBegin:

Powered by Google App Engine
This is Rietveld 408576698