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

Side by Side Diff: third_party/mojo_services/src/public/js/shell.js

Issue 954643002: Update mojo sdk to rev 3d23dae011859a2aae49f1d1adde705c8e85d819 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use run_renderer_in_process() Created 5 years, 9 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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 define("mojo/services/public/js/shell", [ 5 define("mojo/services/public/js/shell", [
6 "mojo/public/js/bindings", 6 "mojo/public/js/bindings",
7 "mojo/public/js/core", 7 "mojo/public/js/core",
8 "mojo/public/js/connection", 8 "mojo/public/js/connection",
9 "mojo/public/interfaces/application/shell.mojom", 9 "mojo/public/interfaces/application/shell.mojom",
10 "mojo/public/interfaces/application/service_provider.mojom", 10 "mojo/public/interfaces/application/service_provider.mojom",
(...skipping 23 matching lines...) Expand all
34 application.proxy = servicesProxy; 34 application.proxy = servicesProxy;
35 }, 35 },
36 function(exposedServicesStub) { 36 function(exposedServicesStub) {
37 application.stub = exposedServicesStub; 37 application.stub = exposedServicesStub;
38 StubBindings(exposedServicesStub).delegate = application; 38 StubBindings(exposedServicesStub).delegate = application;
39 }); 39 });
40 this.applications_.set(url, application); 40 this.applications_.set(url, application);
41 return application; 41 return application;
42 } 42 }
43 43
44 connectToService(url, service, client) { 44 connectToService(url, service) {
45 return this.connectToApplication(url).requestService(service, client); 45 return this.connectToApplication(url).requestService(service);
46 }; 46 };
47 47
48 close() { 48 close() {
49 this.applications_.forEach(function(application, url) { 49 this.applications_.forEach(function(application, url) {
50 application.close(); 50 application.close();
51 }); 51 });
52 ProxyBindings(this.shellProxy).close(); 52 ProxyBindings(this.shellProxy).close();
53 this.applications_.clear(); 53 this.applications_.clear();
54 } 54 }
55 } 55 }
56 56
57 var exports = {}; 57 var exports = {};
58 exports.Shell = Shell; 58 exports.Shell = Shell;
59 return exports; 59 return exports;
60 }); 60 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698