| 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. | 5 // This file has been auto-generated by code_generator_v8.py. |
| 6 // DO NOT MODIFY! | 6 // DO NOT MODIFY! |
| 7 | 7 |
| 8 // This file has been generated from the Jinja2 template in | 8 // This file has been generated from the Jinja2 template in |
| 9 // third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl | 9 // third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl |
| 10 | 10 |
| 11 // clang-format off | 11 // clang-format off |
| 12 #include "V8TestInterfaceConstructor.h" | 12 #include "V8TestInterfaceConstructor.h" |
| 13 | 13 |
| 14 #include "bindings/core/v8/Dictionary.h" | 14 #include "bindings/core/v8/Dictionary.h" |
| 15 #include "bindings/core/v8/ExceptionState.h" | 15 #include "bindings/core/v8/ExceptionState.h" |
| 16 #include "bindings/core/v8/IDLTypes.h" | 16 #include "bindings/core/v8/IDLTypes.h" |
| 17 #include "bindings/core/v8/NativeValueTraitsImpl.h" | 17 #include "bindings/core/v8/NativeValueTraitsImpl.h" |
| 18 #include "bindings/core/v8/V8DOMConfiguration.h" | 18 #include "bindings/core/v8/V8DOMConfiguration.h" |
| 19 #include "bindings/core/v8/V8PrivateProperty.h" | |
| 20 #include "bindings/core/v8/V8TestDictionary.h" | 19 #include "bindings/core/v8/V8TestDictionary.h" |
| 21 #include "bindings/core/v8/V8TestInterfaceEmpty.h" | 20 #include "bindings/core/v8/V8TestInterfaceEmpty.h" |
| 22 #include "core/dom/Document.h" | 21 #include "core/dom/Document.h" |
| 23 #include "core/dom/ExecutionContext.h" | 22 #include "core/dom/ExecutionContext.h" |
| 24 #include "core/frame/LocalDOMWindow.h" | 23 #include "core/frame/LocalDOMWindow.h" |
| 25 #include "core/frame/UseCounter.h" | 24 #include "core/frame/UseCounter.h" |
| 26 #include "platform/bindings/V8ObjectConstructor.h" | 25 #include "platform/bindings/V8ObjectConstructor.h" |
| 26 #include "platform/bindings/V8PrivateProperty.h" |
| 27 #include "platform/wtf/GetPtr.h" | 27 #include "platform/wtf/GetPtr.h" |
| 28 #include "platform/wtf/RefPtr.h" | 28 #include "platform/wtf/RefPtr.h" |
| 29 | 29 |
| 30 namespace blink { | 30 namespace blink { |
| 31 | 31 |
| 32 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv
ial | 32 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv
ial |
| 33 // and does not depend on another global objects. | 33 // and does not depend on another global objects. |
| 34 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) | 34 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) |
| 35 #pragma clang diagnostic push | 35 #pragma clang diagnostic push |
| 36 #pragma clang diagnostic ignored "-Wglobal-constructors" | 36 #pragma clang diagnostic ignored "-Wglobal-constructors" |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 TestInterfaceConstructor* NativeValueTraits<TestInterfaceConstructor>::NativeVal
ue(v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionSt
ate) { | 446 TestInterfaceConstructor* NativeValueTraits<TestInterfaceConstructor>::NativeVal
ue(v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionSt
ate) { |
| 447 TestInterfaceConstructor* nativeValue = V8TestInterfaceConstructor::toImplWith
TypeCheck(isolate, value); | 447 TestInterfaceConstructor* nativeValue = V8TestInterfaceConstructor::toImplWith
TypeCheck(isolate, value); |
| 448 if (!nativeValue) { | 448 if (!nativeValue) { |
| 449 exceptionState.ThrowTypeError(ExceptionMessages::FailedToConvertJSValue( | 449 exceptionState.ThrowTypeError(ExceptionMessages::FailedToConvertJSValue( |
| 450 "TestInterfaceConstructor")); | 450 "TestInterfaceConstructor")); |
| 451 } | 451 } |
| 452 return nativeValue; | 452 return nativeValue; |
| 453 } | 453 } |
| 454 | 454 |
| 455 } // namespace blink | 455 } // namespace blink |
| OLD | NEW |