Index: third_party/WebKit/Source/platform/threading/BindForMojo.h |
diff --git a/third_party/WebKit/Source/platform/threading/BindForMojo.h b/third_party/WebKit/Source/platform/threading/BindForMojo.h |
index 606c11b207fc8c2c86ff76cba68da35f0eb08cfd..2dcb511c2f9bd9141b58ee8ca527da3c11aaaf3d 100644 |
--- a/third_party/WebKit/Source/platform/threading/BindForMojo.h |
+++ b/third_party/WebKit/Source/platform/threading/BindForMojo.h |
@@ -24,6 +24,13 @@ sameThreadBindForMojo(ReturnType (Class::*method)(Args...), Class* instance) |
return base::Bind(method, base::Unretained(instance)); |
} |
+template <typename Class, typename ReturnType, typename BoundArgs, typename... Args> |
+mojo::Callback<ReturnType(Args...)> |
+sameThreadBindForMojoWithBoundArgs(ReturnType (Class::*method)(BoundArgs*, Args...), Class* instance, BoundArgs* bound) |
+{ |
+ return base::Bind(method, base::Unretained(instance), base::Unretained(bound)); |
Yuki
2016/03/22 07:15:03
In general, this is not a good idea because it's n
RaviKasibhatla
2016/03/23 15:20:50
In GetDevices, the original Web callback is being
Yuki
2016/03/25 09:49:04
I'm talking about not only VRGetDevicesRequest's c
haraken
2016/03/25 09:56:36
Dcheng and Dana are working on it (https://bugs.ch
|
+} |
+ |
} // namespace blink |
#endif // BindForMojo_h |