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

Side by Side Diff: third_party/WebKit/Source/modules/mediasession/MediaArtwork.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 2016 The Chromium Authors. All rights reserved. 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 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 MediaArtwork_h 5 #ifndef MediaArtwork_h
6 #define MediaArtwork_h 6 #define MediaArtwork_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/WebMediaArtwork.h" 11 #include "wtf/text/WTFString.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class ExecutionContext; 15 class ExecutionContext;
16 class MediaArtworkInit; 16 class MediaArtworkInit;
17 17
18 class MODULES_EXPORT MediaArtwork final 18 class MODULES_EXPORT MediaArtwork final
19 : public GarbageCollectedFinalized<MediaArtwork>, 19 : public GarbageCollectedFinalized<MediaArtwork>,
20 public ScriptWrappable { 20 public ScriptWrappable {
21 DEFINE_WRAPPERTYPEINFO(); 21 DEFINE_WRAPPERTYPEINFO();
22 22
23 public: 23 public:
24 static MediaArtwork* create(ExecutionContext*, const MediaArtworkInit&); 24 static MediaArtwork* create(ExecutionContext*, const MediaArtworkInit&);
25 25
26 String src() const; 26 String src() const;
27 String sizes() const; 27 String sizes() const;
28 String type() const; 28 String type() const;
29 29
30 WebMediaArtwork* data() { return &m_data; }
31
32 DEFINE_INLINE_TRACE() {} 30 DEFINE_INLINE_TRACE() {}
33 31
34 private: 32 private:
35 MediaArtwork(ExecutionContext*, const MediaArtworkInit&); 33 MediaArtwork(ExecutionContext*, const MediaArtworkInit&);
36 34
37 WebMediaArtwork m_data; 35 String m_src;
36 String m_sizes;
37 String m_type;
38 }; 38 };
39 } 39 }
40 40
41 #endif // MediaArtwork_h 41 #endif // MediaArtwork_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/mediasession/DEPS ('k') | third_party/WebKit/Source/modules/mediasession/MediaArtwork.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698