| 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 HTMLMediaElementAudioOutputDevice_h | 5 #ifndef HTMLMediaElementAudioOutputDevice_h |
| 6 #define HTMLMediaElementAudioOutputDevice_h | 6 #define HTMLMediaElementAudioOutputDevice_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptPromise.h" | 8 #include "bindings/core/v8/ScriptPromise.h" |
| 9 #include "core/dom/ContextLifecycleObserver.h" | 9 #include "core/dom/ContextLifecycleObserver.h" |
| 10 #include "core/dom/ExceptionCode.h" | 10 #include "core/dom/ExceptionCode.h" |
| 11 #include "core/html/HTMLMediaElement.h" | 11 #include "core/html/HTMLMediaElement.h" |
| 12 #include "modules/ModulesExport.h" | 12 #include "modules/ModulesExport.h" |
| 13 #include "platform/Supplementable.h" | 13 #include "platform/Supplementable.h" |
| 14 #include "platform/heap/Handle.h" | 14 #include "platform/heap/Handle.h" |
| 15 | 15 |
| 16 namespace blink { | 16 namespace blink { |
| 17 | 17 |
| 18 class HTMLMediaElement; | 18 class HTMLMediaElement; |
| 19 class ScriptState; | 19 class ScriptState; |
| 20 | 20 |
| 21 class MODULES_EXPORT HTMLMediaElementAudioOutputDevice final : public GarbageCol
lectedFinalized<HTMLMediaElementAudioOutputDevice>, public HeapSupplement<HTMLMe
diaElement> { | 21 class MODULES_EXPORT HTMLMediaElementAudioOutputDevice final : public GarbageCol
lectedFinalized<HTMLMediaElementAudioOutputDevice>, public Supplement<HTMLMediaE
lement> { |
| 22 USING_GARBAGE_COLLECTED_MIXIN(HTMLMediaElementAudioOutputDevice); | 22 USING_GARBAGE_COLLECTED_MIXIN(HTMLMediaElementAudioOutputDevice); |
| 23 public: | 23 public: |
| 24 DECLARE_VIRTUAL_TRACE(); | 24 DECLARE_VIRTUAL_TRACE(); |
| 25 static String sinkId(HTMLMediaElement&); | 25 static String sinkId(HTMLMediaElement&); |
| 26 static ScriptPromise setSinkId(ScriptState*, HTMLMediaElement&, const String
& sinkId); | 26 static ScriptPromise setSinkId(ScriptState*, HTMLMediaElement&, const String
& sinkId); |
| 27 static HTMLMediaElementAudioOutputDevice& from(HTMLMediaElement&); | 27 static HTMLMediaElementAudioOutputDevice& from(HTMLMediaElement&); |
| 28 void setSinkId(const String&); | 28 void setSinkId(const String&); |
| 29 | 29 |
| 30 private: | 30 private: |
| 31 HTMLMediaElementAudioOutputDevice(); | 31 HTMLMediaElementAudioOutputDevice(); |
| 32 static const char* supplementName(); | 32 static const char* supplementName(); |
| 33 | 33 |
| 34 String m_sinkId; | 34 String m_sinkId; |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 } // namespace blink | 37 } // namespace blink |
| 38 | 38 |
| 39 #endif | 39 #endif |
| OLD | NEW |