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

Side by Side Diff: Source/modules/mediastream/MediaDevices.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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MediaDevices_h 5 #ifndef MediaDevices_h
6 #define MediaDevices_h 6 #define MediaDevices_h
7 7
8 #include "bindings/core/v8/ScriptPromise.h" 8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "bindings/core/v8/ScriptWrappable.h" 9 #include "bindings/core/v8/ScriptWrappable.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class Dictionary; 13 class MediaStreamConstraints;
14 class ScriptState; 14 class ScriptState;
15 15
16 class MediaDevices final : public GarbageCollected<MediaDevices>, public ScriptW rappable { 16 class MediaDevices final : public GarbageCollected<MediaDevices>, public ScriptW rappable {
17 DEFINE_WRAPPERTYPEINFO(); 17 DEFINE_WRAPPERTYPEINFO();
18 public: 18 public:
19 static MediaDevices* create() 19 static MediaDevices* create()
20 { 20 {
21 return new MediaDevices(); 21 return new MediaDevices();
22 } 22 }
23 23
24 ScriptPromise enumerateDevices(ScriptState*); 24 ScriptPromise enumerateDevices(ScriptState*);
25 ScriptPromise getUserMedia(ScriptState*, const Dictionary&, ExceptionState&) ; 25 ScriptPromise getUserMedia(ScriptState*, const MediaStreamConstraints&, Exce ptionState&);
26 DEFINE_INLINE_TRACE() { } 26 DEFINE_INLINE_TRACE() { }
27 27
28 private: 28 private:
29 MediaDevices() { } 29 MediaDevices() { }
30 }; 30 };
31 31
32 } // namespace blink 32 } // namespace blink
33 33
34 #endif 34 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/modules/mediastream/MediaDevices.cpp » ('j') | Source/modules/mediastream/UserMediaRequest.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698