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

Side by Side Diff: examples/dart/hello_world/world/main.dart

Issue 951783004: Dart: Renames dart:mojo_blah -> mojo:blah (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 unified diff | Download patch
« no previous file with comments | « examples/dart/hello_world/hello/main.dart ('k') | examples/dart/wget/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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 // This app is run by examples/dart/hello_world/hello. 5 // This app is run by examples/dart/hello_world/hello.
6 6
7 import 'dart:mojo_application'; 7 import 'mojo:application';
8 import 'dart:mojo_bindings'; 8 import 'mojo:bindings';
9 import 'dart:mojo_core'; 9 import 'mojo:core';
10 10
11 class World extends Application { 11 class World extends Application {
12 World.fromHandle(MojoHandle handle) : super.fromHandle(handle); 12 World.fromHandle(MojoHandle handle) : super.fromHandle(handle);
13 13
14 void initialize(List<String> args, String url) { 14 void initialize(List<String> args, String url) {
15 print("$url World"); 15 print("$url World");
16 close(); 16 close();
17 } 17 }
18 } 18 }
19 19
20 main(List args) { 20 main(List args) {
21 MojoHandle appHandle = new MojoHandle(args[0]); 21 MojoHandle appHandle = new MojoHandle(args[0]);
22 var world = new World.fromHandle(appHandle); 22 var world = new World.fromHandle(appHandle);
23 world.listen(); 23 world.listen();
24 } 24 }
OLDNEW
« no previous file with comments | « examples/dart/hello_world/hello/main.dart ('k') | examples/dart/wget/main.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698