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

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 win32 signed/unsigned issue 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 ScriptPromise grabFrame(ScriptState*, ExceptionState&); 49 ScriptPromise grabFrame(ScriptState*, ExceptionState&);
50 50
51 DECLARE_VIRTUAL_TRACE(); 51 DECLARE_VIRTUAL_TRACE();
52 52
53 private: 53 private:
54 ImageCapture(ExecutionContext*, MediaStreamTrack*); 54 ImageCapture(ExecutionContext*, MediaStreamTrack*);
55 55
56 void onTakePhoto(ScriptPromiseResolver*, const String& mimeType, mojo::WTFAr ray<uint8_t> data); 56 void onTakePhoto(ScriptPromiseResolver*, const String& mimeType, mojo::WTFAr ray<uint8_t> data);
57 void onServiceConnectionError(); 57 void onServiceConnectionError();
58 58
59 // EventTarget implementation.
60 bool addEventListenerInternal(const AtomicString& eventType, EventListener*, const EventListenerOptions&) override;
61
62 Member<MediaStreamTrack> m_streamTrack; 59 Member<MediaStreamTrack> m_streamTrack;
63 OwnPtr<WebImageCaptureFrameGrabber> m_frameGrabber; 60 OwnPtr<WebImageCaptureFrameGrabber> m_frameGrabber;
64 mojom::blink::ImageCapturePtr m_service; 61 mojom::blink::ImageCapturePtr m_service;
65 62
66 HeapHashSet<Member<ScriptPromiseResolver>> m_serviceRequests; 63 HeapHashSet<Member<ScriptPromiseResolver>> m_serviceRequests;
67 }; 64 };
68 65
69 } // namespace blink 66 } // namespace blink
70 67
71 #endif // ImageCapture_h 68 #endif // ImageCapture_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698