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 #include "V8TestObject.h" | 8 #include "V8TestObject.h" |
9 | 9 |
10 #include "bindings/core/v8/BindingSecurity.h" | 10 #include "bindings/core/v8/BindingSecurity.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 #include "core/html/HTMLTableRowsCollection.h" | 62 #include "core/html/HTMLTableRowsCollection.h" |
63 #include "core/inspector/ScriptArguments.h" | 63 #include "core/inspector/ScriptArguments.h" |
64 #include "platform/RuntimeEnabledFeatures.h" | 64 #include "platform/RuntimeEnabledFeatures.h" |
65 #include "platform/ScriptForbiddenScope.h" | 65 #include "platform/ScriptForbiddenScope.h" |
66 #include "platform/TraceEvent.h" | 66 #include "platform/TraceEvent.h" |
67 #include "wtf/GetPtr.h" | 67 #include "wtf/GetPtr.h" |
68 #include "wtf/RefPtr.h" | 68 #include "wtf/RefPtr.h" |
69 | 69 |
70 namespace blink { | 70 namespace blink { |
71 | 71 |
72 const WrapperTypeInfo V8TestObject::wrapperTypeInfo = { gin::kEmbedderBlink, V8T
estObject::domTemplate, V8TestObject::refObject, V8TestObject::derefObject, V8Te
stObject::createPersistentHandle, 0, 0, 0, V8TestObject::installConditionallyEna
bledMethods, V8TestObject::installConditionallyEnabledProperties, 0, WrapperType
Info::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInf
o::Independent, WrapperTypeInfo::RefCountedObject }; | 72 const WrapperTypeInfo V8TestObject::wrapperTypeInfo = { gin::kEmbedderBlink, V8T
estObject::domTemplate, V8TestObject::refObject, V8TestObject::derefObject, V8Te
stObject::trace, 0, 0, 0, V8TestObject::installConditionallyEnabledMethods, V8Te
stObject::installConditionallyEnabledProperties, 0, WrapperTypeInfo::WrapperType
ObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::Independent, W
rapperTypeInfo::RefCountedObject }; |
73 | 73 |
74 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestObject.h
. | 74 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestObject.h
. |
75 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in | 75 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in |
76 // bindings/core/v8/ScriptWrappable.h. | 76 // bindings/core/v8/ScriptWrappable.h. |
77 const WrapperTypeInfo& TestObject::s_wrapperTypeInfo = V8TestObject::wrapperType
Info; | 77 const WrapperTypeInfo& TestObject::s_wrapperTypeInfo = V8TestObject::wrapperType
Info; |
78 | 78 |
79 namespace TestObjectV8Internal { | 79 namespace TestObjectV8Internal { |
80 | 80 |
81 static void DEPRECATED_CONSTANTConstantGetterCallback(v8::Local<v8::String>, con
st v8::PropertyCallbackInfo<v8::Value>& info) | 81 static void DEPRECATED_CONSTANTConstantGetterCallback(v8::Local<v8::String>, con
st v8::PropertyCallbackInfo<v8::Value>& info) |
82 { | 82 { |
(...skipping 10584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10667 void V8TestObject::refObject(ScriptWrappableBase* internalPointer) | 10667 void V8TestObject::refObject(ScriptWrappableBase* internalPointer) |
10668 { | 10668 { |
10669 internalPointer->toImpl<TestObject>()->ref(); | 10669 internalPointer->toImpl<TestObject>()->ref(); |
10670 } | 10670 } |
10671 | 10671 |
10672 void V8TestObject::derefObject(ScriptWrappableBase* internalPointer) | 10672 void V8TestObject::derefObject(ScriptWrappableBase* internalPointer) |
10673 { | 10673 { |
10674 internalPointer->toImpl<TestObject>()->deref(); | 10674 internalPointer->toImpl<TestObject>()->deref(); |
10675 } | 10675 } |
10676 | 10676 |
10677 WrapperPersistentNode* V8TestObject::createPersistentHandle(ScriptWrappableBase*
internalPointer) | |
10678 { | |
10679 ASSERT_NOT_REACHED(); | |
10680 return 0; | |
10681 } | |
10682 | |
10683 template<> | 10677 template<> |
10684 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) | 10678 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) |
10685 { | 10679 { |
10686 return toV8(impl, creationContext, isolate); | 10680 return toV8(impl, creationContext, isolate); |
10687 } | 10681 } |
10688 | 10682 |
10689 bool V8TestObject::PrivateScript::voidMethodImplementedInPrivateScriptMethod(Loc
alFrame* frame, TestObject* holderImpl) | 10683 bool V8TestObject::PrivateScript::voidMethodImplementedInPrivateScriptMethod(Loc
alFrame* frame, TestObject* holderImpl) |
10690 { | 10684 { |
10691 if (!frame) | 10685 if (!frame) |
10692 return false; | 10686 return false; |
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11151 return false; | 11145 return false; |
11152 | 11146 |
11153 ScriptState::Scope scope(scriptState); | 11147 ScriptState::Scope scope(scriptState); |
11154 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob
al(), scriptState->isolate()); | 11148 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob
al(), scriptState->isolate()); |
11155 | 11149 |
11156 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; | 11150 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; |
11157 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); | 11151 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); |
11158 } | 11152 } |
11159 | 11153 |
11160 } // namespace blink | 11154 } // namespace blink |
OLD | NEW |