Chromium Code Reviews| 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 "platform/Supplementable.h" | 12 #include "platform/Supplementable.h" |
| 13 #include "platform/heap/Handle.h" | 13 #include "platform/heap/Handle.h" |
| 14 | 14 |
| 15 namespace blink { | 15 namespace blink { |
| 16 | 16 |
| 17 class HTMLMediaElement; | 17 class HTMLMediaElement; |
| 18 class ScriptState; | 18 class ScriptState; |
| 19 | 19 |
| 20 class HTMLMediaElementAudioOutputDevice final : public NoBaseWillBeGarbageCollec tedFinalized<HTMLMediaElementAudioOutputDevice>, public WillBeHeapSupplement<HTM LMediaElement> { | 20 class HTMLMediaElementAudioOutputDevice final : public NoBaseWillBeGarbageCollec tedFinalized<HTMLMediaElementAudioOutputDevice>, public WillBeHeapSupplement<HTM LMediaElement> { |
| 21 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLMediaElementAudioOutputDevice); | 21 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLMediaElementAudioOutputDevice); |
| 22 public: | 22 public: |
| 23 DECLARE_VIRTUAL_TRACE(); | 23 DECLARE_VIRTUAL_TRACE(); |
| 24 static String sinkId(HTMLMediaElement&); | 24 static String sinkId(HTMLMediaElement&); |
| 25 static ScriptPromise setSinkId(ScriptState*, HTMLMediaElement&, const String & newSinkId); | 25 static ScriptPromise setSinkId(ScriptState*, HTMLMediaElement&, const String &); |
|
Mike West
2015/06/17 11:44:37
We generally keep the parameter name for generic t
Guido Urdaneta
2015/06/17 12:25:15
Done.
| |
| 26 friend class SetSinkIdCallbacks; | |
|
Mike West
2015/06/17 11:44:37
This is just for `from(HTMLMediaElement)`, right?
Guido Urdaneta
2015/06/17 12:25:15
Done.
| |
| 26 | 27 |
| 27 private: | 28 private: |
| 28 HTMLMediaElementAudioOutputDevice(); | 29 HTMLMediaElementAudioOutputDevice(); |
| 29 static HTMLMediaElementAudioOutputDevice& from(HTMLMediaElement&); | 30 static HTMLMediaElementAudioOutputDevice& from(HTMLMediaElement&); |
| 30 static const char* supplementName(); | 31 static const char* supplementName(); |
| 31 | 32 |
| 32 String m_sinkId; | 33 String m_sinkId; |
| 33 }; | 34 }; |
| 34 | 35 |
| 35 } // namespace blink | 36 } // namespace blink |
| 36 | 37 |
| 37 #endif | 38 #endif |
| OLD | NEW |