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

Unified Diff: third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.h

Issue 2757673005: Image Capture: MediaStreamTrack::applyConstraints() (Closed)
Patch Set: guidou@ and reillyg@ comments 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/mediastream/MediaStreamTrack.h
diff --git a/third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.h b/third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.h
index 8c19b95d9ca2d4c68493a30c6a59bfa0a7f8f76c..7fe1b2619ee2d0e35850bf8ff4ba7c1beedf1061 100644
--- a/third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.h
+++ b/third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.h
@@ -26,7 +26,9 @@
#ifndef MediaStreamTrack_h
#define MediaStreamTrack_h
+#include <memory>
#include "bindings/core/v8/ActiveScriptWrappable.h"
+#include "bindings/core/v8/ScriptPromise.h"
#include "core/dom/ContextLifecycleObserver.h"
#include "modules/EventTargetModules.h"
#include "modules/ModulesExport.h"
@@ -34,7 +36,6 @@
#include "platform/mediastream/MediaStreamSource.h"
#include "public/platform/WebMediaConstraints.h"
#include "wtf/Forward.h"
-#include <memory>
namespace blink {
@@ -76,14 +77,14 @@ class MODULES_EXPORT MediaStreamTrack
void stopTrack(ExceptionState&);
virtual MediaStreamTrack* clone(ScriptState*);
- void getConstraints(MediaTrackConstraints&);
-
// This function is called when constrains have been successfully applied.
// Called from UserMediaRequest when it succeeds. It is not IDL-exposed.
void setConstraints(const WebMediaConstraints&);
void getCapabilities(MediaTrackCapabilities&);
+ void getConstraints(MediaTrackConstraints&);
void getSettings(MediaTrackSettings&);
+ ScriptPromise applyConstraints(ScriptState*, const MediaTrackConstraints&);
DEFINE_ATTRIBUTE_EVENT_LISTENER(mute);
DEFINE_ATTRIBUTE_EVENT_LISTENER(unmute);

Powered by Google App Engine
This is Rietveld 408576698