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

Side by Side Diff: sky/viewer/script/script_runner.h

Issue 922893002: Merge the Sky Engine changes from the SkyDart branch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « sky/viewer/script/core.sky ('k') | sky/viewer/script/script_runner.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef SKY_VIEWER_SCRIPT_SCRIPT_RUNNER_H_
6 #define SKY_VIEWER_SCRIPT_SCRIPT_RUNNER_H_
7
8 #include "gin/runner.h"
9
10 namespace blink {
11 class WebFrame;
12 }
13
14 namespace sky {
15
16 class ScriptRunner : public gin::Runner {
17 public:
18 ScriptRunner(blink::WebFrame*, v8::Handle<v8::Context> context);
19 ~ScriptRunner();
20
21 virtual void Run(const std::string& source,
22 const std::string& resource_name) override;
23 virtual v8::Handle<v8::Value> Call(v8::Handle<v8::Function> function,
24 v8::Handle<v8::Value> receiver,
25 int argc,
26 v8::Handle<v8::Value> argv[]) override;
27 virtual gin::ContextHolder* GetContextHolder() override;
28
29 private:
30 blink::WebFrame* frame_;
31 gin::ContextHolder* context_holder_;
32
33 DISALLOW_COPY_AND_ASSIGN(ScriptRunner);
34 };
35
36 } // namespace sky
37
38 #endif // SKY_VIEWER_SCRIPT_SCRIPT_RUNNER_H_
OLDNEW
« no previous file with comments | « sky/viewer/script/core.sky ('k') | sky/viewer/script/script_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698