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 V8TestInterface3_h | 7 #ifndef V8TestInterface3_h |
8 #define V8TestInterface3_h | 8 #define V8TestInterface3_h |
9 | 9 |
10 #include "bindings/tests/idls/TestInterface3.h" | 10 #include "bindings/tests/idls/TestInterface3.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 return static_cast<TestInterface3*>(object); | 47 return static_cast<TestInterface3*>(object); |
48 } | 48 } |
49 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestI
nterface3*, v8::Isolate*) { } | 49 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestI
nterface3*, v8::Isolate*) { } |
50 static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isol
ate*) { } | 50 static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isol
ate*) { } |
51 | 51 |
52 private: | 52 private: |
53 friend v8::Handle<v8::Object> wrap(TestInterface3*, v8::Handle<v8::Object> c
reationContext, v8::Isolate*); | 53 friend v8::Handle<v8::Object> wrap(TestInterface3*, v8::Handle<v8::Object> c
reationContext, v8::Isolate*); |
54 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestInterface3>, v8::
Handle<v8::Object> creationContext, v8::Isolate*); | 54 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestInterface3>, v8::
Handle<v8::Object> creationContext, v8::Isolate*); |
55 }; | 55 }; |
56 | 56 |
57 inline v8::Handle<v8::Object> wrap(TestInterface3* impl, v8::Handle<v8::Object>
creationContext, v8::Isolate* isolate) | 57 v8::Handle<v8::Object> wrap(TestInterface3* impl, v8::Handle<v8::Object> creatio
nContext, v8::Isolate*); |
58 { | |
59 ASSERT(impl); | |
60 ASSERT(!DOMDataStore::containsWrapper<V8TestInterface3>(impl, isolate)); | |
61 return V8TestInterface3::createWrapper(impl, creationContext, isolate); | |
62 } | |
63 | 58 |
64 inline v8::Handle<v8::Value> toV8(TestInterface3* impl, v8::Handle<v8::Object> c
reationContext, v8::Isolate* isolate) | 59 inline v8::Handle<v8::Value> toV8(TestInterface3* impl, v8::Handle<v8::Object> c
reationContext, v8::Isolate* isolate) |
65 { | 60 { |
66 if (UNLIKELY(!impl)) | 61 if (UNLIKELY(!impl)) |
67 return v8::Null(isolate); | 62 return v8::Null(isolate); |
68 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestInterface3>(i
mpl, isolate); | 63 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestInterface3>(i
mpl, isolate); |
69 if (!wrapper.IsEmpty()) | 64 if (!wrapper.IsEmpty()) |
70 return wrapper; | 65 return wrapper; |
71 return wrap(impl, creationContext, isolate); | 66 return wrap(impl, creationContext, isolate); |
72 } | 67 } |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 } | 124 } |
130 | 125 |
131 template<class CallbackInfo, class Wrappable> | 126 template<class CallbackInfo, class Wrappable> |
132 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stInterface3> impl, Wrappable* wrappable) | 127 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stInterface3> impl, Wrappable* wrappable) |
133 { | 128 { |
134 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); | 129 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); |
135 } | 130 } |
136 | 131 |
137 } | 132 } |
138 #endif // V8TestInterface3_h | 133 #endif // V8TestInterface3_h |
OLD | NEW |