| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 ImageCapture_h | 5 #ifndef ImageCapture_h |
| 6 #define ImageCapture_h | 6 #define ImageCapture_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/ContextLifecycleObserver.h" | 10 #include "core/dom/ContextLifecycleObserver.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 | 42 |
| 43 MediaStreamTrack* videoStreamTrack() const { return m_streamTrack.get(); } | 43 MediaStreamTrack* videoStreamTrack() const { return m_streamTrack.get(); } |
| 44 | 44 |
| 45 ScriptPromise grabFrame(ScriptState*, ExceptionState&); | 45 ScriptPromise grabFrame(ScriptState*, ExceptionState&); |
| 46 | 46 |
| 47 DECLARE_VIRTUAL_TRACE(); | 47 DECLARE_VIRTUAL_TRACE(); |
| 48 | 48 |
| 49 private: | 49 private: |
| 50 ImageCapture(ExecutionContext*, MediaStreamTrack*); | 50 ImageCapture(ExecutionContext*, MediaStreamTrack*); |
| 51 | 51 |
| 52 // EventTarget implementation. | |
| 53 bool addEventListenerInternal(const AtomicString& eventType, EventListener*,
const EventListenerOptions&) override; | |
| 54 | |
| 55 Member<MediaStreamTrack> m_streamTrack; | 52 Member<MediaStreamTrack> m_streamTrack; |
| 56 }; | 53 }; |
| 57 | 54 |
| 58 } // namespace blink | 55 } // namespace blink |
| 59 | 56 |
| 60 #endif // ImageCapture_h | 57 #endif // ImageCapture_h |
| OLD | NEW |