| OLD | NEW |
| 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/framework/shell.dart' as shell; |
| 9 import 'package:sky/framework/theme2/colors.dart' as colors; | 9 import 'package:sky/theme2/colors.dart' as colors; |
| 10 import 'package:sky/framework/theme2/edges.dart'; | 10 import 'package:sky/theme2/edges.dart'; |
| 11 import 'package:sky/framework/theme2/typography.dart' as typography; | 11 import 'package:sky/theme2/typography.dart' as typography; |
| 12 import 'package:sky/framework/widgets/material.dart'; | 12 import 'package:sky/widgets/material.dart'; |
| 13 import 'package:sky/framework/widgets/raised_button.dart'; | 13 import 'package:sky/widgets/raised_button.dart'; |
| 14 import 'package:sky/framework/widgets/scaffold.dart'; | 14 import 'package:sky/widgets/scaffold.dart'; |
| 15 import 'package:sky/framework/widgets/tool_bar.dart'; | 15 import 'package:sky/widgets/tool_bar.dart'; |
| 16 import 'package:sky/framework/widgets/basic.dart'; | 16 import 'package:sky/widgets/basic.dart'; |
| 17 | 17 |
| 18 void launch(String relativeUrl) { | 18 void launch(String relativeUrl) { |
| 19 Uri url = Uri.base.resolve(relativeUrl); | 19 Uri url = Uri.base.resolve(relativeUrl); |
| 20 url = url.replace(scheme: 'sky'); | 20 url = url.replace(scheme: 'sky'); |
| 21 | 21 |
| 22 ActivityManagerProxy activityManager = new ActivityManagerProxy.unbound(); | 22 ActivityManagerProxy activityManager = new ActivityManagerProxy.unbound(); |
| 23 Intent intent = new Intent() | 23 Intent intent = new Intent() |
| 24 ..action = 'android.intent.action.VIEW' | 24 ..action = 'android.intent.action.VIEW' |
| 25 ..url = url.toString(); | 25 ..url = url.toString(); |
| 26 shell.requestService(null, activityManager); | 26 shell.requestService(null, activityManager); |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 justifyContent: FlexJustifyContent.spaceAround | 74 justifyContent: FlexJustifyContent.spaceAround |
| 75 ) | 75 ) |
| 76 ) | 76 ) |
| 77 ); | 77 ); |
| 78 } | 78 } |
| 79 } | 79 } |
| 80 | 80 |
| 81 void main() { | 81 void main() { |
| 82 new SkyHome(); | 82 new SkyHome(); |
| 83 } | 83 } |
| OLD | NEW |