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

Unified Diff: Source/bindings/core/v8/DictionaryHelperForCore.cpp

Issue 650063002: Move MediaStream and MediaStreamTrack implementation from modules/mediastream to core/mediastream. Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased. Created 6 years, 2 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 | « Source/bindings/core/v8/Dictionary.cpp ('k') | Source/bindings/modules/v8/DictionaryHelperForModules.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/DictionaryHelperForCore.cpp
diff --git a/Source/bindings/core/v8/DictionaryHelperForCore.cpp b/Source/bindings/core/v8/DictionaryHelperForCore.cpp
index 31d2e242ae2bb609cd2826c740850cb0894b70a9..9523fc6e54b63b8efdfa13f1a3237a922cb8a22b 100644
--- a/Source/bindings/core/v8/DictionaryHelperForCore.cpp
+++ b/Source/bindings/core/v8/DictionaryHelperForCore.cpp
@@ -34,8 +34,10 @@
#include "bindings/core/v8/V8Element.h"
#include "bindings/core/v8/V8EventTarget.h"
#include "bindings/core/v8/V8MediaKeyError.h"
+#include "bindings/core/v8/V8MediaStream.h"
#include "bindings/core/v8/V8MessagePort.h"
#include "bindings/core/v8/V8Path2D.h"
+
#include "bindings/core/v8/V8Storage.h"
#include "bindings/core/v8/V8TextTrack.h"
#include "bindings/core/v8/V8VoidCallback.h"
@@ -43,6 +45,7 @@
#include "bindings/core/v8/custom/V8ArrayBufferViewCustom.h"
#include "bindings/core/v8/custom/V8Uint8ArrayCustom.h"
#include "core/html/track/TrackBase.h"
+#include "core/mediastream/MediaStream.h"
#include "wtf/MathExtras.h"
namespace blink {
@@ -487,6 +490,11 @@ struct DictionaryHelperTraits<Path2D> {
typedef V8Path2D type;
};
+template <>
+struct DictionaryHelperTraits<MediaStream> {
+ typedef V8MediaStream type;
+};
+
template bool DictionaryHelper::get(const Dictionary&, const String& key, RefPtr<Uint8Array>& value);
template bool DictionaryHelper::get(const Dictionary&, const String& key, RefPtr<ArrayBufferView>& value);
template bool DictionaryHelper::get(const Dictionary&, const String& key, RefPtrWillBeMember<MediaKeyError>& value);
@@ -496,6 +504,7 @@ template bool DictionaryHelper::get(const Dictionary&, const String& key, RefPtr
template bool DictionaryHelper::get(const Dictionary&, const String& key, RawPtr<Element>& value);
template bool DictionaryHelper::get(const Dictionary&, const String& key, RefPtrWillBeMember<Path2D>& value);
template bool DictionaryHelper::get(const Dictionary&, const String& key, RawPtr<Path2D>& value);
+template bool DictionaryHelper::get(const Dictionary&, const String& key, Member<MediaStream>& value);
template <typename T>
struct IntegralTypeTraits {
@@ -659,6 +668,7 @@ template bool DictionaryHelper::convert(const Dictionary&, Dictionary::Conversio
template bool DictionaryHelper::convert(const Dictionary&, Dictionary::ConversionContext&, const String& key, RefPtrWillBeMember<MediaKeyError>& value);
template bool DictionaryHelper::convert(const Dictionary&, Dictionary::ConversionContext&, const String& key, RefPtrWillBeMember<TrackBase>& value);
template bool DictionaryHelper::convert(const Dictionary&, Dictionary::ConversionContext&, const String& key, RefPtrWillBeMember<EventTarget>& value);
+template bool DictionaryHelper::convert(const Dictionary&, Dictionary::ConversionContext&, const String& key, Member<MediaStream>& value);
template <>
bool DictionaryHelper::convert(const Dictionary& dictionary, Dictionary::ConversionContext& context, const String& key, MessagePortArray& value)
@@ -683,4 +693,6 @@ bool DictionaryHelper::convert(const Dictionary& dictionary, Dictionary::Convers
return true;
}
+
+
} // namespace blink
« no previous file with comments | « Source/bindings/core/v8/Dictionary.cpp ('k') | Source/bindings/modules/v8/DictionaryHelperForModules.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698