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 V8TestObject_h | 7 #ifndef V8TestObject_h |
8 #define V8TestObject_h | 8 #define V8TestObject_h |
9 | 9 |
10 #include "bindings/core/v8/ScriptWrappable.h" | 10 #include "bindings/core/v8/ScriptWrappable.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 static bool nodeAttributeAttributeSetter(LocalFrame* frame, TestObject*
holderImpl, PassRefPtrWillBeRawPtr<Node> cppValue); | 36 static bool nodeAttributeAttributeSetter(LocalFrame* frame, TestObject*
holderImpl, PassRefPtrWillBeRawPtr<Node> cppValue); |
37 static bool attributeForPrivateScriptOnlyAttributeGetter(LocalFrame* fra
me, TestObject* holderImpl, String* result); | 37 static bool attributeForPrivateScriptOnlyAttributeGetter(LocalFrame* fra
me, TestObject* holderImpl, String* result); |
38 static bool attributeForPrivateScriptOnlyAttributeSetter(LocalFrame* fra
me, TestObject* holderImpl, String cppValue); | 38 static bool attributeForPrivateScriptOnlyAttributeSetter(LocalFrame* fra
me, TestObject* holderImpl, String cppValue); |
39 static bool enumForPrivateScriptAttributeGetter(LocalFrame* frame, TestO
bject* holderImpl, String* result); | 39 static bool enumForPrivateScriptAttributeGetter(LocalFrame* frame, TestO
bject* holderImpl, String* result); |
40 static bool enumForPrivateScriptAttributeSetter(LocalFrame* frame, TestO
bject* holderImpl, String cppValue); | 40 static bool enumForPrivateScriptAttributeSetter(LocalFrame* frame, TestO
bject* holderImpl, String cppValue); |
41 }; | 41 }; |
42 | 42 |
43 static bool hasInstance(v8::Handle<v8::Value>, v8::Isolate*); | 43 static bool hasInstance(v8::Handle<v8::Value>, v8::Isolate*); |
44 static v8::Handle<v8::Object> findInstanceInPrototypeChain(v8::Handle<v8::Va
lue>, v8::Isolate*); | 44 static v8::Handle<v8::Object> findInstanceInPrototypeChain(v8::Handle<v8::Va
lue>, v8::Isolate*); |
45 static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*); | 45 static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*); |
46 static TestObject* toNative(v8::Handle<v8::Object> object) | 46 static TestObject* toImpl(v8::Handle<v8::Object> object) |
47 { | 47 { |
48 return fromInternalPointer(blink::toInternalPointer(object)); | 48 return toImpl(blink::toScriptWrappableBase(object)); |
49 } | 49 } |
50 static TestObject* toNativeWithTypeCheck(v8::Isolate*, v8::Handle<v8::Value>
); | 50 static TestObject* toImplWithTypeCheck(v8::Isolate*, v8::Handle<v8::Value>); |
51 static const WrapperTypeInfo wrapperTypeInfo; | 51 static const WrapperTypeInfo wrapperTypeInfo; |
52 static void refObject(ScriptWrappableBase* internalPointer); | 52 static void refObject(ScriptWrappableBase* internalPointer); |
53 static void derefObject(ScriptWrappableBase* internalPointer); | 53 static void derefObject(ScriptWrappableBase* internalPointer); |
54 static WrapperPersistentNode* createPersistentHandle(ScriptWrappableBase* in
ternalPointer); | 54 static WrapperPersistentNode* createPersistentHandle(ScriptWrappableBase* in
ternalPointer); |
55 static void customVoidMethodMethodCustom(const v8::FunctionCallbackInfo<v8::
Value>&); | 55 static void customVoidMethodMethodCustom(const v8::FunctionCallbackInfo<v8::
Value>&); |
56 #if ENABLE(CONDITION) | 56 #if ENABLE(CONDITION) |
57 static void conditionalConditionCustomVoidMethodMethodCustom(const v8::Funct
ionCallbackInfo<v8::Value>&); | 57 static void conditionalConditionCustomVoidMethodMethodCustom(const v8::Funct
ionCallbackInfo<v8::Value>&); |
58 #endif // ENABLE(CONDITION) | 58 #endif // ENABLE(CONDITION) |
59 static void customObjectAttributeAttributeGetterCustom(const v8::PropertyCal
lbackInfo<v8::Value>&); | 59 static void customObjectAttributeAttributeGetterCustom(const v8::PropertyCal
lbackInfo<v8::Value>&); |
60 static void customObjectAttributeAttributeSetterCustom(v8::Local<v8::Value>,
const v8::PropertyCallbackInfo<void>&); | 60 static void customObjectAttributeAttributeSetterCustom(v8::Local<v8::Value>,
const v8::PropertyCallbackInfo<void>&); |
61 static void customGetterLongAttributeAttributeGetterCustom(const v8::Propert
yCallbackInfo<v8::Value>&); | 61 static void customGetterLongAttributeAttributeGetterCustom(const v8::Propert
yCallbackInfo<v8::Value>&); |
62 static void customGetterReadonlyObjectAttributeAttributeGetterCustom(const v
8::PropertyCallbackInfo<v8::Value>&); | 62 static void customGetterReadonlyObjectAttributeAttributeGetterCustom(const v
8::PropertyCallbackInfo<v8::Value>&); |
63 static void customSetterLongAttributeAttributeSetterCustom(v8::Local<v8::Val
ue>, const v8::PropertyCallbackInfo<void>&); | 63 static void customSetterLongAttributeAttributeSetterCustom(v8::Local<v8::Val
ue>, const v8::PropertyCallbackInfo<void>&); |
64 #if ENABLE(CONDITION) | 64 #if ENABLE(CONDITION) |
65 static void customLongAttributeAttributeGetterCustom(const v8::PropertyCallb
ackInfo<v8::Value>&); | 65 static void customLongAttributeAttributeGetterCustom(const v8::PropertyCallb
ackInfo<v8::Value>&); |
66 #endif // ENABLE(CONDITION) | 66 #endif // ENABLE(CONDITION) |
67 #if ENABLE(CONDITION) | 67 #if ENABLE(CONDITION) |
68 static void customLongAttributeAttributeSetterCustom(v8::Local<v8::Value>, c
onst v8::PropertyCallbackInfo<void>&); | 68 static void customLongAttributeAttributeSetterCustom(v8::Local<v8::Value>, c
onst v8::PropertyCallbackInfo<void>&); |
69 #endif // ENABLE(CONDITION) | 69 #endif // ENABLE(CONDITION) |
70 static void customImplementedAsLongAttributeAttributeGetterCustom(const v8::
PropertyCallbackInfo<v8::Value>&); | 70 static void customImplementedAsLongAttributeAttributeGetterCustom(const v8::
PropertyCallbackInfo<v8::Value>&); |
71 static void customImplementedAsLongAttributeAttributeSetterCustom(v8::Local<
v8::Value>, const v8::PropertyCallbackInfo<void>&); | 71 static void customImplementedAsLongAttributeAttributeSetterCustom(v8::Local<
v8::Value>, const v8::PropertyCallbackInfo<void>&); |
72 static void customGetterImplementedAsLongAttributeAttributeGetterCustom(cons
t v8::PropertyCallbackInfo<v8::Value>&); | 72 static void customGetterImplementedAsLongAttributeAttributeGetterCustom(cons
t v8::PropertyCallbackInfo<v8::Value>&); |
73 static void customSetterImplementedAsLongAttributeAttributeSetterCustom(v8::
Local<v8::Value>, const v8::PropertyCallbackInfo<void>&); | 73 static void customSetterImplementedAsLongAttributeAttributeSetterCustom(v8::
Local<v8::Value>, const v8::PropertyCallbackInfo<void>&); |
74 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0
; | 74 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0
; |
75 static inline ScriptWrappableBase* toInternalPointer(TestObject* impl) | 75 static inline ScriptWrappableBase* toScriptWrappableBase(TestObject* impl) |
76 { | 76 { |
77 return impl->toInternalPointer(); | 77 return impl->toScriptWrappableBase(); |
78 } | 78 } |
79 | 79 |
80 static inline TestObject* fromInternalPointer(ScriptWrappableBase* internalP
ointer) | 80 static inline TestObject* toImpl(ScriptWrappableBase* internalPointer) |
81 { | 81 { |
82 return ScriptWrappableBase::fromInternalPointer<TestObject>(internalPoin
ter); | 82 return internalPointer->toImpl<TestObject>(); |
83 } | 83 } |
84 static void installConditionallyEnabledProperties(v8::Handle<v8::Object>, v8
::Isolate*); | 84 static void installConditionallyEnabledProperties(v8::Handle<v8::Object>, v8
::Isolate*); |
85 static void installConditionallyEnabledMethods(v8::Handle<v8::Object>, v8::I
solate*); | 85 static void installConditionallyEnabledMethods(v8::Handle<v8::Object>, v8::I
solate*); |
86 | 86 |
87 private: | 87 private: |
88 }; | 88 }; |
89 | 89 |
90 inline v8::Handle<v8::Object> wrap(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) | 90 inline v8::Handle<v8::Object> wrap(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) |
91 { | 91 { |
92 return impl->wrap(creationContext, isolate); | 92 return impl->wrap(creationContext, isolate); |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 } | 161 } |
162 | 162 |
163 template<class CallbackInfo, class Wrappable> | 163 template<class CallbackInfo, class Wrappable> |
164 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stObject> impl, Wrappable* wrappable) | 164 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stObject> impl, Wrappable* wrappable) |
165 { | 165 { |
166 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); | 166 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); |
167 } | 167 } |
168 | 168 |
169 } // namespace blink | 169 } // namespace blink |
170 #endif // V8TestObject_h | 170 #endif // V8TestObject_h |
OLD | NEW |