| 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 "V8TestInterfaceConstructor.h" | 8 #include "V8TestInterfaceConstructor.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/Dictionary.h" | 10 #include "bindings/core/v8/Dictionary.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 void webCoreInitializeScriptWrappableForInterface(blink::TestInterfaceConstructo
r* object) | 34 void webCoreInitializeScriptWrappableForInterface(blink::TestInterfaceConstructo
r* object) |
| 35 { | 35 { |
| 36 blink::initializeScriptWrappableForInterface(object); | 36 blink::initializeScriptWrappableForInterface(object); |
| 37 } | 37 } |
| 38 | 38 |
| 39 namespace blink { | 39 namespace blink { |
| 40 | 40 |
| 41 const WrapperTypeInfo V8TestInterfaceConstructor::wrapperTypeInfo = { gin::kEmbe
dderBlink, V8TestInterfaceConstructor::domTemplate, V8TestInterfaceConstructor::
refObject, V8TestInterfaceConstructor::derefObject, V8TestInterfaceConstructor::
createPersistentHandle, 0, 0, 0, V8TestInterfaceConstructor::installConditionall
yEnabledMethods, V8TestInterfaceConstructor::installConditionallyEnabledProperti
es, 0, WrapperTypeObjectPrototype, RefCountedObject }; | 41 const WrapperTypeInfo V8TestInterfaceConstructor::wrapperTypeInfo = { gin::kEmbe
dderBlink, V8TestInterfaceConstructor::domTemplate, V8TestInterfaceConstructor::
refObject, V8TestInterfaceConstructor::derefObject, V8TestInterfaceConstructor::
createPersistentHandle, 0, 0, 0, V8TestInterfaceConstructor::installConditionall
yEnabledMethods, V8TestInterfaceConstructor::installConditionallyEnabledProperti
es, 0, WrapperTypeObjectPrototype, RefCountedObject }; |
| 42 | 42 |
| 43 // The definition of TestInterfaceConstructor's WrapperTypeInfo. If TestInterfac
eConstructor inherits |
| 44 // from ScriptWrappable, you have to write DEFINE_WRAPPERTYPEINFO macro in the |
| 45 // class definition. Otherwise, you have to write NotScriptWrappable in the IDL |
| 46 // file as an extended attribute in order to let IDL compiler know that |
| 47 // TestInterfaceConstructor doesn't inherit from ScriptWrappable. Note that |
| 48 // NotScriptWrappable is inheritable. |
| 49 const WrapperTypeInfo& TestInterfaceConstructor::s_wrapperTypeInfo = V8TestInter
faceConstructor::wrapperTypeInfo; |
| 50 |
| 43 namespace TestInterfaceConstructorV8Internal { | 51 namespace TestInterfaceConstructorV8Internal { |
| 44 | 52 |
| 45 template <typename T> void V8_USE(T) { } | 53 template <typename T> void V8_USE(T) { } |
| 46 | 54 |
| 47 static void constructor1(const v8::FunctionCallbackInfo<v8::Value>& info) | 55 static void constructor1(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 48 { | 56 { |
| 49 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte
rfaceConstructor", info.Holder(), info.GetIsolate()); | 57 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte
rfaceConstructor", info.Holder(), info.GetIsolate()); |
| 50 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); | 58 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); |
| 51 Document& document = *toDocument(currentExecutionContext(info.GetIsolate()))
; | 59 Document& document = *toDocument(currentExecutionContext(info.GetIsolate()))
; |
| 52 RefPtr<TestInterfaceConstructor> impl = TestInterfaceConstructor::create(exe
cutionContext, document, exceptionState); | 60 RefPtr<TestInterfaceConstructor> impl = TestInterfaceConstructor::create(exe
cutionContext, document, exceptionState); |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 return 0; | 396 return 0; |
| 389 } | 397 } |
| 390 | 398 |
| 391 template<> | 399 template<> |
| 392 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor* impl, v8::Handle<v8
::Object> creationContext, v8::Isolate* isolate) | 400 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor* impl, v8::Handle<v8
::Object> creationContext, v8::Isolate* isolate) |
| 393 { | 401 { |
| 394 return toV8(impl, creationContext, isolate); | 402 return toV8(impl, creationContext, isolate); |
| 395 } | 403 } |
| 396 | 404 |
| 397 } // namespace blink | 405 } // namespace blink |
| OLD | NEW |