OLD | NEW |
(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 MediaArtwork_h |
| 6 #define MediaArtwork_h |
| 7 |
| 8 #include "bindings/core/v8/ScriptWrappable.h" |
| 9 #include "modules/ModulesExport.h" |
| 10 #include "platform/heap/Handle.h" |
| 11 #include "public/platform/modules/mediasession/WebMediaArtwork.h" |
| 12 |
| 13 namespace blink { |
| 14 |
| 15 class ExecutionContext; |
| 16 class MediaArtworkInit; |
| 17 |
| 18 class MODULES_EXPORT MediaArtwork final |
| 19 : public GarbageCollectedFinalized<MediaArtwork> |
| 20 , public ScriptWrappable { |
| 21 DEFINE_WRAPPERTYPEINFO(); |
| 22 public: |
| 23 static MediaArtwork* create(ExecutionContext*, const MediaArtworkInit&); |
| 24 |
| 25 String src() const; |
| 26 String sizes() const; |
| 27 String type() const; |
| 28 |
| 29 WebMediaArtwork* data() { return &m_data; } |
| 30 |
| 31 DEFINE_INLINE_TRACE() { } |
| 32 |
| 33 private: |
| 34 MediaArtwork(ExecutionContext*, const MediaArtworkInit&); |
| 35 |
| 36 WebMediaArtwork m_data; |
| 37 }; |
| 38 |
| 39 } |
| 40 |
| 41 #endif // MediaArtwork_h |
OLD | NEW |