| 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 #include "content/renderer/java/gin_java_bridge_value_converter.h" | 5 #include "content/renderer/java/gin_java_bridge_value_converter.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
| 7 #include <cmath> | 10 #include <cmath> |
| 8 | 11 |
| 12 #include "base/macros.h" |
| 9 #include "base/values.h" | 13 #include "base/values.h" |
| 10 #include "content/common/android/gin_java_bridge_value.h" | 14 #include "content/common/android/gin_java_bridge_value.h" |
| 11 #include "content/renderer/java/gin_java_bridge_object.h" | 15 #include "content/renderer/java/gin_java_bridge_object.h" |
| 12 #include "gin/array_buffer.h" | 16 #include "gin/array_buffer.h" |
| 13 | 17 |
| 14 namespace content { | 18 namespace content { |
| 15 | 19 |
| 16 GinJavaBridgeValueConverter::GinJavaBridgeValueConverter() | 20 GinJavaBridgeValueConverter::GinJavaBridgeValueConverter() |
| 17 : converter_(V8ValueConverter::create()) { | 21 : converter_(V8ValueConverter::create()) { |
| 18 converter_->SetDateAllowed(false); | 22 converter_->SetDateAllowed(false); |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 *out = GinJavaBridgeValue::CreateNonFiniteValue(double_value).release(); | 158 *out = GinJavaBridgeValue::CreateNonFiniteValue(double_value).release(); |
| 155 return true; | 159 return true; |
| 156 } | 160 } |
| 157 | 161 |
| 158 bool GinJavaBridgeValueConverter::FromV8Undefined(base::Value** out) const { | 162 bool GinJavaBridgeValueConverter::FromV8Undefined(base::Value** out) const { |
| 159 *out = GinJavaBridgeValue::CreateUndefinedValue().release(); | 163 *out = GinJavaBridgeValue::CreateUndefinedValue().release(); |
| 160 return true; | 164 return true; |
| 161 } | 165 } |
| 162 | 166 |
| 163 } // namespace content | 167 } // namespace content |
| OLD | NEW |