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

Unified Diff: third_party/WebKit/Source/platform/v8_inspector/public/V8EventListenerInfo.h

Issue 1767883002: DevTools: generate string16-based handlers for v8_inspector. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for landing 2 Created 4 years, 9 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/platform/v8_inspector/public/V8EventListenerInfo.h
diff --git a/third_party/WebKit/Source/platform/v8_inspector/public/V8EventListenerInfo.h b/third_party/WebKit/Source/platform/v8_inspector/public/V8EventListenerInfo.h
index 3615a07772f6526c50b96a94cc229e4185520f17..e261b6c89cda57b22939bfa5415be47d3778e161 100644
--- a/third_party/WebKit/Source/platform/v8_inspector/public/V8EventListenerInfo.h
+++ b/third_party/WebKit/Source/platform/v8_inspector/public/V8EventListenerInfo.h
@@ -6,7 +6,7 @@
#define V8EventListenerInfo_h
#include "platform/inspector_protocol/Collections.h"
-#include "wtf/text/WTFString.h"
+#include "platform/inspector_protocol/String16.h"
#include <v8.h>
@@ -14,20 +14,20 @@ namespace blink {
class V8EventListenerInfo {
public:
- V8EventListenerInfo(const String& eventType, bool useCapture, v8::Local<v8::Object> handler)
+ V8EventListenerInfo(const String16& eventType, bool useCapture, v8::Local<v8::Object> handler)
: eventType(eventType)
, useCapture(useCapture)
, handler(handler)
{
}
- const String eventType;
+ const String16 eventType;
bool useCapture;
v8::Local<v8::Object> handler;
};
-using V8EventListenerInfoMap = protocol::HashMap<String, OwnPtr<protocol::Vector<V8EventListenerInfo>>>;
+using V8EventListenerInfoMap = protocol::HashMap<String16, OwnPtr<protocol::Vector<V8EventListenerInfo>>>;
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698