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

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

Issue 10331015: Remove ParameterAdapters 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_callback_header.template
diff --git a/lib/dom/templates/dom/native/cpp_callback_header.template b/lib/dom/templates/dom/native/cpp_callback_header.template
index 5ae8d909a2474e55cada7cfb3819183d83f451b1..d5b6a53b15cd525ace776270b770056c96538fe5 100644
--- a/lib/dom/templates/dom/native/cpp_callback_header.template
+++ b/lib/dom/templates/dom/native/cpp_callback_header.template
@@ -18,8 +18,10 @@ class Dart$(INTERFACE) : public $(INTERFACE), public ActiveDOMCallback {
public:
typedef $(INTERFACE) NativeType;
- static PassRefPtr<NativeType> toNative(Dart_Handle object, Dart_Handle& exception)
+ static PassRefPtr<NativeType> create(Dart_Handle object, DartUtilities::ConversionFlag flag, Dart_Handle& exception)
{
+ if (flag == DartUtilities::ConvertNullToDefaultValue && Dart_IsNull(object))
+ return 0;
return adoptRef(new Dart$(INTERFACE)(object, exception, DartUtilities::scriptExecutionContext()));
}
$HANDLERS
« 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