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

Unified Diff: tools/dom/templates/html/dartium/cpp_callback_header.template

Issue 150783005: Fixes for 1750 roll (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: More fixes for 1750 Created 6 years, 10 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 | « tools/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: tools/dom/templates/html/dartium/cpp_callback_header.template
diff --git a/tools/dom/templates/html/dartium/cpp_callback_header.template b/tools/dom/templates/html/dartium/cpp_callback_header.template
index 001207fe902caa2510d0fd1f1bb4278e6274c27b..2a245c41536b6b2b6e0aa74220aa36fcb44d5228 100644
--- a/tools/dom/templates/html/dartium/cpp_callback_header.template
+++ b/tools/dom/templates/html/dartium/cpp_callback_header.template
@@ -16,31 +16,31 @@ namespace WebCore {
class Dart$(INTERFACE) : public $(INTERFACE), public ActiveDOMCallback {
public:
- typedef $(INTERFACE) NativeType;
+ typedef Dart$(INTERFACE) NativeType;
- static PassRefPtr<NativeType> create(Dart_Handle object, Dart_Handle& exception)
+ static PassOwnPtr<NativeType> create(Dart_Handle object, Dart_Handle& exception)
{
- return adoptRef(new Dart$(INTERFACE)(object, exception, DartUtilities::scriptExecutionContext()));
+ return adoptPtr(new Dart$(INTERFACE)(object, exception, DartUtilities::scriptExecutionContext()));
}
- static PassRefPtr<NativeType> createWithNullCheck(Dart_Handle object, Dart_Handle& exception)
+ static PassOwnPtr<NativeType> createWithNullCheck(Dart_Handle object, Dart_Handle& exception)
{
if (Dart_IsNull(object))
- return 0;
+ return PassOwnPtr<NativeType>();
return create(object, exception);
}
- static PassRefPtr<NativeType> create(Dart_NativeArguments args, int idx, Dart_Handle& exception)
+ static PassOwnPtr<NativeType> create(Dart_NativeArguments args, int idx, Dart_Handle& exception)
{
Dart_Handle object = Dart_GetNativeArgument(args, idx);
return create(object, exception);
}
- static PassRefPtr<NativeType> createWithNullCheck(Dart_NativeArguments args, int idx, Dart_Handle& exception)
+ static PassOwnPtr<NativeType> createWithNullCheck(Dart_NativeArguments args, int idx, Dart_Handle& exception)
{
Dart_Handle object = Dart_GetNativeArgument(args, idx);
if (Dart_IsNull(object))
- return 0;
+ return PassOwnPtr<NativeType>();
return create(object, exception);
}
« no previous file with comments | « tools/dom/scripts/systemnative.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698