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

Side by Side Diff: Source/bindings/tests/results/modules/BooleanOrString.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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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 #ifndef UnionTypeModules_h 7 #ifndef BooleanOrString_h
8 #define UnionTypeModules_h 8 #define BooleanOrString_h
9 9
10 #include "bindings/core/v8/Dictionary.h" 10 #include "bindings/core/v8/Dictionary.h"
11 #include "bindings/core/v8/ExceptionState.h" 11 #include "bindings/core/v8/ExceptionState.h"
12 #include "bindings/core/v8/UnionTypesCore.h"
13 #include "bindings/core/v8/V8Binding.h" 12 #include "bindings/core/v8/V8Binding.h"
14 #include "platform/heap/Handle.h" 13 #include "platform/heap/Handle.h"
15 14
16 namespace blink { 15 namespace blink {
17 16
18
19 class BooleanOrString final { 17 class BooleanOrString final {
20 ALLOW_ONLY_INLINE_ALLOCATION(); 18 ALLOW_ONLY_INLINE_ALLOCATION();
21 public: 19 public:
22 BooleanOrString(); 20 BooleanOrString();
23 bool isNull() const { return m_type == SpecificTypeNone; } 21 bool isNull() const { return m_type == SpecificTypeNone; }
24 22
25 bool isBoolean() const { return m_type == SpecificTypeBoolean; } 23 bool isBoolean() const { return m_type == SpecificTypeBoolean; }
26 bool getAsBoolean() const; 24 bool getAsBoolean() const;
27 void setBoolean(bool); 25 void setBoolean(bool);
28 static BooleanOrString fromBoolean(bool); 26 static BooleanOrString fromBoolean(bool);
(...skipping 30 matching lines...) Expand all
59 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate())); 57 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate()));
60 } 58 }
61 59
62 template <> 60 template <>
63 struct NativeValueTraits<BooleanOrString> { 61 struct NativeValueTraits<BooleanOrString> {
64 static BooleanOrString nativeValue(const v8::Local<v8::Value>&, v8::Isolate* , ExceptionState&); 62 static BooleanOrString nativeValue(const v8::Local<v8::Value>&, v8::Isolate* , ExceptionState&);
65 }; 63 };
66 64
67 } // namespace blink 65 } // namespace blink
68 66
69 #endif // UnionTypeModules_h 67 #endif // BooleanOrString_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698