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

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: Blink_Common_export instead of blink_export 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 e28bff5a73dc39af60065e3522889c559c1b8926..870f196e49f280ed7dfc83ef92d91a3404fc19c4 100644
--- a/content/common/input/touch_event_stream_validator.cc
+++ b/content/common/input/touch_event_stream_validator.cc
@@ -61,9 +61,8 @@ bool TouchEventStreamValidator::Validate(const WebTouchEvent& event,
}
if (!WebInputEvent::isTouchEventType(event.type)) {
- error_msg->append(
- StringPrintf("Touch event has invalid type: %s\n",
- ui::WebInputEventTraits::GetName(event.type)));
+ error_msg->append(StringPrintf("Touch event has invalid type: %s\n",
+ WebInputEvent::GetName(event.type)));
}
// Allow "hard" restarting of touch stream validation. This is necessary
@@ -161,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",
- ui::WebInputEventTraits::GetName(event.type)));
+ WebInputEvent::GetName(event.type)));
}
return error_msg->empty();

Powered by Google App Engine
This is Rietveld 408576698