OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MOJO_PUBLIC_BINDINGS_JS_RUNNER_H_ | 5 #ifndef MOJO_PUBLIC_BINDINGS_JS_RUNNER_H_ |
6 #define MOJO_PUBLIC_BINDINGS_JS_RUNNER_H_ | 6 #define MOJO_PUBLIC_BINDINGS_JS_RUNNER_H_ |
7 | 7 |
8 #include "gin/runner.h" | 8 #include "gin/runner.h" |
9 #include "mojo/public/system/macros.h" | 9 #include "mojo/public/system/macros.h" |
10 | 10 |
11 namespace mojo { | 11 namespace mojo { |
12 namespace js { | 12 namespace js { |
13 | 13 |
14 class RunnerDelegate : public gin::RunnerDelegate { | 14 class RunnerDelegate : public gin::RunnerDelegate { |
15 public: | 15 public: |
16 RunnerDelegate(); | 16 RunnerDelegate(); |
17 virtual ~RunnerDelegate(); | 17 virtual ~RunnerDelegate(); |
18 | 18 |
19 virtual v8::Handle<v8::Object> CreateRootObject( | 19 virtual v8::Handle<v8::ObjectTemplate> GetGlobalTemplate( |
20 gin::Runner* runner) MOJO_OVERRIDE; | 20 gin::Runner* runner) MOJO_OVERRIDE; |
21 | 21 |
| 22 virtual void DidCreateContext(gin::Runner* runner) MOJO_OVERRIDE; |
| 23 |
22 private: | 24 private: |
23 MOJO_DISALLOW_COPY_AND_ASSIGN(RunnerDelegate); | 25 MOJO_DISALLOW_COPY_AND_ASSIGN(RunnerDelegate); |
24 }; | 26 }; |
25 | 27 |
26 } // namespace js | 28 } // namespace js |
27 } // namespace mojo | 29 } // namespace mojo |
28 | 30 |
29 #endif // MOJO_PUBLIC_BINDINGS_JS_RUNNER_H_ | 31 #endif // MOJO_PUBLIC_BINDINGS_JS_RUNNER_H_ |
OLD | NEW |