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 |