Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(221)

Side by Side Diff: content/common/media/media_session_service_struct_traits.h

Issue 2367393002: Migrating MediaSession messages to mojo (Closed)
Patch Set: better type mapping (experimental, should move to a separate CL) Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698