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

Unified Diff: Source/bindings/dart/scripts/templates/interface_h.template

Issue 668733002: C++ overload resolution in bindings layer (Closed) Base URL: svn://svn.chromium.org/blink/branches/dart/dartium
Patch Set: Rebase fixups Created 6 years, 2 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/bindings/dart/scripts/templates/interface_h.template
diff --git a/Source/bindings/dart/scripts/templates/interface_h.template b/Source/bindings/dart/scripts/templates/interface_h.template
index 0d03c03b5ea7c1d7be0af88afb9ebdbe878c3ed0..b2f81db26304fefa53b2f240ea1cb52421fa88fc 100644
--- a/Source/bindings/dart/scripts/templates/interface_h.template
+++ b/Source/bindings/dart/scripts/templates/interface_h.template
@@ -91,6 +91,11 @@ struct {{dart_class}} {
return DartDOMWrapper::unwrapDartWrapper<{{dart_class}}>(args, index, exception);
}
+ static bool hasInstance(Dart_Handle wrapper)
+ {
+ return DartDOMWrapper::subtypeOf(wrapper, dartClassId);
+ }
+
static Dart_Handle toDart(NativeType* value)
{
if (!value)

Powered by Google App Engine
This is Rietveld 408576698