| OLD | NEW |
| 1 Mojo | 1 Mojo |
| 2 ==== | 2 ==== |
| 3 | 3 |
| 4 Mojo is an effort to extract a common platform out of Chrome's renderer and | 4 Mojo is an effort to extract a common platform out of Chrome's renderer and |
| 5 plugin processes that can support multiple types of sandboxed content, such as | 5 plugin processes that can support multiple types of sandboxed content, such as |
| 6 HTML, Pepper, or NaCl. | 6 HTML, Pepper, or NaCl. |
| 7 | 7 |
| 8 ## Set-up and code check-out | 8 ## Set-up and code check-out |
| 9 | 9 |
| 10 The instructions below only need to be done once. Note that a simple "git clone" | 10 The instructions below only need to be done once. Note that a simple "git clone" |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 `--no-config-file` to `mojo_run`. | 177 `--no-config-file` to `mojo_run`. |
| 178 | 178 |
| 179 ### More examples | 179 ### More examples |
| 180 | 180 |
| 181 Some applications can be run directly from the source tree. The development | 181 Some applications can be run directly from the source tree. The development |
| 182 server serves the `src` directory, allowing to refer to these apps. For | 182 server serves the `src` directory, allowing to refer to these apps. For |
| 183 instance, this command serves a dart Mojo app from the source at | 183 instance, this command serves a dart Mojo app from the source at |
| 184 `examples/dart/device_info/main.dart`: | 184 `examples/dart/device_info/main.dart`: |
| 185 | 185 |
| 186 ```sh | 186 ```sh |
| 187 mojo_run https://core.mojoapps.io/examples/dart/device_info/main.dart [--android
] | 187 mojo/devtools/common/mojo_run https://core.mojoapps.io/examples/dart/device_info
/lib/main.dart [--android] |
| 188 ``` | 188 ``` |
| 189 | 189 |
| 190 Some applications are meant to be run embedded in a **window manager**. To run | 190 Some applications are meant to be run embedded in a **window manager**. To run |
| 191 these, you can pass the app url using the `--embed` flag. This will run the | 191 these, you can pass the app url using the `--embed` flag. This will run the |
| 192 window manager and pass the given url to it: | 192 window manager and pass the given url to it: |
| 193 | 193 |
| 194 ```sh | 194 ```sh |
| 195 devtools/common/mojo_run --embed https://core.mojoapps.io/ganesh_app.mojo [--and
roid] | 195 mojo/devtools/common/mojo_run --embed https://core.mojoapps.io/ganesh_app.mojo [
--android] |
| 196 ``` | 196 ``` |
| 197 | 197 |
| 198 By default, `mojo_run` uses https://core.mojoapps.io/kiosk_wm.mojo as the window | 198 By default, `mojo_run` uses mojo:kiosk_wm as the window |
| 199 manager. You can pass a different window manager url using the | 199 manager. You can pass a different window manager url using the |
| 200 `--window-manager` flag to override this. | 200 `--window-manager` flag to override this. |
| 201 | 201 |
| 202 For additional information on `mojo_run` refer to the built-in help and the | 202 For additional information on `mojo_run` refer to the built-in help and the |
| 203 [documentation](https://github.com/domokit/devtools/blob/master/README.md#runner
). | 203 [documentation](mojo/devtools/common/docs/mojo_run.md). |
| 204 You can also request more information on what the tool is doing for you by | 204 You can also request more information on what the tool is doing for you by |
| 205 passing the `--verbose` flag. | 205 passing the `--verbose` flag. |
| 206 | 206 |
| 207 ### <a name="debugging"></a>Debugging, tracing, profiling | 207 ### <a name="debugging"></a>Debugging, tracing, profiling |
| 208 | 208 |
| 209 Devtools `mojo_debug` allows you to interactively inspect a running shell, | 209 Devtools `mojo_debug` allows you to interactively inspect a running shell, |
| 210 collect performance traces and attach a gdb debugger. | 210 collect performance traces and attach a gdb debugger. |
| 211 | 211 |
| 212 For additional information refer to the built-in help and the | 212 For additional information refer to the built-in help and the |
| 213 [documentation](https://github.com/domokit/devtools/blob/master/README.md#debugg
er). | 213 [documentation](mojo/devtools/common/docs/mojo_debug.md). |
| 214 | 214 |
| 215 ### Android set-up | 215 ### Android set-up |
| 216 | 216 |
| 217 #### Adb | 217 #### Adb |
| 218 | 218 |
| 219 For the Android tooling to work, you will need to have `adb` in your PATH. For | 219 For the Android tooling to work, you will need to have `adb` in your PATH. For |
| 220 that, you can either run: | 220 that, you can either run: |
| 221 ``` | 221 ``` |
| 222 source build/android/envsetup.sh | 222 source build/android/envsetup.sh |
| 223 ``` | 223 ``` |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 making your first change: [C++ in Chromium | 283 making your first change: [C++ in Chromium |
| 284 101](http://dev.chromium.org/developers/cpp-in-chromium-101-codelab). | 284 101](http://dev.chromium.org/developers/cpp-in-chromium-101-codelab). |
| 285 | 285 |
| 286 To land a change after receiving LGTM: | 286 To land a change after receiving LGTM: |
| 287 ``` | 287 ``` |
| 288 $ git cl land | 288 $ git cl land |
| 289 ``` | 289 ``` |
| 290 | 290 |
| 291 Don't break the build! Waterfall is here: | 291 Don't break the build! Waterfall is here: |
| 292 http://build.chromium.org/p/client.mojo/waterfall | 292 http://build.chromium.org/p/client.mojo/waterfall |
| OLD | NEW |