OLD | NEW |
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 |
OLD | NEW |