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

Unified Diff: sky/engine/tonic/dart_wrappable.h

Issue 936193005: Make it possible to inherit from any constructable host object (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Remove extra comment Created 5 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
Index: sky/engine/tonic/dart_wrappable.h
diff --git a/sky/engine/tonic/dart_wrappable.h b/sky/engine/tonic/dart_wrappable.h
index f070d7f50576ac9c4690b68f32a1dfc1193bca13..687a07ceb2e33145a36b83579902f467fbd82413 100644
--- a/sky/engine/tonic/dart_wrappable.h
+++ b/sky/engine/tonic/dart_wrappable.h
@@ -40,6 +40,7 @@ class DartWrappable {
virtual void AcceptDartGCVisitor(DartGCVisitor& visitor) const;
Dart_Handle CreateDartWrapper(DartState* dart_state);
+ void AssociateWithDartWrapper(Dart_NativeArguments args);
Dart_WeakPersistentHandle dart_wrapper() const { return dart_wrapper_; }
protected:
@@ -133,7 +134,7 @@ struct DartConverter<RefPtr<T>> {
};
template<typename T>
-static T* GetReceiver(Dart_NativeArguments args) {
+inline T* GetReceiver(Dart_NativeArguments args) {
intptr_t receiver;
Dart_Handle result = Dart_GetNativeReceiver(args, &receiver);
DCHECK(!Dart_IsError(result));

Powered by Google App Engine
This is Rietveld 408576698