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

Side by Side Diff: services/dart/test/echo.dart

Issue 878883002: Dart: Adjusts class Application for removal of Application/Shell Client= (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 #!mojo mojo:dart_content_handler 1 #!mojo mojo:dart_content_handler
2 2
3 // Copyright 2014 The Chromium Authors. All rights reserved. 3 // Copyright 2014 The Chromium Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style license that can be 4 // Use of this source code is governed by a BSD-style license that can be
5 // found in the LICENSE file. 5 // found in the LICENSE file.
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:mojo_application'; 8 import 'dart:mojo_application';
9 import 'dart:mojo_bindings'; 9 import 'dart:mojo_bindings';
10 import 'dart:mojo_core'; 10 import 'dart:mojo_core';
(...skipping 17 matching lines...) Expand all
28 } 28 }
29 29
30 class EchoApplication extends Application { 30 class EchoApplication extends Application {
31 EchoApplication.fromHandle(MojoHandle handle) : super.fromHandle(handle); 31 EchoApplication.fromHandle(MojoHandle handle) : super.fromHandle(handle);
32 32
33 Function stubFactoryClosure() => 33 Function stubFactoryClosure() =>
34 (endpoint) => new EchoServiceImpl(this, endpoint); 34 (endpoint) => new EchoServiceImpl(this, endpoint);
35 } 35 }
36 36
37 main(List args) { 37 main(List args) {
38 MojoHandle shellHandle = new MojoHandle(args[0]); 38 MojoHandle appHandle = new MojoHandle(args[0]);
39 String url = args[1]; 39 String url = args[1];
40 var echoApplication = new EchoApplication.fromHandle(shellHandle); 40 var echoApplication = new EchoApplication.fromHandle(appHandle);
41 echoApplication.listen(); 41 echoApplication.listen();
42 } 42 }
OLDNEW
« no previous file with comments | « mojo/public/tools/bindings/generators/mojom_dart_generator.py ('k') | services/dart/test/pingpong.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698