Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Side by Side Diff: third_party/WebKit/Source/modules/audio_output_devices/HTMLMediaElementAudioOutputDevice.h

Issue 1416123005: Implement setSinkId() for media elements without src. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698