| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 RemotePlayback_h | 5 #ifndef RemotePlayback_h |
| 6 #define RemotePlayback_h | 6 #define RemotePlayback_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ActiveScriptWrappable.h" | 8 #include "bindings/core/v8/ActiveScriptWrappable.h" |
| 9 #include "bindings/core/v8/ScriptPromise.h" | 9 #include "bindings/core/v8/ScriptPromise.h" |
| 10 #include "bindings/core/v8/ScriptState.h" | 10 #include "bindings/core/v8/ScriptState.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 namespace blink { | 21 namespace blink { |
| 22 | 22 |
| 23 class ExecutionContext; | 23 class ExecutionContext; |
| 24 class HTMLMediaElement; | 24 class HTMLMediaElement; |
| 25 class RemotePlaybackAvailabilityCallback; | 25 class RemotePlaybackAvailabilityCallback; |
| 26 class ScriptPromiseResolver; | 26 class ScriptPromiseResolver; |
| 27 | 27 |
| 28 class MODULES_EXPORT RemotePlayback final | 28 class MODULES_EXPORT RemotePlayback final |
| 29 : public EventTargetWithInlineData, | 29 : public EventTargetWithInlineData, |
| 30 public ActiveScriptWrappable, | 30 public ActiveScriptWrappable, |
| 31 WTF_NON_EXPORTED_BASE(private WebRemotePlaybackClient) { | 31 WTF_NON_EXPORTED_BASE(public WebRemotePlaybackClient) { |
| 32 DEFINE_WRAPPERTYPEINFO(); | 32 DEFINE_WRAPPERTYPEINFO(); |
| 33 USING_GARBAGE_COLLECTED_MIXIN(RemotePlayback); | 33 USING_GARBAGE_COLLECTED_MIXIN(RemotePlayback); |
| 34 | 34 |
| 35 public: | 35 public: |
| 36 static RemotePlayback* create(ScriptState*, HTMLMediaElement&); | 36 static RemotePlayback* create(ScriptState*, HTMLMediaElement&); |
| 37 | 37 |
| 38 // Notifies this object that disableRemotePlayback attribute was set on the | 38 // Notifies this object that disableRemotePlayback attribute was set on the |
| 39 // corresponding media element. | 39 // corresponding media element. |
| 40 void remotePlaybackDisabled(); | 40 void remotePlaybackDisabled(); |
| 41 | 41 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 bool m_availability; | 97 bool m_availability; |
| 98 HeapHashMap<int, TraceWrapperMember<RemotePlaybackAvailabilityCallback>> | 98 HeapHashMap<int, TraceWrapperMember<RemotePlaybackAvailabilityCallback>> |
| 99 m_availabilityCallbacks; | 99 m_availabilityCallbacks; |
| 100 Member<HTMLMediaElement> m_mediaElement; | 100 Member<HTMLMediaElement> m_mediaElement; |
| 101 Member<ScriptPromiseResolver> m_promptPromiseResolver; | 101 Member<ScriptPromiseResolver> m_promptPromiseResolver; |
| 102 }; | 102 }; |
| 103 | 103 |
| 104 } // namespace blink | 104 } // namespace blink |
| 105 | 105 |
| 106 #endif // RemotePlayback_h | 106 #endif // RemotePlayback_h |
| OLD | NEW |