Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp

Issue 1922093003: Add AddEventListenerOptions addEventListenerOptions interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698