| 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/ScriptPromiseResolver.h" | 7 #include "bindings/core/v8/ScriptPromiseResolver.h" |
| 8 #include "core/dom/DOMException.h" | 8 #include "core/dom/DOMException.h" |
| 9 #include "core/dom/ExceptionCode.h" | 9 #include "core/dom/ExceptionCode.h" |
| 10 #include "modules/EventTargetModules.h" | 10 #include "modules/EventTargetModules.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 } | 65 } |
| 66 | 66 |
| 67 ImageCapture::ImageCapture(ExecutionContext* context, MediaStreamTrack* track) | 67 ImageCapture::ImageCapture(ExecutionContext* context, MediaStreamTrack* track) |
| 68 : ActiveScriptWrappable(this) | 68 : ActiveScriptWrappable(this) |
| 69 , ContextLifecycleObserver(context) | 69 , ContextLifecycleObserver(context) |
| 70 , m_streamTrack(track) | 70 , m_streamTrack(track) |
| 71 { | 71 { |
| 72 DCHECK(m_streamTrack); | 72 DCHECK(m_streamTrack); |
| 73 } | 73 } |
| 74 | 74 |
| 75 bool ImageCapture::addEventListenerInternal(const AtomicString& eventType, Event
Listener* listener, const EventListenerOptions& options) | |
| 76 { | |
| 77 return EventTarget::addEventListenerInternal(eventType, listener, options); | |
| 78 } | |
| 79 | |
| 80 DEFINE_TRACE(ImageCapture) | 75 DEFINE_TRACE(ImageCapture) |
| 81 { | 76 { |
| 82 visitor->trace(m_streamTrack); | 77 visitor->trace(m_streamTrack); |
| 83 EventTargetWithInlineData::trace(visitor); | 78 EventTargetWithInlineData::trace(visitor); |
| 84 ContextLifecycleObserver::trace(visitor); | 79 ContextLifecycleObserver::trace(visitor); |
| 85 } | 80 } |
| 86 | 81 |
| 87 } // namespace blink | 82 } // namespace blink |
| OLD | NEW |