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

Side by Side 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 2 Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
3 3
4 This library is free software; you can redistribute it and/or 4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public 5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either 6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version. 7 version 2 of the License, or (at your option) any later version.
8 8
9 This library is distributed in the hope that it will be useful, 9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 11 matching lines...) Expand all
22 22
23 #include "platform/heap/Handle.h" 23 #include "platform/heap/Handle.h"
24 #include "wtf/PassRefPtr.h" 24 #include "wtf/PassRefPtr.h"
25 #include "wtf/text/WTFString.h" 25 #include "wtf/text/WTFString.h"
26 26
27 namespace blink { 27 namespace blink {
28 28
29 class Dictionary; 29 class Dictionary;
30 class ExceptionState; 30 class ExceptionState;
31 class MediaDeviceInfoCallback; 31 class MediaDeviceInfoCallback;
32 class MediaStreamConstraints;
32 class Navigator; 33 class Navigator;
33 class NavigatorUserMediaErrorCallback; 34 class NavigatorUserMediaErrorCallback;
34 class NavigatorUserMediaSuccessCallback; 35 class NavigatorUserMediaSuccessCallback;
35 36
36 class NavigatorMediaStream { 37 class NavigatorMediaStream {
37 public: 38 public:
38 static void webkitGetUserMedia(Navigator&, const Dictionary&, NavigatorUserM ediaSuccessCallback*, NavigatorUserMediaErrorCallback*, ExceptionState&); 39 static void webkitGetUserMedia(Navigator&, const MediaStreamConstraints&, Na vigatorUserMediaSuccessCallback*, NavigatorUserMediaErrorCallback*, ExceptionSta te&);
39 40
40 static void getMediaDevices(Navigator&, MediaDeviceInfoCallback*, ExceptionS tate&); 41 static void getMediaDevices(Navigator&, MediaDeviceInfoCallback*, ExceptionS tate&);
41 42
42 private: 43 private:
43 NavigatorMediaStream(); 44 NavigatorMediaStream();
44 ~NavigatorMediaStream(); 45 ~NavigatorMediaStream();
45 }; 46 };
46 47
47 } // namespace blink 48 } // namespace blink
48 49
49 #endif // NavigatorMediaStream_h 50 #endif // NavigatorMediaStream_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698