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

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

Issue 10206017: Do not use overloaded toDartValue for bindings classes. (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
« no previous file with comments | « 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 31000c9fafc4fc6b8f04883aae61dbf50e6a366d..c5903dd47e27deff6485d3378232a5c66c9a6a02 100644
--- a/lib/dom/templates/dom/native/cpp_header.template
+++ b/lib/dom/templates/dom/native/cpp_header.template
@@ -19,15 +19,15 @@ struct Dart$INTERFACE {
typedef $NATIVE_TRAITS_TYPE NativeTraits;
$TO_NATIVE
+$TO_DART
+ static Dart_Handle toDart(PassRefPtr< $WEBCORE_CLASS_NAME > value)
+ {
+ return toDart(value.get());
+ }
+
static Dart_NativeFunction resolver(Dart_Handle name, int argumentCount);
};
-$TO_DART
-inline Dart_Handle toDartValue(PassRefPtr< $WEBCORE_CLASS_NAME > value)
-{
- return toDartValue(value.get());
-}
-
namespace Dart$(INTERFACE)Internal {
$DECLARATIONS
}
« no previous file with comments | « lib/dom/scripts/systemnative.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698