OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! | 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
6 | 6 |
7 #ifndef V8TestInterfaceEventTarget_h | 7 #ifndef V8TestInterfaceEventTarget_h |
8 #define V8TestInterfaceEventTarget_h | 8 #define V8TestInterfaceEventTarget_h |
9 | 9 |
10 #include "bindings/core/v8/ScriptWrappable.h" | 10 #include "bindings/core/v8/ScriptWrappable.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 } | 51 } |
52 | 52 |
53 static inline TestInterfaceEventTarget* fromInternalPointer(ScriptWrappableB
ase* internalPointer) | 53 static inline TestInterfaceEventTarget* fromInternalPointer(ScriptWrappableB
ase* internalPointer) |
54 { | 54 { |
55 return ScriptWrappableBase::fromInternalPointer<TestInterfaceEventTarget
>(internalPointer); | 55 return ScriptWrappableBase::fromInternalPointer<TestInterfaceEventTarget
>(internalPointer); |
56 } | 56 } |
57 static void installConditionallyEnabledProperties(v8::Handle<v8::Object>, v8
::Isolate*) { } | 57 static void installConditionallyEnabledProperties(v8::Handle<v8::Object>, v8
::Isolate*) { } |
58 static void installConditionallyEnabledMethods(v8::Handle<v8::Object>, v8::I
solate*) { } | 58 static void installConditionallyEnabledMethods(v8::Handle<v8::Object>, v8::I
solate*) { } |
59 | 59 |
60 private: | 60 private: |
61 friend v8::Handle<v8::Object> wrap(TestInterfaceEventTarget*, v8::Handle<v8:
:Object> creationContext, v8::Isolate*); | |
62 static v8::Handle<v8::Object> createWrapper(PassRefPtrWillBeRawPtr<TestInter
faceEventTarget>, v8::Handle<v8::Object> creationContext, v8::Isolate*); | |
63 }; | 61 }; |
64 | 62 |
65 v8::Handle<v8::Object> wrap(TestInterfaceEventTarget* impl, v8::Handle<v8::Objec
t> creationContext, v8::Isolate*); | 63 inline v8::Handle<v8::Object> wrap(TestInterfaceEventTarget* impl, v8::Handle<v8
::Object> creationContext, v8::Isolate* isolate) |
| 64 { |
| 65 return impl->wrap(creationContext, isolate); |
| 66 } |
66 | 67 |
67 inline v8::Handle<v8::Value> toV8(TestInterfaceEventTarget* impl, v8::Handle<v8:
:Object> creationContext, v8::Isolate* isolate) | 68 inline v8::Handle<v8::Value> toV8(TestInterfaceEventTarget* impl, v8::Handle<v8:
:Object> creationContext, v8::Isolate* isolate) |
68 { | 69 { |
69 if (UNLIKELY(!impl)) | 70 if (UNLIKELY(!impl)) |
70 return v8::Null(isolate); | 71 return v8::Null(isolate); |
71 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestInterfaceEven
tTarget>(impl, isolate); | 72 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestInterfaceEven
tTarget>(impl, isolate); |
72 if (!wrapper.IsEmpty()) | 73 if (!wrapper.IsEmpty()) |
73 return wrapper; | 74 return wrapper; |
74 | 75 |
75 return impl->wrap(creationContext, isolate); | 76 return impl->wrap(creationContext, isolate); |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 } | 134 } |
134 | 135 |
135 template<class CallbackInfo, class Wrappable> | 136 template<class CallbackInfo, class Wrappable> |
136 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtrWil
lBeRawPtr<TestInterfaceEventTarget> impl, Wrappable* wrappable) | 137 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtrWil
lBeRawPtr<TestInterfaceEventTarget> impl, Wrappable* wrappable) |
137 { | 138 { |
138 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); | 139 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); |
139 } | 140 } |
140 | 141 |
141 } // namespace blink | 142 } // namespace blink |
142 #endif // V8TestInterfaceEventTarget_h | 143 #endif // V8TestInterfaceEventTarget_h |
OLD | NEW |