Chromium Code Reviews| 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..cb732b374381d40caa0c5041047749f0e34afcec 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 > > { |
|
antonm
2012/01/19 14:05:49
nit: no need in space between ElementType and >
Nikolay
2012/01/19 15:08:46
Done.
|
| +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: |