| Index: Source/WebCore/bindings/dart/DartDOMWrapper.h
|
| diff --git a/Source/WebCore/bindings/dart/DartDOMWrapper.h b/Source/WebCore/bindings/dart/DartDOMWrapper.h
|
| index 162b0f2cb34dce646b998d820a8f04d0611ec0f3..72cf66bb5723879931e31a46b916c48475da5b16 100644
|
| --- a/Source/WebCore/bindings/dart/DartDOMWrapper.h
|
| +++ b/Source/WebCore/bindings/dart/DartDOMWrapper.h
|
| @@ -448,6 +448,20 @@ public:
|
| };
|
| #endif // ENABLE(SVG)
|
|
|
| +template <class ElementType>
|
| +class ParameterAdapter< Vector<ElementType> > : public ParameterAdapterBase< Vector<ElementType> > {
|
| +public:
|
| + explicit ParameterAdapter(Dart_Handle handle)
|
| + {
|
| + Dart_Handle exception = 0;
|
| + DartUtilities::dartListToVector(handle, this->m_value, exception);
|
| + if (exception)
|
| + this->setException(exception);
|
| + }
|
| + Vector<ElementType>* operator->() { return &this->m_value; }
|
| + ElementType& operator[](size_t i) { return this->m_value[i]; }
|
| +};
|
| +
|
| template <class NativeValue, class DartBindingsClass>
|
| class ParameterAdapter< RefPtr<NativeValue>, DartBindingsClass > : public ParameterAdapterBase< RefPtr<NativeValue> > {
|
| public:
|
|
|