diff options
author | abarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-25 02:19:34 +0000 |
---|---|---|
committer | abarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-25 02:19:34 +0000 |
commit | 0d72f004efa9898b428b9b289a8d63d2427e2828 (patch) | |
tree | f749189620fba034c4e09aa5e64c537eba778e61 /gin/runner.h | |
parent | 6a36eff422ce0dfaf8bcb75585863c38817d219d (diff) | |
download | chromium_src-0d72f004efa9898b428b9b289a8d63d2427e2828.zip chromium_src-0d72f004efa9898b428b9b289a8d63d2427e2828.tar.gz chromium_src-0d72f004efa9898b428b9b289a8d63d2427e2828.tar.bz2 |
[Mojo] Almost connect mojo_js with hello_world_service
This CL connects mojo_js with hello_world_service. After this
CL, the JavaScript and C++ implementations have reached
parity.
BUG=317398
Review URL: https://codereview.chromium.org/82953004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237018 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gin/runner.h')
-rw-r--r-- | gin/runner.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gin/runner.h b/gin/runner.h index e664c3d..614b60d 100644 --- a/gin/runner.h +++ b/gin/runner.h @@ -23,8 +23,8 @@ class RunnerDelegate { // Returns the template for the global object. virtual v8::Handle<v8::ObjectTemplate> GetGlobalTemplate(Runner* runner); virtual void DidCreateContext(Runner* runner); - virtual void WillRunScript(Runner* runner, v8::Handle<v8::Script> script); - virtual void DidRunScript(Runner* runner, v8::Handle<v8::Script> script); + virtual void WillRunScript(Runner* runner); + virtual void DidRunScript(Runner* runner); virtual void UnhandledException(Runner* runner, TryCatch& try_catch); }; @@ -36,6 +36,11 @@ class Runner : public ContextHolder { void Run(const std::string& script); void Run(v8::Handle<v8::Script> script); + v8::Handle<v8::Value> Call(v8::Handle<v8::Function> function, + v8::Handle<v8::Value> receiver, + int argc, + v8::Handle<v8::Value> argv[]); + v8::Handle<v8::Object> global() const { return context()->Global(); } |