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

Unified Diff: Source/modules/mediastream/NavigatorMediaStream.h

Issue 1302793002: Refactor "options" argument to getUserMedia to be a dictionary (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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: Source/modules/mediastream/NavigatorMediaStream.h
diff --git a/Source/modules/mediastream/NavigatorMediaStream.h b/Source/modules/mediastream/NavigatorMediaStream.h
index 44e4350869e3ab4975bdd44d02c70c3d6b615b54..12cfb2774a97669898e730afcacdd85301e07862 100644
--- a/Source/modules/mediastream/NavigatorMediaStream.h
+++ b/Source/modules/mediastream/NavigatorMediaStream.h
@@ -29,13 +29,14 @@ namespace blink {
class Dictionary;
class ExceptionState;
class MediaDeviceInfoCallback;
+class MediaStreamConstraints;
class Navigator;
class NavigatorUserMediaErrorCallback;
class NavigatorUserMediaSuccessCallback;
class NavigatorMediaStream {
public:
- static void webkitGetUserMedia(Navigator&, const Dictionary&, NavigatorUserMediaSuccessCallback*, NavigatorUserMediaErrorCallback*, ExceptionState&);
+ static void webkitGetUserMedia(Navigator&, const MediaStreamConstraints&, NavigatorUserMediaSuccessCallback*, NavigatorUserMediaErrorCallback*, ExceptionState&);
static void getMediaDevices(Navigator&, MediaDeviceInfoCallback*, ExceptionState&);

Powered by Google App Engine
This is Rietveld 408576698