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

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

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 #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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 MediaStreamTrack* videoStreamTrack() const { return m_streamTrack.get(); } 44 MediaStreamTrack* videoStreamTrack() const { return m_streamTrack.get(); }
45 45
46 ScriptPromise grabFrame(ScriptState*, ExceptionState&); 46 ScriptPromise grabFrame(ScriptState*, ExceptionState&);
47 47
48 DECLARE_VIRTUAL_TRACE(); 48 DECLARE_VIRTUAL_TRACE();
49 49
50 private: 50 private:
51 ImageCapture(ExecutionContext*, MediaStreamTrack*); 51 ImageCapture(ExecutionContext*, MediaStreamTrack*);
52 52
53 // EventTarget implementation.
54 bool addEventListenerInternal(const AtomicString& eventType, EventListener*, const EventListenerOptions&) override;
55
56 Member<MediaStreamTrack> m_streamTrack; 53 Member<MediaStreamTrack> m_streamTrack;
57 OwnPtr<WebImageCaptureFrameGrabber> m_frameGrabber; 54 OwnPtr<WebImageCaptureFrameGrabber> m_frameGrabber;
58 }; 55 };
59 56
60 } // namespace blink 57 } // namespace blink
61 58
62 #endif // ImageCapture_h 59 #endif // ImageCapture_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698