Chromium Code Reviews| 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 | |
|
mlamouri (slow - plz ping)
2016/09/29 10:26:40
style: one line too many?
Zhiqiang Zhang (Slow)
2016/09/30 19:56:15
Done.
| |
| 30 #endif // CONTENT_COMMON_MEDIA_MEDIA_SESSION_SERVICE_STRUCT_TRAITS_H_ | |
| OLD | NEW |