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

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

Issue 1414483010: Dart: Use a RawReceivePort to receive events for Mojo handles. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « mojo/public/dart/mojo/lib/src/stub.dart ('k') | services/dart/test/pingpong/lib/main.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 import 'dart:async'; 5 import 'dart:async';
6 6
7 import 'package:mojo/application.dart'; 7 import 'package:mojo/application.dart';
8 import 'package:mojo/bindings.dart'; 8 import 'package:mojo/bindings.dart';
9 import 'package:mojo/core.dart'; 9 import 'package:mojo/core.dart';
10 import 'package:service_test_interfaces/test/echo_service.mojom.dart'; 10 import 'package:service_test_interfaces/test/echo_service.mojom.dart';
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 ApplicationConnection connection) { 42 ApplicationConnection connection) {
43 connection.provideService( 43 connection.provideService(
44 EchoServiceName, (endpoint) => new EchoServiceImpl(this, endpoint)); 44 EchoServiceName, (endpoint) => new EchoServiceImpl(this, endpoint));
45 } 45 }
46 } 46 }
47 47
48 main(List args) { 48 main(List args) {
49 MojoHandle appHandle = new MojoHandle(args[0]); 49 MojoHandle appHandle = new MojoHandle(args[0]);
50 String url = args[1]; 50 String url = args[1];
51 new EchoApplication.fromHandle(appHandle) 51 new EchoApplication.fromHandle(appHandle)
52 ..onError = (() { 52 ..onError = ((_) {
53 MojoHandle.reportLeakedHandles(); 53 MojoHandle.reportLeakedHandles();
54 }); 54 });
55 } 55 }
OLDNEW
« no previous file with comments | « mojo/public/dart/mojo/lib/src/stub.dart ('k') | services/dart/test/pingpong/lib/main.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698