OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_COMMON_MEDIA_MEDIA_SESSION_SERVICE_STRUCT_TRAITS_H_ |
| 6 #define CONTENT_COMMON_MEDIA_MEDIA_SESSION_SERVICE_STRUCT_TRAITS_H_ |
| 7 |
| 8 #include "third_party/WebKit/public/platform/modules/mediasession/media_session.
mojom.h" |
| 9 |
| 10 namespace mojo { |
| 11 |
| 12 template <> |
| 13 struct StructTraits<blink::mojom::MediaMetadataIcon, |
| 14 content::MediaMetadata::Artwork> { |
| 15 static url::mojom::Url& src(const content::MediaMetadata::Artwork& artwork) { |
| 16 return artwork.src; |
| 17 } |
| 18 |
| 19 static mojo::common::mojom::NullableString16& type( |
| 20 const content::MediaMetadata::Artwork& artwork) { |
| 21 return artwork.type; |
| 22 } |
| 23 |
| 24 static mojo:: |
| 25 } |
| 26 |
| 27 } // namespace mojo |
| 28 |
| 29 |
| 30 #endif // CONTENT_COMMON_MEDIA_MEDIA_SESSION_SERVICE_STRUCT_TRAITS_H_ |
OLD | NEW |