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

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

Issue 2612003002: Media Session: use dictionary instead of an interface for MediaImage. (Closed)
Patch Set: rebase Created 3 years, 11 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 MediaImage_h
6 #define MediaImage_h
7
8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "modules/ModulesExport.h"
10 #include "platform/heap/Handle.h"
11 #include "wtf/text/WTFString.h"
12
13 namespace blink {
14
15 class ExecutionContext;
16 class MediaImageInit;
17
18 class MODULES_EXPORT MediaImage final
19 : public GarbageCollectedFinalized<MediaImage>,
20 public ScriptWrappable {
21 DEFINE_WRAPPERTYPEINFO();
22
23 public:
24 static MediaImage* create(ExecutionContext*, const MediaImageInit&);
25
26 String src() const;
27 String sizes() const;
28 String type() const;
29
30 DEFINE_INLINE_TRACE() {}
31
32 private:
33 MediaImage(ExecutionContext*, const MediaImageInit&);
34
35 String m_src;
36 String m_sizes;
37 String m_type;
38 };
39
40 } // namespace blink
41
42 #endif // MediaImage_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/mediasession/BUILD.gn ('k') | third_party/WebKit/Source/modules/mediasession/MediaImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698