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

Side by Side Diff: services/js/js_app_shell.h

Issue 757703002: Creates a JavaScript Applicaiton (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Changes per review feedback Created 6 years 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
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 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 explicit JSAppShell(JSApp* js_app);
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698