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 #include "config.h" | 7 #include "config.h" |
8 #if ENABLE(CONDITION) | 8 #if ENABLE(CONDITION) |
9 #include "V8TestInterface.h" | 9 #include "V8TestInterface.h" |
10 | 10 |
(...skipping 19 matching lines...) Expand all Loading... |
30 #include "core/dom/Document.h" | 30 #include "core/dom/Document.h" |
31 #include "core/frame/LocalFrame.h" | 31 #include "core/frame/LocalFrame.h" |
32 #include "platform/RuntimeEnabledFeatures.h" | 32 #include "platform/RuntimeEnabledFeatures.h" |
33 #include "platform/ScriptForbiddenScope.h" | 33 #include "platform/ScriptForbiddenScope.h" |
34 #include "platform/TraceEvent.h" | 34 #include "platform/TraceEvent.h" |
35 #include "wtf/GetPtr.h" | 35 #include "wtf/GetPtr.h" |
36 #include "wtf/RefPtr.h" | 36 #include "wtf/RefPtr.h" |
37 | 37 |
38 namespace blink { | 38 namespace blink { |
39 | 39 |
40 const WrapperTypeInfo V8TestInterface::wrapperTypeInfo = { gin::kEmbedderBlink,
V8TestInterface::domTemplate, V8TestInterface::refObject, V8TestInterface::deref
Object, V8TestInterface::createPersistentHandle, V8TestInterface::toActiveDOMObj
ect, 0, V8TestInterface::visitDOMWrapper, V8TestInterface::installConditionallyE
nabledMethods, V8TestInterface::installConditionallyEnabledProperties, &V8TestIn
terfaceEmpty::wrapperTypeInfo, WrapperTypeInfo::WrapperTypeObjectPrototype, Wrap
perTypeInfo::ObjectClassId, WrapperTypeInfo::Dependent, WrapperTypeInfo::RefCoun
tedObject }; | 40 const WrapperTypeInfo V8TestInterface::wrapperTypeInfo = { gin::kEmbedderBlink,
V8TestInterface::domTemplate, V8TestInterface::refObject, V8TestInterface::deref
Object, V8TestInterface::trace, V8TestInterface::toActiveDOMObject, 0, V8TestInt
erface::visitDOMWrapper, V8TestInterface::installConditionallyEnabledMethods, V8
TestInterface::installConditionallyEnabledProperties, &V8TestInterfaceEmpty::wra
pperTypeInfo, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::Obje
ctClassId, WrapperTypeInfo::Dependent, WrapperTypeInfo::RefCountedObject }; |
41 | 41 |
42 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac
eImplementation.h. | 42 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac
eImplementation.h. |
43 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in | 43 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in |
44 // bindings/core/v8/ScriptWrappable.h. | 44 // bindings/core/v8/ScriptWrappable.h. |
45 const WrapperTypeInfo& TestInterfaceImplementation::s_wrapperTypeInfo = V8TestIn
terface::wrapperTypeInfo; | 45 const WrapperTypeInfo& TestInterfaceImplementation::s_wrapperTypeInfo = V8TestIn
terface::wrapperTypeInfo; |
46 | 46 |
47 namespace TestInterfaceImplementationV8Internal { | 47 namespace TestInterfaceImplementationV8Internal { |
48 | 48 |
49 static void testInterfaceAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) | 49 static void testInterfaceAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) |
50 { | 50 { |
(...skipping 2021 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2072 void V8TestInterface::refObject(ScriptWrappableBase* internalPointer) | 2072 void V8TestInterface::refObject(ScriptWrappableBase* internalPointer) |
2073 { | 2073 { |
2074 internalPointer->toImpl<TestInterfaceImplementation>()->ref(); | 2074 internalPointer->toImpl<TestInterfaceImplementation>()->ref(); |
2075 } | 2075 } |
2076 | 2076 |
2077 void V8TestInterface::derefObject(ScriptWrappableBase* internalPointer) | 2077 void V8TestInterface::derefObject(ScriptWrappableBase* internalPointer) |
2078 { | 2078 { |
2079 internalPointer->toImpl<TestInterfaceImplementation>()->deref(); | 2079 internalPointer->toImpl<TestInterfaceImplementation>()->deref(); |
2080 } | 2080 } |
2081 | 2081 |
2082 WrapperPersistentNode* V8TestInterface::createPersistentHandle(ScriptWrappableBa
se* internalPointer) | |
2083 { | |
2084 ASSERT_NOT_REACHED(); | |
2085 return 0; | |
2086 } | |
2087 | |
2088 template<> | 2082 template<> |
2089 v8::Handle<v8::Value> toV8NoInline(TestInterfaceImplementation* impl, v8::Handle
<v8::Object> creationContext, v8::Isolate* isolate) | 2083 v8::Handle<v8::Value> toV8NoInline(TestInterfaceImplementation* impl, v8::Handle
<v8::Object> creationContext, v8::Isolate* isolate) |
2090 { | 2084 { |
2091 return toV8(impl, creationContext, isolate); | 2085 return toV8(impl, creationContext, isolate); |
2092 } | 2086 } |
2093 | 2087 |
2094 bool V8TestInterface::PrivateScript::shortMethodWithShortArgumentImplementedInPr
ivateScriptMethod(LocalFrame* frame, TestInterface* holderImpl, int value, int*
result) | 2088 bool V8TestInterface::PrivateScript::shortMethodWithShortArgumentImplementedInPr
ivateScriptMethod(LocalFrame* frame, TestInterface* holderImpl, int value, int*
result) |
2095 { | 2089 { |
2096 if (!frame) | 2090 if (!frame) |
2097 return false; | 2091 return false; |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2163 | 2157 |
2164 ScriptState::Scope scope(scriptState); | 2158 ScriptState::Scope scope(scriptState); |
2165 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob
al(), scriptState->isolate()); | 2159 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob
al(), scriptState->isolate()); |
2166 | 2160 |
2167 ExceptionState exceptionState(ExceptionState::SetterContext, "stringAttribut
e", "TestInterfaceImplementation", scriptState->context()->Global(), scriptState
->isolate()); | 2161 ExceptionState exceptionState(ExceptionState::SetterContext, "stringAttribut
e", "TestInterfaceImplementation", scriptState->context()->Global(), scriptState
->isolate()); |
2168 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestInterfaceImplementation", "stringAttribute", holder, v8String(s
criptState->isolate(), cppValue)); | 2162 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestInterfaceImplementation", "stringAttribute", holder, v8String(s
criptState->isolate(), cppValue)); |
2169 } | 2163 } |
2170 | 2164 |
2171 } // namespace blink | 2165 } // namespace blink |
2172 #endif // ENABLE(CONDITION) | 2166 #endif // ENABLE(CONDITION) |
OLD | NEW |