| 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. DO NOT MODIFY! | 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
| 6 | 6 |
| 7 #include "config.h" | 7 #include "config.h" |
| 8 #include "bindings/modules/v8/UnionTypesModules.h" | 8 #include "bindings/modules/v8/UnionTypesModules.h" |
| 9 | 9 |
| 10 | 10 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 case BooleanOrString::SpecificTypeBoolean: | 83 case BooleanOrString::SpecificTypeBoolean: |
| 84 return v8Boolean(impl.getAsBoolean(), isolate); | 84 return v8Boolean(impl.getAsBoolean(), isolate); |
| 85 case BooleanOrString::SpecificTypeString: | 85 case BooleanOrString::SpecificTypeString: |
| 86 return v8String(isolate, impl.getAsString()); | 86 return v8String(isolate, impl.getAsString()); |
| 87 default: | 87 default: |
| 88 ASSERT_NOT_REACHED(); | 88 ASSERT_NOT_REACHED(); |
| 89 } | 89 } |
| 90 return v8::Local<v8::Value>(); | 90 return v8::Local<v8::Value>(); |
| 91 } | 91 } |
| 92 | 92 |
| 93 BooleanOrString NativeValueTraits<BooleanOrString>::nativeValue(const v8::Local<
v8::Value>& value, v8::Isolate* isolate, ExceptionState& exceptionState) | 93 BooleanOrString NativeValueTraits<BooleanOrString>::nativeValue(v8::Local<v8::Va
lue> value, v8::Isolate* isolate, ExceptionState& exceptionState) |
| 94 { | 94 { |
| 95 BooleanOrString impl; | 95 BooleanOrString impl; |
| 96 V8BooleanOrString::toImpl(isolate, value, impl, exceptionState); | 96 V8BooleanOrString::toImpl(isolate, value, impl, exceptionState); |
| 97 return impl; | 97 return impl; |
| 98 } | 98 } |
| 99 | 99 |
| 100 } // namespace blink | 100 } // namespace blink |
| OLD | NEW |