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 "V8TestInterfaceNamedConstructor2.h" | 12 #include "V8TestInterfaceNamedConstructor2.h" |
13 | 13 |
14 #include "bindings/core/v8/ExceptionState.h" | 14 #include "bindings/core/v8/ExceptionState.h" |
15 #include "bindings/core/v8/IDLTypes.h" | 15 #include "bindings/core/v8/IDLTypes.h" |
16 #include "bindings/core/v8/NativeValueTraitsImpl.h" | 16 #include "bindings/core/v8/NativeValueTraitsImpl.h" |
17 #include "bindings/core/v8/V8DOMConfiguration.h" | 17 #include "bindings/core/v8/V8DOMConfiguration.h" |
18 #include "bindings/core/v8/V8PrivateProperty.h" | |
19 #include "core/dom/ExecutionContext.h" | 18 #include "core/dom/ExecutionContext.h" |
20 #include "core/frame/LocalDOMWindow.h" | 19 #include "core/frame/LocalDOMWindow.h" |
21 #include "platform/bindings/V8ObjectConstructor.h" | 20 #include "platform/bindings/V8ObjectConstructor.h" |
| 21 #include "platform/bindings/V8PrivateProperty.h" |
22 #include "platform/wtf/GetPtr.h" | 22 #include "platform/wtf/GetPtr.h" |
23 #include "platform/wtf/RefPtr.h" | 23 #include "platform/wtf/RefPtr.h" |
24 | 24 |
25 namespace blink { | 25 namespace blink { |
26 | 26 |
27 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv
ial | 27 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv
ial |
28 // and does not depend on another global objects. | 28 // and does not depend on another global objects. |
29 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) | 29 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) |
30 #pragma clang diagnostic push | 30 #pragma clang diagnostic push |
31 #pragma clang diagnostic ignored "-Wglobal-constructors" | 31 #pragma clang diagnostic ignored "-Wglobal-constructors" |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 TestInterfaceNamedConstructor2* NativeValueTraits<TestInterfaceNamedConstructor2
>::NativeValue(v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionState&
exceptionState) { | 173 TestInterfaceNamedConstructor2* NativeValueTraits<TestInterfaceNamedConstructor2
>::NativeValue(v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionState&
exceptionState) { |
174 TestInterfaceNamedConstructor2* nativeValue = V8TestInterfaceNamedConstructor2
::toImplWithTypeCheck(isolate, value); | 174 TestInterfaceNamedConstructor2* nativeValue = V8TestInterfaceNamedConstructor2
::toImplWithTypeCheck(isolate, value); |
175 if (!nativeValue) { | 175 if (!nativeValue) { |
176 exceptionState.ThrowTypeError(ExceptionMessages::FailedToConvertJSValue( | 176 exceptionState.ThrowTypeError(ExceptionMessages::FailedToConvertJSValue( |
177 "TestInterfaceNamedConstructor2")); | 177 "TestInterfaceNamedConstructor2")); |
178 } | 178 } |
179 return nativeValue; | 179 return nativeValue; |
180 } | 180 } |
181 | 181 |
182 } // namespace blink | 182 } // namespace blink |
OLD | NEW |