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

Side by Side Diff: Source/modules/mediasession/HTMLMediaElementMediaSession.h

Issue 1217743003: Add stub for assigning media session to media elements (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Re-upload Created 5 years, 5 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 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> {
17 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLMediaElementMediaSession);
18 public:
19 static MediaSession* session(HTMLMediaElement&);
20 static void setSession(HTMLMediaElement&, MediaSession*);
21
22 static HTMLMediaElementMediaSession& from(HTMLMediaElement&);
philipj_slow 2015/07/02 08:53:15 These two could possibly be private?
23 static const char* supplementName();
24
25 DECLARE_VIRTUAL_TRACE();
26
27 private:
28 PersistentWillBeMember<MediaSession> m_session;
29 };
30
31 } // namespace blink
32
33 #endif // HTMLMediaElementMediaSession_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698