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

Side by Side Diff: sky/sdk/home.dart

Issue 1221883002: Remove package:sky/framework (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 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 | « sky/sdk/example/stocks/lib/stock_menu.dart ('k') | sky/sdk/lib/editing/keyboard.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 import 'dart:sky'; 5 import 'dart:sky';
6 6
7 import 'package:mojom/intents/intents.mojom.dart'; 7 import 'package:mojom/intents/intents.mojom.dart';
8 import 'package:sky/framework/shell.dart' as shell; 8 import 'package:sky/mojo/shell.dart' as shell;
9 import 'package:sky/painting/box_painter.dart'; 9 import 'package:sky/painting/box_painter.dart';
10 import 'package:sky/theme/colors.dart' as colors; 10 import 'package:sky/theme/colors.dart' as colors;
11 import 'package:sky/theme/edges.dart'; 11 import 'package:sky/theme/edges.dart';
12 import 'package:sky/theme/typography.dart' as typography; 12 import 'package:sky/theme/typography.dart' as typography;
13 import 'package:sky/widgets/basic.dart';
13 import 'package:sky/widgets/card.dart'; 14 import 'package:sky/widgets/card.dart';
14 import 'package:sky/widgets/fixed_height_scrollable.dart'; 15 import 'package:sky/widgets/fixed_height_scrollable.dart';
15 import 'package:sky/widgets/flat_button.dart'; 16 import 'package:sky/widgets/flat_button.dart';
16 import 'package:sky/widgets/material.dart'; 17 import 'package:sky/widgets/material.dart';
17 import 'package:sky/widgets/scaffold.dart'; 18 import 'package:sky/widgets/scaffold.dart';
18 import 'package:sky/widgets/theme.dart'; 19 import 'package:sky/widgets/theme.dart';
19 import 'package:sky/widgets/tool_bar.dart'; 20 import 'package:sky/widgets/tool_bar.dart';
20 import 'package:sky/widgets/basic.dart';
21 21
22 void launch(String relativeUrl) { 22 void launch(String relativeUrl) {
23 Uri url = Uri.base.resolve(relativeUrl); 23 Uri url = Uri.base.resolve(relativeUrl);
24 url = url.replace(scheme: 'sky'); 24 url = url.replace(scheme: 'sky');
25 25
26 ActivityManagerProxy activityManager = new ActivityManagerProxy.unbound(); 26 ActivityManagerProxy activityManager = new ActivityManagerProxy.unbound();
27 Intent intent = new Intent() 27 Intent intent = new Intent()
28 ..action = 'android.intent.action.VIEW' 28 ..action = 'android.intent.action.VIEW'
29 ..url = url.toString(); 29 ..url = url.toString();
30 shell.requestService(null, activityManager); 30 shell.requestService(null, activityManager);
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 child: new DemoList() 165 child: new DemoList()
166 ) 166 )
167 ) 167 )
168 ); 168 );
169 } 169 }
170 } 170 }
171 171
172 void main() { 172 void main() {
173 runApp(new SkyHome()); 173 runApp(new SkyHome());
174 } 174 }
OLDNEW
« no previous file with comments | « sky/sdk/example/stocks/lib/stock_menu.dart ('k') | sky/sdk/lib/editing/keyboard.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698