Chromium Code Reviews| Index: content/common/media/media_session_service_struct_traits.h |
| diff --git a/content/common/media/media_session_service_struct_traits.h b/content/common/media/media_session_service_struct_traits.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..0bdf0137c8b66eae59e47be14472d8d3559046e2 |
| --- /dev/null |
| +++ b/content/common/media/media_session_service_struct_traits.h |
| @@ -0,0 +1,29 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_COMMON_MEDIA_MEDIA_SESSION_SERVICE_STRUCT_TRAITS_H_ |
| +#define CONTENT_COMMON_MEDIA_MEDIA_SESSION_SERVICE_STRUCT_TRAITS_H_ |
| + |
| +#include "third_party/WebKit/public/platform/modules/mediasession/media_session.mojom.h" |
| + |
| +namespace mojo { |
| + |
| +template <> |
| +struct StructTraits<blink::mojom::MediaMetadataIcon, |
| + content::MediaMetadata::Artwork> { |
| + static url::mojom::Url& src(const content::MediaMetadata::Artwork& artwork) { |
| + return artwork.src; |
| + } |
| + |
| + static mojo::common::mojom::NullableString16& type( |
| + const content::MediaMetadata::Artwork& artwork) { |
| + return artwork.type; |
| + } |
| + |
| + static mojo:: |
|
xhwang
2016/09/30 23:24:58
hmm, is the complete? Is this file used anywhere?
Zhiqiang Zhang (Slow)
2016/10/03 14:31:13
Fixed the typemap now.
|
| +} |
| + |
| +} // namespace mojo |
| + |
| +#endif // CONTENT_COMMON_MEDIA_MEDIA_SESSION_SERVICE_STRUCT_TRAITS_H_ |