OLD | NEW |
1 /* | 1 /* |
2 This file is part of the Blink open source project. | 2 This file is part of the Blink open source project. |
3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! | 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! |
4 | 4 |
5 This library is free software; you can redistribute it and/or | 5 This library is free software; you can redistribute it and/or |
6 modify it under the terms of the GNU Library General Public | 6 modify it under the terms of the GNU Library General Public |
7 License as published by the Free Software Foundation; either | 7 License as published by the Free Software Foundation; either |
8 version 2 of the License, or (at your option) any later version. | 8 version 2 of the License, or (at your option) any later version. |
9 | 9 |
10 This library is distributed in the hope that it will be useful, | 10 This library is distributed in the hope that it will be useful, |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 #if ENABLE(TEST) | 24 #if ENABLE(TEST) |
25 #include "V8TestEvent.h" | 25 #include "V8TestEvent.h" |
26 #include "bindings/bindings/tests/idls/Event.h" | 26 #include "bindings/bindings/tests/idls/Event.h" |
27 #include "bindings/v8/V8Binding.h" | 27 #include "bindings/v8/V8Binding.h" |
28 #include "bindings/v8/V8DOMWrapper.h" | 28 #include "bindings/v8/V8DOMWrapper.h" |
29 #include "bindings/v8/WrapperTypeInfo.h" | 29 #include "bindings/v8/WrapperTypeInfo.h" |
30 | 30 |
31 namespace WebCore { | 31 namespace WebCore { |
32 | 32 |
| 33 class Dictionary; |
33 class V8TestExtendedEvent { | 34 class V8TestExtendedEvent { |
34 public: | 35 public: |
35 static bool HasInstance(v8::Handle<v8::Value>, v8::Isolate*, WrapperWorldTyp
e); | 36 static bool HasInstance(v8::Handle<v8::Value>, v8::Isolate*, WrapperWorldTyp
e); |
36 static bool HasInstanceInAnyWorld(v8::Handle<v8::Value>, v8::Isolate*); | 37 static bool HasInstanceInAnyWorld(v8::Handle<v8::Value>, v8::Isolate*); |
37 static v8::Handle<v8::FunctionTemplate> GetTemplate(v8::Isolate*, WrapperWor
ldType); | 38 static v8::Handle<v8::FunctionTemplate> GetTemplate(v8::Isolate*, WrapperWor
ldType); |
38 static Event* toNative(v8::Handle<v8::Object> object) | 39 static Event* toNative(v8::Handle<v8::Object> object) |
39 { | 40 { |
40 return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8
DOMWrapperObjectIndex)); | 41 return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8
DOMWrapperObjectIndex)); |
41 } | 42 } |
42 static void derefObject(void*); | 43 static void derefObject(void*); |
43 static WrapperTypeInfo info; | 44 static WrapperTypeInfo info; |
| 45 static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
44 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0
; | 46 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0
; |
45 static inline void* toInternalPointer(Event* impl) | 47 static inline void* toInternalPointer(Event* impl) |
46 { | 48 { |
47 return V8TestEvent::toInternalPointer(impl); | 49 return V8TestEvent::toInternalPointer(impl); |
48 } | 50 } |
49 | 51 |
50 static inline Event* fromInternalPointer(void* object) | 52 static inline Event* fromInternalPointer(void* object) |
51 { | 53 { |
52 return static_cast<Event*>(V8TestEvent::fromInternalPointer(object)); | 54 return static_cast<Event*>(V8TestEvent::fromInternalPointer(object)); |
53 } | 55 } |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 inline v8::Handle<v8::Value> toV8Fast(PassRefPtr< Event > impl, const CallbackIn
fo& callbackInfo, Wrappable* wrappable) | 116 inline v8::Handle<v8::Value> toV8Fast(PassRefPtr< Event > impl, const CallbackIn
fo& callbackInfo, Wrappable* wrappable) |
115 { | 117 { |
116 return toV8Fast(impl.get(), callbackInfo, wrappable); | 118 return toV8Fast(impl.get(), callbackInfo, wrappable); |
117 } | 119 } |
118 | 120 |
119 inline v8::Handle<v8::Value> toV8(PassRefPtr< Event > impl, v8::Handle<v8::Objec
t> creationContext, v8::Isolate* isolate) | 121 inline v8::Handle<v8::Value> toV8(PassRefPtr< Event > impl, v8::Handle<v8::Objec
t> creationContext, v8::Isolate* isolate) |
120 { | 122 { |
121 return toV8(impl.get(), creationContext, isolate); | 123 return toV8(impl.get(), creationContext, isolate); |
122 } | 124 } |
123 | 125 |
| 126 bool fillEventInit(EventInit&, const Dictionary&); |
| 127 |
124 } | 128 } |
125 | 129 |
126 #endif // ENABLE(TEST) | 130 #endif // ENABLE(TEST) |
127 | 131 |
128 #endif // V8TestExtendedEvent_h | 132 #endif // V8TestExtendedEvent_h |
OLD | NEW |