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

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

Issue 9231022: WebGL support. (Closed) Base URL: svn://svn.chromium.org/multivm/trunk/webkit
Patch Set: Final version. 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
« no previous file with comments | « no previous file | Source/WebCore/bindings/dart/DartUtilities.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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:
« no previous file with comments | « no previous file | Source/WebCore/bindings/dart/DartUtilities.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698