| Index: third_party/WebKit/Source/platform/mojo/CommonCustomTypesStructTraits.h
|
| diff --git a/third_party/WebKit/Source/platform/mojo/CommonCustomTypesStructTraits.h b/third_party/WebKit/Source/platform/mojo/CommonCustomTypesStructTraits.h
|
| index 40595811d9769a9f7fdece63cdba4895cf9ff7cf..051f02e8eb0a33ad31f05c467b64aa6efed4b6ea 100644
|
| --- a/third_party/WebKit/Source/platform/mojo/CommonCustomTypesStructTraits.h
|
| +++ b/third_party/WebKit/Source/platform/mojo/CommonCustomTypesStructTraits.h
|
| @@ -26,6 +26,16 @@ struct PLATFORM_EXPORT
|
| static bool Read(common::mojom::String16DataView, WTF::String* out);
|
| };
|
|
|
| +template <>
|
| +struct PLATFORM_EXPORT StructTraits<common::mojom::TimeDataView, double> {
|
| + static double seconds(double time) { return time; }
|
| +
|
| + static bool Read(common::mojom::TimeDataView data, double* time) {
|
| + *time = data.seconds();
|
| + return true;
|
| + }
|
| +};
|
| +
|
| } // namespace mojo
|
|
|
| #endif // CommonCustomTypesStructTraits_h
|
|
|