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

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

Issue 2629593004: Disambiguate LifecycleObserver::contextDestroyed (Closed)
Patch Set: temp Created 3 years, 11 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 27 matching lines...) Expand all
38 ~ImageCapture() override; 38 ~ImageCapture() override;
39 39
40 // EventTarget implementation. 40 // EventTarget implementation.
41 const AtomicString& interfaceName() const override; 41 const AtomicString& interfaceName() const override;
42 ExecutionContext* getExecutionContext() const override; 42 ExecutionContext* getExecutionContext() const override;
43 43
44 // ScriptWrappable implementation. 44 // ScriptWrappable implementation.
45 bool hasPendingActivity() const final; 45 bool hasPendingActivity() const final;
46 46
47 // ContextLifecycleObserver 47 // ContextLifecycleObserver
48 void contextDestroyed() override; 48 void contextDestroyed(ExecutionContext*) override;
49 49
50 MediaStreamTrack* videoStreamTrack() const { return m_streamTrack.get(); } 50 MediaStreamTrack* videoStreamTrack() const { return m_streamTrack.get(); }
51 51
52 ScriptPromise getPhotoCapabilities(ScriptState*, ExceptionState&); 52 ScriptPromise getPhotoCapabilities(ScriptState*, ExceptionState&);
53 53
54 ScriptPromise setOptions(ScriptState*, const PhotoSettings&, ExceptionState&); 54 ScriptPromise setOptions(ScriptState*, const PhotoSettings&, ExceptionState&);
55 55
56 ScriptPromise takePhoto(ScriptState*, ExceptionState&); 56 ScriptPromise takePhoto(ScriptState*, ExceptionState&);
57 57
58 ScriptPromise grabFrame(ScriptState*, ExceptionState&); 58 ScriptPromise grabFrame(ScriptState*, ExceptionState&);
(...skipping 12 matching lines...) Expand all
71 Member<MediaStreamTrack> m_streamTrack; 71 Member<MediaStreamTrack> m_streamTrack;
72 std::unique_ptr<WebImageCaptureFrameGrabber> m_frameGrabber; 72 std::unique_ptr<WebImageCaptureFrameGrabber> m_frameGrabber;
73 media::mojom::blink::ImageCapturePtr m_service; 73 media::mojom::blink::ImageCapturePtr m_service;
74 74
75 HeapHashSet<Member<ScriptPromiseResolver>> m_serviceRequests; 75 HeapHashSet<Member<ScriptPromiseResolver>> m_serviceRequests;
76 }; 76 };
77 77
78 } // namespace blink 78 } // namespace blink
79 79
80 #endif // ImageCapture_h 80 #endif // ImageCapture_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698