OLD | NEW |
---|---|
(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 MOJO_SERVICES_JS_JS_APP_SHELL_H_ | |
6 #define MOJO_SERVICES_JS_JS_APP_SHELL_H_ | |
7 | |
8 #include "gin/handle.h" | |
9 #include "gin/wrappable.h" | |
10 #include "mojo/edk/js/handle.h" | |
11 | |
12 namespace mojo { | |
13 namespace js { | |
14 | |
15 class JSApp; | |
16 | |
17 class JSAppShell : public gin::Wrappable<JSAppShell> { | |
18 public: | |
19 static gin::WrapperInfo kWrapperInfo; | |
20 static gin::Handle<JSAppShell> Create(v8::Isolate* isolate, JSApp* js_app); | |
21 | |
22 private: | |
23 JSAppShell(JSApp* js_app); | |
abarth-chromium
2014/11/24 23:47:24
explicit
hansmuller
2014/11/25 00:31:55
Done.
| |
24 ~JSAppShell() override; | |
25 | |
26 // gin::WrappableBase | |
27 gin::ObjectTemplateBuilder GetObjectTemplateBuilder(v8::Isolate* isolate) | |
28 override; | |
29 | |
30 // Bound to JS method "connectToApplication". | |
31 void ConnectToApplication( | |
32 const std::string& application_url, mojo::Handle service_provider); | |
33 | |
34 JSApp* js_app_; | |
35 | |
36 DISALLOW_COPY_AND_ASSIGN(JSAppShell); | |
37 }; | |
38 | |
39 } // namespace js | |
40 } // namespace mojo | |
41 | |
42 #endif // MOJO_SERVICES_JS_JS_APP_SHELL_H_ | |
OLD | NEW |