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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8EventListenerInfo_h 5 #ifndef V8EventListenerInfo_h
6 #define V8EventListenerInfo_h 6 #define V8EventListenerInfo_h
7 7
8 #include "platform/inspector_protocol/Collections.h" 8 #include "platform/inspector_protocol/Collections.h"
9 #include "wtf/text/WTFString.h" 9 #include "platform/inspector_protocol/String16.h"
10 10
11 #include <v8.h> 11 #include <v8.h>
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class V8EventListenerInfo { 15 class V8EventListenerInfo {
16 public: 16 public:
17 V8EventListenerInfo(const String& eventType, bool useCapture, v8::Local<v8:: Object> handler) 17 V8EventListenerInfo(const String16& eventType, bool useCapture, v8::Local<v8 ::Object> handler)
18 : eventType(eventType) 18 : eventType(eventType)
19 , useCapture(useCapture) 19 , useCapture(useCapture)
20 , handler(handler) 20 , handler(handler)
21 { 21 {
22 } 22 }
23 23
24 const String eventType; 24 const String16 eventType;
25 bool useCapture; 25 bool useCapture;
26 v8::Local<v8::Object> handler; 26 v8::Local<v8::Object> handler;
27 27
28 }; 28 };
29 29
30 using V8EventListenerInfoMap = protocol::HashMap<String, OwnPtr<protocol::Vector <V8EventListenerInfo>>>; 30 using V8EventListenerInfoMap = protocol::HashMap<String16, OwnPtr<protocol::Vect or<V8EventListenerInfo>>>;
31 31
32 } // namespace blink 32 } // namespace blink
33 33
34 #endif // V8EventListenerInfo_h 34 #endif // V8EventListenerInfo_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698