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

Unified Diff: third_party/WebKit/Source/modules/mediastream/MediaDeviceInfo.h

Issue 1571303003: Add JSON serializer to MediaDeviceInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2564
Patch Set: Created 4 years, 11 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/mediastream/MediaDeviceInfo.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/mediastream/MediaDeviceInfo.h
diff --git a/third_party/WebKit/Source/modules/mediastream/MediaDeviceInfo.h b/third_party/WebKit/Source/modules/mediastream/MediaDeviceInfo.h
index 9c893fb47d5c01ec5d6c85aa21492147cbec40b3..3de7534c81f5232081039bba794139fea3685f2d 100644
--- a/third_party/WebKit/Source/modules/mediastream/MediaDeviceInfo.h
+++ b/third_party/WebKit/Source/modules/mediastream/MediaDeviceInfo.h
@@ -33,6 +33,9 @@
namespace blink {
+class ScriptState;
+class ScriptValue;
+
class MODULES_EXPORT MediaDeviceInfo final : public GarbageCollectedFinalized<MediaDeviceInfo>, public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
public:
@@ -43,6 +46,8 @@ public:
String label() const;
String groupId() const;
+ ScriptValue toJSONForBinding(ScriptState*);
+
DEFINE_INLINE_TRACE() { }
private:
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/mediastream/MediaDeviceInfo.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698