diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-21 17:54:37 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-21 17:54:37 +0000 |
commit | 2491f1422adfe41202cfa49194d7628ec2651a74 (patch) | |
tree | 4fced832e3dbf9bc7eb37ad5c0d3d29c591b1d3c /gin/function_template.h.pump | |
parent | 91b82ad9710b98c8bb03cba768c9bd44f259a1a7 (diff) | |
download | chromium_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.pump')
-rw-r--r-- | gin/function_template.h.pump | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gin/function_template.h.pump b/gin/function_template.h.pump index 90ae516..4870faa 100644 --- a/gin/function_template.h.pump +++ b/gin/function_template.h.pump @@ -141,6 +141,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. |