OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef HTMLMediaElementMediaSession_h | |
6 #define HTMLMediaElementMediaSession_h | |
7 | |
8 #include "core/html/HTMLMediaElement.h" | |
9 #include "modules/ModulesExport.h" | |
10 #include "modules/mediasession/MediaSession.h" | |
11 #include "platform/Supplementable.h" | |
12 #include "platform/heap/Handle.h" | |
13 | |
14 namespace blink { | |
15 | |
16 class HTMLMediaElementMediaSession final : public NoBaseWillBeGarbageCollected<H TMLMediaElementMediaSession>, public WillBeHeapSupplement<HTMLMediaElement> { | |
whywhat
2015/07/02 22:04:54
nit: I think a comment for this class could be wel
davve
2015/07/03 09:29:19
I added _something_. Not sure that's what you had
| |
17 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLMediaElementMediaSession); | |
18 public: | |
19 static MediaSession* session(HTMLMediaElement&); | |
20 static void setSession(HTMLMediaElement&, MediaSession*); | |
21 | |
22 DECLARE_VIRTUAL_TRACE(); | |
23 | |
24 private: | |
25 static HTMLMediaElementMediaSession& from(HTMLMediaElement&); | |
26 static HTMLMediaElementMediaSession* fromIfExists(HTMLMediaElement&); | |
27 static const char* supplementName(); | |
28 | |
29 PersistentWillBeMember<MediaSession> m_session; | |
30 }; | |
31 | |
32 } // namespace blink | |
33 | |
34 #endif // HTMLMediaElementMediaSession_h | |
OLD | NEW |