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

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

Issue 1899403002: MediaStream Image Capture (2): Platform::ImageCaptureFrameGrabber and grabFrame() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. LayoutTests: Replace assert_array_equals with an for-each: assert_aprox_equals 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"
11 #include "core/events/EventTarget.h" 11 #include "core/events/EventTarget.h"
12 #include "modules/EventTargetModules.h" 12 #include "modules/EventTargetModules.h"
13 #include "modules/ModulesExport.h" 13 #include "modules/ModulesExport.h"
14 #include "platform/AsyncMethodRunner.h" 14 #include "platform/AsyncMethodRunner.h"
15 15
16 namespace blink { 16 namespace blink {
17 17
18 class ExceptionState; 18 class ExceptionState;
19 class MediaStreamTrack; 19 class MediaStreamTrack;
20 class WebImageCaptureFrameGrabber;
20 21
21 // TODO(mcasas): Consideradding a LayoutTest checking that this class is not 22 // TODO(mcasas): Consideradding a LayoutTest checking that this class is not
22 // garbage collected while it has event listeners. 23 // garbage collected while it has event listeners.
23 class MODULES_EXPORT ImageCapture final 24 class MODULES_EXPORT ImageCapture final
24 : public EventTargetWithInlineData 25 : public EventTargetWithInlineData
25 , public ActiveScriptWrappable 26 , public ActiveScriptWrappable
26 , public ContextLifecycleObserver { 27 , public ContextLifecycleObserver {
27 USING_GARBAGE_COLLECTED_MIXIN(ImageCapture); 28 USING_GARBAGE_COLLECTED_MIXIN(ImageCapture);
28 DEFINE_WRAPPERTYPEINFO(); 29 DEFINE_WRAPPERTYPEINFO();
29 public: 30 public:
(...skipping 16 matching lines...) Expand all
46 47
47 DECLARE_VIRTUAL_TRACE(); 48 DECLARE_VIRTUAL_TRACE();
48 49
49 private: 50 private:
50 ImageCapture(ExecutionContext*, MediaStreamTrack*); 51 ImageCapture(ExecutionContext*, MediaStreamTrack*);
51 52
52 // EventTarget implementation. 53 // EventTarget implementation.
53 bool addEventListenerInternal(const AtomicString& eventType, EventListener*, const EventListenerOptions&) override; 54 bool addEventListenerInternal(const AtomicString& eventType, EventListener*, const EventListenerOptions&) override;
54 55
55 Member<MediaStreamTrack> m_streamTrack; 56 Member<MediaStreamTrack> m_streamTrack;
57 OwnPtr<WebImageCaptureFrameGrabber> m_frameGrabber;
56 }; 58 };
57 59
58 } // namespace blink 60 } // namespace blink
59 61
60 #endif // ImageCapture_h 62 #endif // ImageCapture_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698