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

Side by Side Diff: mojo/public/dart/src/application.dart

Issue 905583002: Pass the final URL an app was loaded from to the app in Initialize(). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: o 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
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 part of application; 5 part of application;
6 6
7 class _ApplicationImpl extends application_mojom.Application { 7 class _ApplicationImpl extends application_mojom.Application {
8 shell_mojom.ShellProxy shell; 8 shell_mojom.ShellProxy shell;
9 Application _application; 9 Application _application;
10 10
11 _ApplicationImpl( 11 _ApplicationImpl(
12 Application application, core.MojoMessagePipeEndpoint endpoint) 12 Application application, core.MojoMessagePipeEndpoint endpoint)
13 : _application = application, super(endpoint) { 13 : _application = application, super(endpoint) {
14 super.delegate = this; 14 super.delegate = this;
15 } 15 }
16 16
17 _ApplicationImpl.fromHandle(Application application, core.MojoHandle handle) 17 _ApplicationImpl.fromHandle(Application application, core.MojoHandle handle)
18 : _application = application, super.fromHandle(handle) { 18 : _application = application, super.fromHandle(handle) {
19 super.delegate = this; 19 super.delegate = this;
20 } 20 }
21 21
22 void initialize(shell_mojom.ShellProxy shellProxy, List<String> args) { 22 void initialize(shell_mojom.ShellProxy shellProxy, List<String> args, String u rl) {
23 assert(shell == null); 23 assert(shell == null);
24 shell = shellProxy; 24 shell = shellProxy;
25 _application.initialize(args); 25 _application.initialize(args);
26 } 26 }
27 27
28 void acceptConnection( 28 void acceptConnection(
29 String requestorUrl, 29 String requestorUrl,
30 service_provider.ServiceProviderStub services, 30 service_provider.ServiceProviderStub services,
31 service_provider.ServiceProviderProxy exposedServices) => 31 service_provider.ServiceProviderProxy exposedServices) =>
32 _application._acceptConnection(requestorUrl, services, exposedServices); 32 _application._acceptConnection(requestorUrl, services, exposedServices);
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 String requestorUrl, 126 String requestorUrl,
127 service_provider.ServiceProviderStub services, 127 service_provider.ServiceProviderStub services,
128 service_provider.ServiceProviderProxy exposedServices) { 128 service_provider.ServiceProviderProxy exposedServices) {
129 var serviceProvider = new ServiceProvider(services, exposedServices); 129 var serviceProvider = new ServiceProvider(services, exposedServices);
130 _serviceProviders.add(serviceProvider); 130 _serviceProviders.add(serviceProvider);
131 acceptConnection(requestorUrl, serviceProvider); 131 acceptConnection(requestorUrl, serviceProvider);
132 } 132 }
133 133
134 void acceptConnection(String requestorUrl, ServiceProvider serviceProvider) {} 134 void acceptConnection(String requestorUrl, ServiceProvider serviceProvider) {}
135 } 135 }
OLDNEW
« no previous file with comments | « mojo/public/cpp/application/lib/application_test_base.cc ('k') | mojo/public/interfaces/application/application.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698