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

Unified Diff: third_party/WebKit/Source/modules/imagecapture/ImageCapture.h

Issue 2758063002: Image Capture: cache constraints and append them to MediaStreamTrack.getConstraints() (Closed)
Patch Set: guidou@ TODO()s Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/imagecapture/ImageCapture.h
diff --git a/third_party/WebKit/Source/modules/imagecapture/ImageCapture.h b/third_party/WebKit/Source/modules/imagecapture/ImageCapture.h
index fd532099363f60170fef7b84c219b2aeae10f045..5c6b4e7909d4e085ea56df23adc9b8b91f4c7d4f 100644
--- a/third_party/WebKit/Source/modules/imagecapture/ImageCapture.h
+++ b/third_party/WebKit/Source/modules/imagecapture/ImageCapture.h
@@ -14,13 +14,13 @@
#include "modules/EventTargetModules.h"
#include "modules/ModulesExport.h"
#include "modules/mediastream/MediaTrackCapabilities.h"
+#include "modules/mediastream/MediaTrackConstraintSet.h"
#include "platform/AsyncMethodRunner.h"
namespace blink {
class ExceptionState;
class MediaStreamTrack;
-class MediaTrackConstraintSet;
class PhotoSettings;
class ScriptPromiseResolver;
class WebImageCaptureFrameGrabber;
@@ -64,6 +64,7 @@ class MODULES_EXPORT ImageCapture final
void setMediaTrackConstraints(ScriptPromiseResolver*,
const MediaTrackConstraintSet&);
+ const MediaTrackConstraintSet& getMediaTrackConstraints() const;
DECLARE_VIRTUAL_TRACE();
@@ -82,6 +83,8 @@ class MODULES_EXPORT ImageCapture final
media::mojom::blink::ImageCapturePtr m_service;
MediaTrackCapabilities m_capabilities;
+ MediaTrackConstraintSet m_currentConstraints;
+
HeapHashSet<Member<ScriptPromiseResolver>> m_serviceRequests;
};

Powered by Google App Engine
This is Rietveld 408576698