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 V8TestInterfaceNamedConstructor2_h | 7 #ifndef V8TestInterfaceNamedConstructor2_h |
8 #define V8TestInterfaceNamedConstructor2_h | 8 #define V8TestInterfaceNamedConstructor2_h |
9 | 9 |
10 #include "bindings/tests/idls/TestInterfaceNamedConstructor2.h" | 10 #include "bindings/tests/idls/TestInterfaceNamedConstructor2.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 return static_cast<TestInterfaceNamedConstructor2*>(object); | 44 return static_cast<TestInterfaceNamedConstructor2*>(object); |
45 } | 45 } |
46 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestI
nterfaceNamedConstructor2*, v8::Isolate*) { } | 46 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestI
nterfaceNamedConstructor2*, v8::Isolate*) { } |
47 static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isol
ate*) { } | 47 static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isol
ate*) { } |
48 | 48 |
49 private: | 49 private: |
50 friend v8::Handle<v8::Object> wrap(TestInterfaceNamedConstructor2*, v8::Hand
le<v8::Object> creationContext, v8::Isolate*); | 50 friend v8::Handle<v8::Object> wrap(TestInterfaceNamedConstructor2*, v8::Hand
le<v8::Object> creationContext, v8::Isolate*); |
51 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestInterfaceNamedCon
structor2>, v8::Handle<v8::Object> creationContext, v8::Isolate*); | 51 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestInterfaceNamedCon
structor2>, v8::Handle<v8::Object> creationContext, v8::Isolate*); |
52 }; | 52 }; |
53 | 53 |
54 inline v8::Handle<v8::Object> wrap(TestInterfaceNamedConstructor2* impl, v8::Han
dle<v8::Object> creationContext, v8::Isolate* isolate) | 54 v8::Handle<v8::Object> wrap(TestInterfaceNamedConstructor2* impl, v8::Handle<v8:
:Object> creationContext, v8::Isolate*); |
55 { | |
56 ASSERT(impl); | |
57 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceNamedConstructor2>(impl
, isolate)); | |
58 return V8TestInterfaceNamedConstructor2::createWrapper(impl, creationContext
, isolate); | |
59 } | |
60 | 55 |
61 inline v8::Handle<v8::Value> toV8(TestInterfaceNamedConstructor2* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) | 56 inline v8::Handle<v8::Value> toV8(TestInterfaceNamedConstructor2* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) |
62 { | 57 { |
63 if (UNLIKELY(!impl)) | 58 if (UNLIKELY(!impl)) |
64 return v8::Null(isolate); | 59 return v8::Null(isolate); |
65 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestInterfaceName
dConstructor2>(impl, isolate); | 60 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestInterfaceName
dConstructor2>(impl, isolate); |
66 if (!wrapper.IsEmpty()) | 61 if (!wrapper.IsEmpty()) |
67 return wrapper; | 62 return wrapper; |
68 return wrap(impl, creationContext, isolate); | 63 return wrap(impl, creationContext, isolate); |
69 } | 64 } |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 } | 121 } |
127 | 122 |
128 template<class CallbackInfo, class Wrappable> | 123 template<class CallbackInfo, class Wrappable> |
129 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stInterfaceNamedConstructor2> impl, Wrappable* wrappable) | 124 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stInterfaceNamedConstructor2> impl, Wrappable* wrappable) |
130 { | 125 { |
131 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); | 126 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); |
132 } | 127 } |
133 | 128 |
134 } | 129 } |
135 #endif // V8TestInterfaceNamedConstructor2_h | 130 #endif // V8TestInterfaceNamedConstructor2_h |
OLD | NEW |