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

Unified Diff: lib/dom/templates/dom/native/cpp_header.template

Issue 10155027: Support custom to native conversions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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
« lib/dom/scripts/systemnative.py ('K') | « lib/dom/scripts/systemnative.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dom/templates/dom/native/cpp_header.template
diff --git a/lib/dom/templates/dom/native/cpp_header.template b/lib/dom/templates/dom/native/cpp_header.template
index 315588a25f72b79d3d04a443cb9d4861034d2dcc..31000c9fafc4fc6b8f04883aae61dbf50e6a366d 100644
--- a/lib/dom/templates/dom/native/cpp_header.template
+++ b/lib/dom/templates/dom/native/cpp_header.template
@@ -18,15 +18,11 @@ struct Dart$INTERFACE {
typedef $WEBCORE_CLASS_NAME NativeType;
typedef $NATIVE_TRAITS_TYPE NativeTraits;
- static PassRefPtr<NativeType> toNative(Dart_Handle handle, Dart_Handle& exception)
- {
- return DartDOMWrapper::unwrapDartWrapper<Dart$INTERFACE>(handle, exception);
- }
-
+$TO_NATIVE
static Dart_NativeFunction resolver(Dart_Handle name, int argumentCount);
};
-$TO_DART_VALUE
+$TO_DART
inline Dart_Handle toDartValue(PassRefPtr< $WEBCORE_CLASS_NAME > value)
{
return toDartValue(value.get());
« lib/dom/scripts/systemnative.py ('K') | « lib/dom/scripts/systemnative.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698