| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 HTMLMediaElementRemotePlayback_h | 5 #ifndef HTMLMediaElementRemotePlayback_h |
| 6 #define HTMLMediaElementRemotePlayback_h | 6 #define HTMLMediaElementRemotePlayback_h |
| 7 | 7 |
| 8 #include "modules/ModulesExport.h" | 8 #include "modules/ModulesExport.h" |
| 9 #include "platform/Supplementable.h" | 9 #include "platform/Supplementable.h" |
| 10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class HTMLMediaElement; | 14 class HTMLMediaElement; |
| 15 class QualifiedName; | 15 class QualifiedName; |
| 16 class RemotePlayback; | 16 class RemotePlayback; |
| 17 | 17 |
| 18 // Class used to implement the Remote Playback API. It is a supplement to | 18 // Class used to implement the Remote Playback API. It is a supplement to |
| 19 // HTMLMediaElement. | 19 // HTMLMediaElement. |
| 20 class HTMLMediaElementRemotePlayback final : public NoBaseWillBeGarbageCollected
<HTMLMediaElementRemotePlayback>, public WillBeHeapSupplement<HTMLMediaElement>
{ | 20 class HTMLMediaElementRemotePlayback final : public GarbageCollected<HTMLMediaEl
ementRemotePlayback>, public HeapSupplement<HTMLMediaElement> { |
| 21 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLMediaElementRemotePlayback); | 21 USING_GARBAGE_COLLECTED_MIXIN(HTMLMediaElementRemotePlayback); |
| 22 USING_FAST_MALLOC_WILL_BE_REMOVED(HTMLMediaElementRemotePlayback); | |
| 23 public: | 22 public: |
| 24 static bool fastHasAttribute(const QualifiedName&, const HTMLMediaElement&); | 23 static bool fastHasAttribute(const QualifiedName&, const HTMLMediaElement&); |
| 25 static void setBooleanAttribute(const QualifiedName&, HTMLMediaElement&, boo
l); | 24 static void setBooleanAttribute(const QualifiedName&, HTMLMediaElement&, boo
l); |
| 26 | 25 |
| 27 static HTMLMediaElementRemotePlayback& from(HTMLMediaElement&); | 26 static HTMLMediaElementRemotePlayback& from(HTMLMediaElement&); |
| 28 static RemotePlayback* remote(HTMLMediaElement&); | 27 static RemotePlayback* remote(HTMLMediaElement&); |
| 29 | 28 |
| 30 DECLARE_VIRTUAL_TRACE(); | 29 DECLARE_VIRTUAL_TRACE(); |
| 31 | 30 |
| 32 private: | 31 private: |
| 33 static const char* supplementName(); | 32 static const char* supplementName(); |
| 34 | 33 |
| 35 PersistentWillBeMember<RemotePlayback> m_remote; | 34 Member<RemotePlayback> m_remote; |
| 36 }; | 35 }; |
| 37 | 36 |
| 38 } // namespace blink | 37 } // namespace blink |
| 39 | 38 |
| 40 #endif // HTMLMediaElementRemotePlayback_h | 39 #endif // HTMLMediaElementRemotePlayback_h |
| OLD | NEW |