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

Side by Side Diff: sky/sdk/README.md

Issue 1173703002: Move image loading out of C++ into Dart (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rename fetchMojo to fetchUrl Created 5 years, 6 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/examples/stocks2/lib/stock_data.dart ('k') | sky/sdk/lib/framework/net/fetch.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 Contributing 1 Contributing
2 ============ 2 ============
3 3
4 [sky_sdk](https://github.com/domokit/sky_sdk) is generated from the 4 [sky_sdk](https://github.com/domokit/sky_sdk) is generated from the
5 [mojo repository](https://github.com/domokit/mojo) using 5 [mojo repository](https://github.com/domokit/mojo) using
6 [deploy_sdk.py](https://github.com/domokit/mojo/blob/master/sky/tools/deploy_sdk .py) 6 [deploy_sdk.py](https://github.com/domokit/mojo/blob/master/sky/tools/deploy_sdk .py)
7 Static files (including this README.md) are located under 7 Static files (including this README.md) are located under
8 [sky/sdk](https://github.com/domokit/mojo/tree/master/sky/sdk). Pull 8 [sky/sdk](https://github.com/domokit/mojo/tree/master/sky/sdk). Pull
9 requests and issue reports are glady accepted at the 9 requests and issue reports are glady accepted at the
10 [mojo repository](https://github.com/domokit/mojo)! 10 [mojo repository](https://github.com/domokit/mojo)!
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 example, you can access the network using the `network_service.mojom` interface. 102 example, you can access the network using the `network_service.mojom` interface.
103 Although you can use these low-level interfaces directly, you might prefer to 103 Although you can use these low-level interfaces directly, you might prefer to
104 access these services via libraries in the framework. For example, the 104 access these services via libraries in the framework. For example, the
105 `fetch.dart` library wraps the underlying `network_service.mojom` in an 105 `fetch.dart` library wraps the underlying `network_service.mojom` in an
106 ergonomic interface: 106 ergonomic interface:
107 107
108 ```dart 108 ```dart
109 import 'package:sky/framework/net/fetch.dart'; 109 import 'package:sky/framework/net/fetch.dart';
110 110
111 main() async { 111 main() async {
112 Response response = await fetch('example.txt'); 112 Response response = await fetchBody('example.txt');
113 print(response.bodyAsString()); 113 print(response.bodyAsString());
114 } 114 }
115 ``` 115 ```
116 116
117 Set up your computer 117 Set up your computer
118 -------------------- 118 --------------------
119 119
120 1. Install the Dart SDK: 120 1. Install the Dart SDK:
121 - https://www.dartlang.org/tools/download.html 121 - https://www.dartlang.org/tools/download.html
122 122
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 [Keyboard](https://github.com/domokit/mojo/blob/master/mojo/services/keyboard/pu blic/interfaces/keyboard.mojom) 214 [Keyboard](https://github.com/domokit/mojo/blob/master/mojo/services/keyboard/pu blic/interfaces/keyboard.mojom)
215 service to allow Sky Framework Dart code to interface with the underlying 215 service to allow Sky Framework Dart code to interface with the underlying
216 platform's Keyboard, but also to expose any additional non-Dart business logic 216 platform's Keyboard, but also to expose any additional non-Dart business logic
217 to Sky/Dart UI code. 217 to Sky/Dart UI code.
218 218
219 As and example, [SkyApplication](https://github.com/domokit/mojo/blob/master/sky /shell/org/domokit/sky/shell/SkyApplication.java) 219 As and example, [SkyApplication](https://github.com/domokit/mojo/blob/master/sky /shell/org/domokit/sky/shell/SkyApplication.java)
220 exposes a mojo `network_service` (required by Sky Engine C++ code) 220 exposes a mojo `network_service` (required by Sky Engine C++ code)
221 [SkyDemoApplication](https://github.com/domokit/mojo/blob/master/sky/apk/demo/or g/domokit/sky/demo/SkyDemoApplication.java) 221 [SkyDemoApplication](https://github.com/domokit/mojo/blob/master/sky/apk/demo/or g/domokit/sky/demo/SkyDemoApplication.java)
222 additionally exposes `keyboard_service` and `sensor_service` for use by the Sky 222 additionally exposes `keyboard_service` and `sensor_service` for use by the Sky
223 Framework from Dart. 223 Framework from Dart.
OLDNEW
« no previous file with comments | « sky/examples/stocks2/lib/stock_data.dart ('k') | sky/sdk/lib/framework/net/fetch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698