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

Side by Side Diff: Source/modules/mediastream/MediaDevices.h

Issue 1184743002: Implement enumerateDevices() according to spec. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix expected output of global interface listing test Created 5 years, 6 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef MediaDevices_h
6 #define MediaDevices_h
7
8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "bindings/core/v8/ScriptWrappable.h"
10
11 namespace blink {
12
13 class ScriptState;
14
15 class MediaDevices final : public GarbageCollected<MediaDevices>, public ScriptW rappable {
16 DEFINE_WRAPPERTYPEINFO();
17 public:
18 static MediaDevices* create()
19 {
20 return new MediaDevices();
21 }
22
23 ScriptPromise enumerateDevices(ScriptState*);
24
25 DEFINE_INLINE_TRACE() { }
26
27 private:
28 MediaDevices() { }
29 };
30
31 } // namespace blink
32
33 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698