| 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 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 // EventTarget overrides. | 41 // EventTarget overrides. |
| 42 const AtomicString& interfaceName() const override; | 42 const AtomicString& interfaceName() const override; |
| 43 ExecutionContext* getExecutionContext() const override; | 43 ExecutionContext* getExecutionContext() const override; |
| 44 void removeAllEventListeners() override; | 44 void removeAllEventListeners() override; |
| 45 | 45 |
| 46 // ScriptWrappable | 46 // ScriptWrappable |
| 47 bool hasPendingActivity() const override; | 47 bool hasPendingActivity() const override; |
| 48 | 48 |
| 49 // ActiveDOMObject overrides. | 49 // ActiveDOMObject overrides. |
| 50 void stop() override; | 50 void contextDestroyed() override; |
| 51 void suspend() override; | 51 void suspend() override; |
| 52 void resume() override; | 52 void resume() override; |
| 53 | 53 |
| 54 DECLARE_VIRTUAL_TRACE(); | 54 DECLARE_VIRTUAL_TRACE(); |
| 55 | 55 |
| 56 DEFINE_ATTRIBUTE_EVENT_LISTENER(devicechange); | 56 DEFINE_ATTRIBUTE_EVENT_LISTENER(devicechange); |
| 57 | 57 |
| 58 protected: | 58 protected: |
| 59 // EventTarget overrides. | 59 // EventTarget overrides. |
| 60 void addedEventListener(const AtomicString& eventType, | 60 void addedEventListener(const AtomicString& eventType, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 73 | 73 |
| 74 bool m_observing; | 74 bool m_observing; |
| 75 bool m_stopped; | 75 bool m_stopped; |
| 76 Member<AsyncMethodRunner<MediaDevices>> m_dispatchScheduledEventRunner; | 76 Member<AsyncMethodRunner<MediaDevices>> m_dispatchScheduledEventRunner; |
| 77 HeapVector<Member<Event>> m_scheduledEvents; | 77 HeapVector<Member<Event>> m_scheduledEvents; |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 } // namespace blink | 80 } // namespace blink |
| 81 | 81 |
| 82 #endif | 82 #endif |
| OLD | NEW |