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

Unified Diff: examples/dart/console_example/main.dart

Issue 959993002: Dart: Removes name conflicts from generated bindings. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | examples/dart/hello_world/hello/main.dart » ('j') | mojo/dart/test/validation_test.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/dart/console_example/main.dart
diff --git a/examples/dart/console_example/main.dart b/examples/dart/console_example/main.dart
index 70b367119fee1b81257339eaf58bcac72f87e355..79f54c42206936909714ff8e9a1314ba4f5e039a 100644
--- a/examples/dart/console_example/main.dart
+++ b/examples/dart/console_example/main.dart
@@ -16,7 +16,7 @@ class ConsoleApplication extends Application {
void initialize(List<String> args, String url) {
_proxy = new ConsoleProxy.unbound();
- connectToService("mojo:console", _proxy);
+ connectToService("mojo:console", ConsoleRequest(_proxy));
run();
}
@@ -24,13 +24,12 @@ class ConsoleApplication extends Application {
var result = await _proxy.readLine();
await _proxy.printLines([result.line]);
- _proxy.close();
+ ConsoleProxyClose(_proxy);
close();
}
}
main(List args) {
var appHandle = new MojoHandle(args[0]);
- var consoleApplication = new ConsoleApplication.fromHandle(appHandle);
- consoleApplication.listen();
+ new ConsoleApplication.fromHandle(appHandle);
}
« no previous file with comments | « no previous file | examples/dart/hello_world/hello/main.dart » ('j') | mojo/dart/test/validation_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698