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

Side by Side Diff: third_party/WebKit/Source/modules/mediasession/MediaMetadata.h

Issue 2367393002: Migrating MediaSession messages to mojo (Closed)
Patch Set: fixed layout tests 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MediaMetadata_h 5 #ifndef MediaMetadata_h
6 #define MediaMetadata_h 6 #define MediaMetadata_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "modules/ModulesExport.h" 9 #include "modules/ModulesExport.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
11 #include "public/platform/modules/mediasession/WebMediaMetadata.h"
12 #include "wtf/text/WTFString.h" 11 #include "wtf/text/WTFString.h"
13 12
14 namespace blink { 13 namespace blink {
15 14
16 class ExecutionContext; 15 class ExecutionContext;
17 class MediaArtwork; 16 class MediaArtwork;
18 class MediaMetadataInit; 17 class MediaMetadataInit;
19 18
20 // Implementation of MediaMetadata interface from the Media Session API. 19 // Implementation of MediaMetadata interface from the Media Session API.
21 class MODULES_EXPORT MediaMetadata final 20 class MODULES_EXPORT MediaMetadata final
22 : public GarbageCollectedFinalized<MediaMetadata>, 21 : public GarbageCollectedFinalized<MediaMetadata>,
23 public ScriptWrappable { 22 public ScriptWrappable {
24 DEFINE_WRAPPERTYPEINFO(); 23 DEFINE_WRAPPERTYPEINFO();
25 24
26 public: 25 public:
27 static MediaMetadata* create(ExecutionContext*, const MediaMetadataInit&); 26 static MediaMetadata* create(ExecutionContext*, const MediaMetadataInit&);
28 27
29 String title() const; 28 String title() const;
30 String artist() const; 29 String artist() const;
31 String album() const; 30 String album() const;
32 const HeapVector<Member<MediaArtwork>>& artwork() const; 31 const HeapVector<Member<MediaArtwork>>& artwork() const;
33 32
34 explicit operator WebMediaMetadata() const;
35
36 DECLARE_VIRTUAL_TRACE(); 33 DECLARE_VIRTUAL_TRACE();
37 34
38 private: 35 private:
39 MediaMetadata(ExecutionContext*, const MediaMetadataInit&); 36 MediaMetadata(ExecutionContext*, const MediaMetadataInit&);
40 37
41 String m_title; 38 String m_title;
42 String m_artist; 39 String m_artist;
43 String m_album; 40 String m_album;
44 HeapVector<Member<MediaArtwork>> m_artwork; 41 HeapVector<Member<MediaArtwork>> m_artwork;
45 }; 42 };
46 43
47 } // namespace blink 44 } // namespace blink
48 45
49 #endif // MediaMetadata_h 46 #endif // MediaMetadata_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698