summaryrefslogtreecommitdiffstats
path: root/gin/function_template.h
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-21 17:54:37 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-21 17:54:37 +0000
commit2491f1422adfe41202cfa49194d7628ec2651a74 (patch)
tree4fced832e3dbf9bc7eb37ad5c0d3d29c591b1d3c /gin/function_template.h
parent91b82ad9710b98c8bb03cba768c9bd44f259a1a7 (diff)
downloadchromium_src-2491f1422adfe41202cfa49194d7628ec2651a74.zip
chromium_src-2491f1422adfe41202cfa49194d7628ec2651a74.tar.gz
chromium_src-2491f1422adfe41202cfa49194d7628ec2651a74.tar.bz2
Add a simple one shot and repeating timer API for Mojo.js.
Various further rework of bindings stuff to facilitate. Review URL: https://codereview.chromium.org/120043008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242284 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gin/function_template.h')
-rw-r--r--gin/function_template.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gin/function_template.h b/gin/function_template.h
index 202fe6f..31f67fa 100644
--- a/gin/function_template.h
+++ b/gin/function_template.h
@@ -270,6 +270,13 @@ inline bool GetNextArgument(Arguments* args, int create_flags, bool is_first,
return true;
}
+// It's common for clients to just need the isolate, so we make that easy.
+inline bool GetNextArgument(Arguments* args, int create_flags,
+ bool is_first, v8::Isolate** result) {
+ *result = args->isolate();
+ return true;
+}
+
// DispatchToCallback converts all the JavaScript arguments to C++ types and
// invokes the base::Callback.