| 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 #include "modules/imagecapture/ImageCapture.h" | 5 #include "modules/imagecapture/ImageCapture.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/CallbackPromiseAdapter.h" | 7 #include "bindings/core/v8/CallbackPromiseAdapter.h" |
| 8 #include "bindings/core/v8/ScriptPromiseResolver.h" | 8 #include "bindings/core/v8/ScriptPromiseResolver.h" |
| 9 #include "core/dom/DOMException.h" | 9 #include "core/dom/DOMException.h" |
| 10 #include "core/dom/ExceptionCode.h" | 10 #include "core/dom/ExceptionCode.h" |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 } | 83 } |
| 84 | 84 |
| 85 ImageCapture::ImageCapture(ExecutionContext* context, MediaStreamTrack* track) | 85 ImageCapture::ImageCapture(ExecutionContext* context, MediaStreamTrack* track) |
| 86 : ActiveScriptWrappable(this) | 86 : ActiveScriptWrappable(this) |
| 87 , ContextLifecycleObserver(context) | 87 , ContextLifecycleObserver(context) |
| 88 , m_streamTrack(track) | 88 , m_streamTrack(track) |
| 89 { | 89 { |
| 90 DCHECK(m_streamTrack); | 90 DCHECK(m_streamTrack); |
| 91 } | 91 } |
| 92 | 92 |
| 93 bool ImageCapture::addEventListenerInternal(const AtomicString& eventType, Event
Listener* listener, const EventListenerOptions& options) | |
| 94 { | |
| 95 return EventTarget::addEventListenerInternal(eventType, listener, options); | |
| 96 } | |
| 97 | |
| 98 DEFINE_TRACE(ImageCapture) | 93 DEFINE_TRACE(ImageCapture) |
| 99 { | 94 { |
| 100 visitor->trace(m_streamTrack); | 95 visitor->trace(m_streamTrack); |
| 101 EventTargetWithInlineData::trace(visitor); | 96 EventTargetWithInlineData::trace(visitor); |
| 102 ContextLifecycleObserver::trace(visitor); | 97 ContextLifecycleObserver::trace(visitor); |
| 103 } | 98 } |
| 104 | 99 |
| 105 } // namespace blink | 100 } // namespace blink |
| OLD | NEW |