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

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

Issue 1942723004: Change EventTarget callback APIs for add/RemoveEventListenerInternal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix gypi 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/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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698