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/union_container.h.tmpl | 9 // third_party/WebKit/Source/bindings/templates/union_container.h.tmpl |
10 | 10 |
11 // clang-format off | 11 // clang-format off |
12 #ifndef LongOrTestDictionary_h | 12 #ifndef LongOrTestDictionary_h |
13 #define LongOrTestDictionary_h | 13 #define LongOrTestDictionary_h |
14 | 14 |
15 #include "bindings/core/v8/Dictionary.h" | 15 #include "bindings/core/v8/Dictionary.h" |
16 #include "bindings/core/v8/ExceptionState.h" | 16 #include "bindings/core/v8/ExceptionState.h" |
| 17 #include "bindings/core/v8/NativeValueTraits.h" |
17 #include "bindings/core/v8/V8Binding.h" | 18 #include "bindings/core/v8/V8Binding.h" |
18 #include "bindings/core/v8/V8TestDictionary.h" | 19 #include "bindings/core/v8/V8TestDictionary.h" |
19 #include "core/CoreExport.h" | 20 #include "core/CoreExport.h" |
20 #include "platform/heap/Handle.h" | 21 #include "platform/heap/Handle.h" |
21 | 22 |
22 namespace blink { | 23 namespace blink { |
23 | 24 |
24 class CORE_EXPORT LongOrTestDictionary final { | 25 class CORE_EXPORT LongOrTestDictionary final { |
25 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); | 26 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
26 public: | 27 public: |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 v8SetReturnValue(callbackInfo, ToV8(impl, callbackInfo.Holder(), callbackInfo.
GetIsolate())); | 69 v8SetReturnValue(callbackInfo, ToV8(impl, callbackInfo.Holder(), callbackInfo.
GetIsolate())); |
69 } | 70 } |
70 | 71 |
71 template <class CallbackInfo> | 72 template <class CallbackInfo> |
72 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, LongOrTestDiction
ary& impl, v8::Local<v8::Object> creationContext) { | 73 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, LongOrTestDiction
ary& impl, v8::Local<v8::Object> creationContext) { |
73 v8SetReturnValue(callbackInfo, ToV8(impl, creationContext, callbackInfo.GetIso
late())); | 74 v8SetReturnValue(callbackInfo, ToV8(impl, creationContext, callbackInfo.GetIso
late())); |
74 } | 75 } |
75 | 76 |
76 template <> | 77 template <> |
77 struct NativeValueTraits<LongOrTestDictionary> { | 78 struct NativeValueTraits<LongOrTestDictionary> { |
| 79 using ImplType = LongOrTestDictionary; |
78 CORE_EXPORT static LongOrTestDictionary nativeValue(v8::Isolate*, v8::Local<v8
::Value>, ExceptionState&); | 80 CORE_EXPORT static LongOrTestDictionary nativeValue(v8::Isolate*, v8::Local<v8
::Value>, ExceptionState&); |
79 }; | 81 }; |
80 | 82 |
| 83 template <> |
| 84 struct V8TypeOf<LongOrTestDictionary> { |
| 85 typedef V8LongOrTestDictionary Type; |
| 86 }; |
| 87 |
81 } // namespace blink | 88 } // namespace blink |
82 | 89 |
83 // We need to set canInitializeWithMemset=true because HeapVector supports | 90 // We need to set canInitializeWithMemset=true because HeapVector supports |
84 // items that can initialize with memset or have a vtable. It is safe to | 91 // items that can initialize with memset or have a vtable. It is safe to |
85 // set canInitializeWithMemset=true for a union type object in practice. | 92 // set canInitializeWithMemset=true for a union type object in practice. |
86 // See https://codereview.chromium.org/1118993002/#msg5 for more details. | 93 // See https://codereview.chromium.org/1118993002/#msg5 for more details. |
87 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::LongOrTestDictionary); | 94 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::LongOrTestDictionary); |
88 | 95 |
89 #endif // LongOrTestDictionary_h | 96 #endif // LongOrTestDictionary_h |
OLD | NEW |