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" |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 22 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLMediaElementAudioOutputDevice); | 22 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLMediaElementAudioOutputDevice); |
| 23 USING_FAST_MALLOC_WILL_BE_REMOVED(HTMLMediaElementAudioOutputDevice); | 23 USING_FAST_MALLOC_WILL_BE_REMOVED(HTMLMediaElementAudioOutputDevice); |
| 24 public: | 24 public: |
| 25 DECLARE_VIRTUAL_TRACE(); | 25 DECLARE_VIRTUAL_TRACE(); |
| 26 static String sinkId(HTMLMediaElement&); | 26 static String sinkId(HTMLMediaElement&); |
| 27 static ScriptPromise setSinkId(ScriptState*, HTMLMediaElement&, const String & sinkId); | 27 static ScriptPromise setSinkId(ScriptState*, HTMLMediaElement&, const String & sinkId); |
| 28 static HTMLMediaElementAudioOutputDevice& from(HTMLMediaElement&); | 28 static HTMLMediaElementAudioOutputDevice& from(HTMLMediaElement&); |
| 29 void setSinkId(const String&); | 29 void setSinkId(const String&); |
| 30 | 30 |
| 31 private: | 31 private: |
| 32 friend class SetSinkIdResolver; | |
|
Peter Beverloo
2015/11/12 16:45:42
Why do we need this?
Guido Urdaneta
2015/11/12 18:45:44
We don't. An early version of SetSinkIdResolver re
| |
| 32 HTMLMediaElementAudioOutputDevice(); | 33 HTMLMediaElementAudioOutputDevice(); |
| 33 static const char* supplementName(); | 34 static const char* supplementName(); |
| 34 | 35 |
| 35 String m_sinkId; | 36 String m_sinkId; |
| 36 }; | 37 }; |
| 37 | 38 |
| 38 } // namespace blink | 39 } // namespace blink |
| 39 | 40 |
| 40 #endif | 41 #endif |
| OLD | NEW |