| OLD | NEW |
| 1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2017 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 #ifndef NativeValueTraitsImpl_h | 5 #ifndef NativeValueTraitsImpl_h |
| 6 #define NativeValueTraitsImpl_h | 6 #define NativeValueTraitsImpl_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/IDLTypes.h" | 8 #include "bindings/core/v8/IDLTypes.h" |
| 9 #include "bindings/core/v8/NativeValueTraits.h" | 9 #include "bindings/core/v8/NativeValueTraits.h" |
| 10 #include "bindings/core/v8/V8Binding.h" | 10 #include "bindings/core/v8/V8Binding.h" |
| 11 #include "core/CoreExport.h" | 11 #include "core/CoreExport.h" |
| 12 #include "wtf/text/WTFString.h" | 12 #include "platform/wtf/text/WTFString.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 // Boolean | 16 // Boolean |
| 17 template <> | 17 template <> |
| 18 struct CORE_EXPORT NativeValueTraits<IDLBoolean> | 18 struct CORE_EXPORT NativeValueTraits<IDLBoolean> |
| 19 : public NativeValueTraitsBase<IDLBoolean> { | 19 : public NativeValueTraitsBase<IDLBoolean> { |
| 20 static bool nativeValue(v8::Isolate* isolate, | 20 static bool nativeValue(v8::Isolate* isolate, |
| 21 v8::Local<v8::Value> value, | 21 v8::Local<v8::Value> value, |
| 22 ExceptionState& exceptionState) { | 22 ExceptionState& exceptionState) { |
| (...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 } | 418 } |
| 419 } | 419 } |
| 420 // "5. Return result." | 420 // "5. Return result." |
| 421 return result; | 421 return result; |
| 422 } | 422 } |
| 423 }; | 423 }; |
| 424 | 424 |
| 425 } // namespace blink | 425 } // namespace blink |
| 426 | 426 |
| 427 #endif // NativeValueTraitsImpl_h | 427 #endif // NativeValueTraitsImpl_h |
| OLD | NEW |