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

Unified Diff: third_party/WebKit/Source/platform/mojo/MojoHelper.h

Issue 1808203005: [OnionSoup] Moving VR service from content to Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reworked as per new comments. Fixed build errors! Created 4 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
Index: third_party/WebKit/Source/platform/mojo/MojoHelper.h
diff --git a/third_party/WebKit/Source/platform/mojo/MojoHelper.h b/third_party/WebKit/Source/platform/mojo/MojoHelper.h
index 74f931d2fa4ad9ed3a76b5f2a15569d0298bddb2..e1c5026d4974417aeba7f4ce5c819ad3f855b757 100644
--- a/third_party/WebKit/Source/platform/mojo/MojoHelper.h
+++ b/third_party/WebKit/Source/platform/mojo/MojoHelper.h
@@ -40,6 +40,13 @@ base::Callback<R(Args...)> createBaseCallback(PassOwnPtr<Function<R(Args...)>> f
return base::Bind(&internal::CallWTFFunction<R, Args...>, base::Owned(functor.leakPtr()));
}
+template <typename Class, typename ReturnType, typename BoundArgs, typename... Args>
+mojo::Callback<ReturnType(Args...)>
+sameThreadBindForMojoWithBoundArgs(ReturnType (Class::*method)(BoundArgs*, Args...), Class* instance, BoundArgs* bound)
haraken 2016/04/27 06:51:07 I want to avoid introducing this method (because U
+{
+ return base::Bind(method, base::Unretained(instance), base::Unretained(bound));
+}
+
} // namespace blink
namespace mojo {

Powered by Google App Engine
This is Rietveld 408576698