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

Unified Diff: Source/modules/mediastream/NavigatorUserMedia.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/NavigatorUserMedia.h
diff --git a/Source/modules/mediastream/NavigatorUserMedia.h b/Source/modules/mediastream/NavigatorUserMedia.h
new file mode 100644
index 0000000000000000000000000000000000000000..1502db22d69b86c57309a0d1dac853c4a16cc8c6
--- /dev/null
+++ b/Source/modules/mediastream/NavigatorUserMedia.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 NavigatorUserMedia_h
+#define NavigatorUserMedia_h
+
+#include "platform/Supplementable.h"
+#include "platform/heap/Handle.h"
+
+namespace blink {
+
+class Navigator;
+class MediaDevices;
+
+class NavigatorUserMedia final : public GarbageCollected<NavigatorUserMedia>, public HeapSupplement<Navigator> {
+ USING_GARBAGE_COLLECTED_MIXIN(NavigatorUserMedia)
+public:
+ static MediaDevices* mediaDevices(Navigator&);
+ DECLARE_VIRTUAL_TRACE();
+
+private:
+ NavigatorUserMedia();
+ MediaDevices* getMediaDevices();
+ static const char* supplementName();
+ static NavigatorUserMedia& from(Navigator&);
+
+ Member<MediaDevices> m_mediaDevices;
+};
+
+} // namespace blink
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698