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

Unified Diff: Source/WebCore/bindings/dart/DartDOMWrapper.h

Issue 9231022: WebGL support. (Closed) Base URL: svn://svn.chromium.org/multivm/trunk/webkit
Patch Set: Review feedback. Created 8 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
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:
« no previous file with comments | « no previous file | Source/WebCore/bindings/dart/DartUtilities.h » ('j') | Source/WebCore/bindings/dart/DartUtilities.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698