Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(613)

Side by Side Diff: Source/bindings/tests/results/core/TestInterfaceWillBeGarbageCollectedOrTestDictionary.h

Issue 953123003: IDL: Put generated union type containers in separate files (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6
7 #ifndef TestInterfaceWillBeGarbageCollectedOrTestDictionary_h
8 #define TestInterfaceWillBeGarbageCollectedOrTestDictionary_h
9
10 #include "bindings/core/v8/Dictionary.h"
11 #include "bindings/core/v8/ExceptionState.h"
12 #include "bindings/core/v8/UnionTypesCore.h"
13 #include "bindings/core/v8/V8Binding.h"
14 #include "bindings/core/v8/V8TestDictionary.h"
15 #include "bindings/core/v8/V8TestInterfaceWillBeGarbageCollected.h"
16 #include "platform/heap/Handle.h"
17
18 namespace blink {
19
20 class TestInterfaceWillBeGarbageCollectedOrTestDictionary final {
21 ALLOW_ONLY_INLINE_ALLOCATION();
22 public:
23 TestInterfaceWillBeGarbageCollectedOrTestDictionary();
24 bool isNull() const { return m_type == SpecificTypeNone; }
25
26 bool isTestInterfaceWillBeGarbageCollected() const { return m_type == Specif icTypeTestInterfaceWillBeGarbageCollected; }
27 PassRefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> getAsTestInterfa ceWillBeGarbageCollected() const;
28 void setTestInterfaceWillBeGarbageCollected(PassRefPtrWillBeRawPtr<TestInter faceWillBeGarbageCollected>);
29 static TestInterfaceWillBeGarbageCollectedOrTestDictionary fromTestInterface WillBeGarbageCollected(PassRefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollecte d>);
30
31 bool isTestDictionary() const { return m_type == SpecificTypeTestDictionary; }
32 TestDictionary getAsTestDictionary() const;
33 void setTestDictionary(TestDictionary);
34 static TestInterfaceWillBeGarbageCollectedOrTestDictionary fromTestDictionar y(TestDictionary);
35
36 DECLARE_TRACE();
37
38 private:
39 enum SpecificTypes {
40 SpecificTypeNone,
41 SpecificTypeTestInterfaceWillBeGarbageCollected,
42 SpecificTypeTestDictionary,
43 };
44 SpecificTypes m_type;
45
46 RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> m_testInterfaceWillB eGarbageCollected;
47 TestDictionary m_testDictionary;
48
49 friend v8::Local<v8::Value> toV8(const TestInterfaceWillBeGarbageCollectedOr TestDictionary&, v8::Local<v8::Object>, v8::Isolate*);
50 };
51
52 class V8TestInterfaceWillBeGarbageCollectedOrTestDictionary final {
53 public:
54 static void toImpl(v8::Isolate*, v8::Local<v8::Value>, TestInterfaceWillBeGa rbageCollectedOrTestDictionary&, ExceptionState&);
55 };
56
57 v8::Local<v8::Value> toV8(const TestInterfaceWillBeGarbageCollectedOrTestDiction ary&, v8::Local<v8::Object>, v8::Isolate*);
58
59 template <class CallbackInfo>
60 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestInterfaceWill BeGarbageCollectedOrTestDictionary& impl)
61 {
62 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate()));
63 }
64
65 template <>
66 struct NativeValueTraits<TestInterfaceWillBeGarbageCollectedOrTestDictionary> {
67 static TestInterfaceWillBeGarbageCollectedOrTestDictionary nativeValue(const v8::Local<v8::Value>&, v8::Isolate*, ExceptionState&);
68 };
69
70 } // namespace blink
71
72 #endif // TestInterfaceWillBeGarbageCollectedOrTestDictionary_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698