| 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 MediaDevices_h | 5 #ifndef MediaDevices_h |
| 6 #define MediaDevices_h | 6 #define MediaDevices_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ActiveScriptWrappable.h" | 8 #include "bindings/core/v8/ActiveScriptWrappable.h" |
| 9 #include "bindings/core/v8/ScriptPromise.h" | 9 #include "bindings/core/v8/ScriptPromise.h" |
| 10 #include "core/dom/ActiveDOMObject.h" | 10 #include "core/dom/ActiveDOMObject.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 ScriptPromise enumerateDevices(ScriptState*); | 31 ScriptPromise enumerateDevices(ScriptState*); |
| 32 void getSupportedConstraints(MediaTrackSupportedConstraints& result) { } | 32 void getSupportedConstraints(MediaTrackSupportedConstraints& result) { } |
| 33 ScriptPromise getUserMedia(ScriptState*, const MediaStreamConstraints&, Exce
ptionState&); | 33 ScriptPromise getUserMedia(ScriptState*, const MediaStreamConstraints&, Exce
ptionState&); |
| 34 void didChangeMediaDevices(); | 34 void didChangeMediaDevices(); |
| 35 | 35 |
| 36 // EventTarget overrides. | 36 // EventTarget overrides. |
| 37 const AtomicString& interfaceName() const override; | 37 const AtomicString& interfaceName() const override; |
| 38 ExecutionContext* getExecutionContext() const override; | 38 ExecutionContext* getExecutionContext() const override; |
| 39 void removeAllEventListeners() override; | 39 void removeAllEventListeners() override; |
| 40 | 40 |
| 41 // ActiveScriptWrappable | 41 // ScriptWrappable |
| 42 bool hasPendingActivity() const override; | 42 bool hasPendingActivity() const override; |
| 43 | 43 |
| 44 // ActiveDOMObject overrides. | 44 // ActiveDOMObject overrides. |
| 45 void stop() override; | 45 void stop() override; |
| 46 void suspend() override; | 46 void suspend() override; |
| 47 void resume() override; | 47 void resume() override; |
| 48 | 48 |
| 49 DECLARE_VIRTUAL_TRACE(); | 49 DECLARE_VIRTUAL_TRACE(); |
| 50 | 50 |
| 51 DEFINE_ATTRIBUTE_EVENT_LISTENER(devicechange); | 51 DEFINE_ATTRIBUTE_EVENT_LISTENER(devicechange); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 66 | 66 |
| 67 bool m_observing; | 67 bool m_observing; |
| 68 bool m_stopped; | 68 bool m_stopped; |
| 69 Member<AsyncMethodRunner<MediaDevices>> m_dispatchScheduledEventRunner; | 69 Member<AsyncMethodRunner<MediaDevices>> m_dispatchScheduledEventRunner; |
| 70 HeapVector<Member<Event>> m_scheduledEvents; | 70 HeapVector<Member<Event>> m_scheduledEvents; |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 } // namespace blink | 73 } // namespace blink |
| 74 | 74 |
| 75 #endif | 75 #endif |
| OLD | NEW |