| 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 |
| 9 // third_party/WebKit/Source/bindings/templates/union_container.cpp.tmpl |
| 10 |
| 8 // clang-format off | 11 // clang-format off |
| 9 #include "BooleanOrString.h" | 12 #include "BooleanOrString.h" |
| 10 | 13 |
| 11 #include "bindings/core/v8/ToV8.h" | 14 #include "bindings/core/v8/ToV8.h" |
| 12 | 15 |
| 13 namespace blink { | 16 namespace blink { |
| 14 | 17 |
| 15 BooleanOrString::BooleanOrString() : m_type(SpecificTypeNone) {} | 18 BooleanOrString::BooleanOrString() : m_type(SpecificTypeNone) {} |
| 16 | 19 |
| 17 bool BooleanOrString::getAsBoolean() const { | 20 bool BooleanOrString::getAsBoolean() const { |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 return v8::Local<v8::Value>(); | 93 return v8::Local<v8::Value>(); |
| 91 } | 94 } |
| 92 | 95 |
| 93 BooleanOrString NativeValueTraits<BooleanOrString>::nativeValue(v8::Isolate* iso
late, v8::Local<v8::Value> value, ExceptionState& exceptionState) { | 96 BooleanOrString NativeValueTraits<BooleanOrString>::nativeValue(v8::Isolate* iso
late, v8::Local<v8::Value> value, ExceptionState& exceptionState) { |
| 94 BooleanOrString impl; | 97 BooleanOrString impl; |
| 95 V8BooleanOrString::toImpl(isolate, value, impl, UnionTypeConversionMode::NotNu
llable, exceptionState); | 98 V8BooleanOrString::toImpl(isolate, value, impl, UnionTypeConversionMode::NotNu
llable, exceptionState); |
| 96 return impl; | 99 return impl; |
| 97 } | 100 } |
| 98 | 101 |
| 99 } // namespace blink | 102 } // namespace blink |
| OLD | NEW |