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

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

Issue 1977513004: Adds multiple forms of MediaStreamTrack constraints (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Tommi's comments 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.h
diff --git a/third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.h b/third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.h
index 02c46a2b61eefead6b1326812e59df98efd591c2..615ee09bc6e37359014f2ad39a0654766ddf8fb0 100644
--- a/third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.h
+++ b/third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.h
@@ -31,6 +31,7 @@
#ifndef MediaConstraintsImpl_h
#define MediaConstraintsImpl_h
+#include "modules/ModulesExport.h"
#include "modules/mediastream/MediaErrorState.h"
#include "public/platform/WebMediaConstraints.h"
#include "wtf/text/WTFString.h"
@@ -38,7 +39,6 @@
namespace blink {
class Dictionary;
-class ExceptionState;
class MediaTrackConstraints;
namespace MediaConstraintsImpl {
@@ -47,7 +47,10 @@ WebMediaConstraints create();
WebMediaConstraints create(ExecutionContext*, const Dictionary&, MediaErrorState&);
WebMediaConstraints create(ExecutionContext*, const MediaTrackConstraints&, MediaErrorState&);
-void convertConstraints(const WebMediaConstraints& input, MediaTrackConstraints& output);
+// Exported with MODULES_EXPORT for testing
+MODULES_EXPORT void convertConstraints(const WebMediaConstraints& input, MediaTrackConstraints& output);
+// Exported for testing only.
+MODULES_EXPORT WebMediaConstraints convertConstraintsToWeb(const MediaTrackConstraints&);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698