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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: Source/modules/mediastream/MediaDevices.h
diff --git a/Source/modules/mediastream/MediaDevices.h b/Source/modules/mediastream/MediaDevices.h
new file mode 100644
index 0000000000000000000000000000000000000000..ba26231c07cf87be3ac3e944a28d58ff8c8184f5
--- /dev/null
+++ b/Source/modules/mediastream/MediaDevices.h
@@ -0,0 +1,33 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MediaDevices_h
+#define MediaDevices_h
+
+#include "bindings/core/v8/ScriptPromise.h"
+#include "bindings/core/v8/ScriptWrappable.h"
+
+namespace blink {
+
+class ScriptState;
+
+class MediaDevices final : public GarbageCollected<MediaDevices>, public ScriptWrappable {
+ DEFINE_WRAPPERTYPEINFO();
+public:
+ static MediaDevices* create()
+ {
+ return new MediaDevices();
+ }
+
+ ScriptPromise enumerateDevices(ScriptState*);
+
+ DEFINE_INLINE_TRACE() { }
+
+private:
+ MediaDevices() { }
+};
+
+} // namespace blink
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698