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 V8TestInterfaceCustomConstructor_h | 7 #ifndef V8TestInterfaceCustomConstructor_h |
8 #define V8TestInterfaceCustomConstructor_h | 8 #define V8TestInterfaceCustomConstructor_h |
9 | 9 |
10 #include "bindings/tests/idls/TestInterfaceCustomConstructor.h" | 10 #include "bindings/tests/idls/TestInterfaceCustomConstructor.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 return static_cast<TestInterfaceCustomConstructor*>(object); | 40 return static_cast<TestInterfaceCustomConstructor*>(object); |
41 } | 41 } |
42 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestI
nterfaceCustomConstructor*, v8::Isolate*) { } | 42 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestI
nterfaceCustomConstructor*, v8::Isolate*) { } |
43 static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isol
ate*) { } | 43 static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isol
ate*) { } |
44 | 44 |
45 private: | 45 private: |
46 friend v8::Handle<v8::Object> wrap(TestInterfaceCustomConstructor*, v8::Hand
le<v8::Object> creationContext, v8::Isolate*); | 46 friend v8::Handle<v8::Object> wrap(TestInterfaceCustomConstructor*, v8::Hand
le<v8::Object> creationContext, v8::Isolate*); |
47 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestInterfaceCustomCo
nstructor>, v8::Handle<v8::Object> creationContext, v8::Isolate*); | 47 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestInterfaceCustomCo
nstructor>, v8::Handle<v8::Object> creationContext, v8::Isolate*); |
48 }; | 48 }; |
49 | 49 |
50 inline v8::Handle<v8::Object> wrap(TestInterfaceCustomConstructor* impl, v8::Han
dle<v8::Object> creationContext, v8::Isolate* isolate) | 50 v8::Handle<v8::Object> wrap(TestInterfaceCustomConstructor* impl, v8::Handle<v8:
:Object> creationContext, v8::Isolate*); |
51 { | |
52 ASSERT(impl); | |
53 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceCustomConstructor>(impl
, isolate)); | |
54 return V8TestInterfaceCustomConstructor::createWrapper(impl, creationContext
, isolate); | |
55 } | |
56 | 51 |
57 inline v8::Handle<v8::Value> toV8(TestInterfaceCustomConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) | 52 inline v8::Handle<v8::Value> toV8(TestInterfaceCustomConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) |
58 { | 53 { |
59 if (UNLIKELY(!impl)) | 54 if (UNLIKELY(!impl)) |
60 return v8::Null(isolate); | 55 return v8::Null(isolate); |
61 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestInterfaceCust
omConstructor>(impl, isolate); | 56 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestInterfaceCust
omConstructor>(impl, isolate); |
62 if (!wrapper.IsEmpty()) | 57 if (!wrapper.IsEmpty()) |
63 return wrapper; | 58 return wrapper; |
64 return wrap(impl, creationContext, isolate); | 59 return wrap(impl, creationContext, isolate); |
65 } | 60 } |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 } | 117 } |
123 | 118 |
124 template<class CallbackInfo, class Wrappable> | 119 template<class CallbackInfo, class Wrappable> |
125 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stInterfaceCustomConstructor> impl, Wrappable* wrappable) | 120 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stInterfaceCustomConstructor> impl, Wrappable* wrappable) |
126 { | 121 { |
127 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); | 122 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); |
128 } | 123 } |
129 | 124 |
130 } | 125 } |
131 #endif // V8TestInterfaceCustomConstructor_h | 126 #endif // V8TestInterfaceCustomConstructor_h |
OLD | NEW |