| Index: Source/modules/audio_output_devices/HTMLMediaElementAudioOutputDevice.h
|
| diff --git a/Source/modules/audio_output_devices/HTMLMediaElementAudioOutputDevice.h b/Source/modules/audio_output_devices/HTMLMediaElementAudioOutputDevice.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f75cedd438c24f3b923734d57dcc7e17f68e5abd
|
| --- /dev/null
|
| +++ b/Source/modules/audio_output_devices/HTMLMediaElementAudioOutputDevice.h
|
| @@ -0,0 +1,37 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef HTMLMediaElementAudioOutputDevice_h
|
| +#define HTMLMediaElementAudioOutputDevice_h
|
| +
|
| +#include "bindings/core/v8/ScriptPromise.h"
|
| +#include "core/dom/ContextLifecycleObserver.h"
|
| +#include "core/dom/ExceptionCode.h"
|
| +#include "core/html/HTMLMediaElement.h"
|
| +#include "platform/Supplementable.h"
|
| +#include "platform/heap/Handle.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class HTMLMediaElement;
|
| +class ScriptState;
|
| +
|
| +class HTMLMediaElementAudioOutputDevice final : public NoBaseWillBeGarbageCollectedFinalized<HTMLMediaElementAudioOutputDevice>, public WillBeHeapSupplement<HTMLMediaElement> {
|
| + WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLMediaElementAudioOutputDevice);
|
| +public:
|
| + DECLARE_VIRTUAL_TRACE();
|
| + static String sinkId(HTMLMediaElement&);
|
| + static ScriptPromise setSinkId(ScriptState*, HTMLMediaElement&, const String& newSinkId);
|
| +
|
| +private:
|
| + HTMLMediaElementAudioOutputDevice();
|
| + static HTMLMediaElementAudioOutputDevice& from(HTMLMediaElement&);
|
| + static const char* supplementName();
|
| +
|
| + String m_sinkId;
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif
|
|
|