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

Unified Diff: content/common/input/touch_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/touch_event_stream_validator.cc
diff --git a/content/common/input/touch_event_stream_validator.cc b/content/common/input/touch_event_stream_validator.cc
index 23675b9f1bf4545f82b253b4f1dbc6f3ead345ec..3c89b63e00bd70d963406502a2c5ae9abd4ae26e 100644
--- a/content/common/input/touch_event_stream_validator.cc
+++ b/content/common/input/touch_event_stream_validator.cc
@@ -62,7 +62,7 @@ bool TouchEventStreamValidator::Validate(const WebTouchEvent& event,
if (!WebInputEvent::isTouchEventType(event.type)) {
error_msg->append(StringPrintf("Touch event has invalid type: %s\n",
- WebInputEventTraits::GetName(event.type)));
+ WebInputEvent::GetName(event.type)));
}
// Allow "hard" restarting of touch stream validation. This is necessary
@@ -160,7 +160,7 @@ bool TouchEventStreamValidator::Validate(const WebTouchEvent& event,
if (!found_valid_state_for_type) {
error_msg->append(
StringPrintf("No valid touch point corresponding to event type: %s\n",
- WebInputEventTraits::GetName(event.type)));
+ WebInputEvent::GetName(event.type)));
}
return error_msg->empty();

Powered by Google App Engine
This is Rietveld 408576698