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 "V8TestObject.h" | 7 #include "V8TestObject.h" |
8 | 8 |
9 #include "bindings/core/v8/BindingSecurity.h" | 9 #include "bindings/core/v8/BindingSecurity.h" |
10 #include "bindings/core/v8/Dictionary.h" | 10 #include "bindings/core/v8/Dictionary.h" |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 #include "wtf/RefPtr.h" | 76 #include "wtf/RefPtr.h" |
77 | 77 |
78 namespace blink { | 78 namespace blink { |
79 | 79 |
80 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv
ial | 80 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv
ial |
81 // and does not depend on another global objects. | 81 // and does not depend on another global objects. |
82 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) | 82 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) |
83 #pragma clang diagnostic push | 83 #pragma clang diagnostic push |
84 #pragma clang diagnostic ignored "-Wglobal-constructors" | 84 #pragma clang diagnostic ignored "-Wglobal-constructors" |
85 #endif | 85 #endif |
86 const WrapperTypeInfo V8TestObject::wrapperTypeInfo = { gin::kEmbedderBlink, V8T
estObject::domTemplate, V8TestObject::refObject, V8TestObject::derefObject, V8Te
stObject::trace, 0, V8TestObject::preparePrototypeAndInterfaceObject, V8TestObje
ct::installConditionallyEnabledProperties, "TestObject", 0, WrapperTypeInfo::Wra
pperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::NotInh
eritFromEventTarget, WrapperTypeInfo::Independent, WrapperTypeInfo::RefCountedOb
ject }; | 86 const WrapperTypeInfo V8TestObject::wrapperTypeInfo = { gin::kEmbedderBlink, V8T
estObject::domTemplate, V8TestObject::refObject, V8TestObject::derefObject, V8Te
stObject::trace, 0, 0, V8TestObject::preparePrototypeAndInterfaceObject, V8TestO
bject::installConditionallyEnabledProperties, "TestObject", 0, WrapperTypeInfo::
WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::Not
InheritFromEventTarget, WrapperTypeInfo::Independent, WrapperTypeInfo::RefCounte
dObject }; |
87 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) | 87 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) |
88 #pragma clang diagnostic pop | 88 #pragma clang diagnostic pop |
89 #endif | 89 #endif |
90 | 90 |
91 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestObject.h
. | 91 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestObject.h
. |
92 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in | 92 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in |
93 // bindings/core/v8/ScriptWrappable.h. | 93 // bindings/core/v8/ScriptWrappable.h. |
94 const WrapperTypeInfo& TestObject::s_wrapperTypeInfo = V8TestObject::wrapperType
Info; | 94 const WrapperTypeInfo& TestObject::s_wrapperTypeInfo = V8TestObject::wrapperType
Info; |
95 | 95 |
96 namespace TestObjectV8Internal { | 96 namespace TestObjectV8Internal { |
(...skipping 12567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12664 ScriptState::Scope scope(scriptState); | 12664 ScriptState::Scope scope(scriptState); |
12665 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 12665 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
12666 if (holder.IsEmpty()) | 12666 if (holder.IsEmpty()) |
12667 return false; | 12667 return false; |
12668 | 12668 |
12669 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; | 12669 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; |
12670 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); | 12670 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); |
12671 } | 12671 } |
12672 | 12672 |
12673 } // namespace blink | 12673 } // namespace blink |
OLD | NEW |