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

Unified Diff: third_party/WebKit/Source/web/WebViewImpl.cpp

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: third_party/WebKit/Source/web/WebViewImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
index 9bc4335ce6d61d0e6cfa6575c8a292b7bff37569..763645a8f0e6b6ceaea8b421f792876fb2f0b6ce 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -1067,7 +1067,7 @@ WebInputEventResult WebViewImpl::handleKeyEvent(const WebKeyboardEvent& event)
|| (event.type == WebInputEvent::KeyDown)
|| (event.type == WebInputEvent::KeyUp));
TRACE_EVENT2("input", "WebViewImpl::handleKeyEvent",
- "type", inputTypeToName(event.type),
+ "type", WebInputEvent::GetName(event.type),
"text", String(event.text).utf8());
// Halt an in-progress fling on a key event.
@@ -2147,7 +2147,7 @@ WebInputEventResult WebViewImpl::handleInputEvent(const WebInputEvent& inputEven
page()->frameHost().visualViewport().startTrackingPinchStats();
- TRACE_EVENT1("input,rail", "WebViewImpl::handleInputEvent", "type", inputTypeToName(inputEvent.type));
+ TRACE_EVENT1("input,rail", "WebViewImpl::handleInputEvent", "type", WebInputEvent::GetName(inputEvent.type));
// If we've started a drag and drop operation, ignore input events until
// we're done.
if (m_doingDragAndDrop)

Powered by Google App Engine
This is Rietveld 408576698