| 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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 Some applications can be run directly from the source tree. The development | 228 Some applications can be run directly from the source tree. The development |
| 229 server serves the `src` directory, allowing to refer to these apps. For | 229 server serves the `src` directory, allowing to refer to these apps. For |
| 230 instance, this command serves a dart Mojo app from the source at | 230 instance, this command serves a dart Mojo app from the source at |
| 231 `examples/dart/device_info/main.dart`: | 231 `examples/dart/device_info/main.dart`: |
| 232 | 232 |
| 233 ```sh | 233 ```sh |
| 234 mojo_run https://core.mojoapps.io/examples/dart/device_info/main.dart [--android
] | 234 mojo_run https://core.mojoapps.io/examples/dart/device_info/main.dart [--android
] |
| 235 ``` | 235 ``` |
| 236 | 236 |
| 237 Some applications are meant to be run embedded in a **window manager**. To run | 237 Some applications are meant to be run embedded in a **window manager**. To run |
| 238 these, pass their urls as arguments for `mojo:window_manager`, which is a | 238 these, you can pass the app url using the `--embed` flag. This will run the |
| 239 special url that `mojo_run` maps to a real window manager ( | 239 window manager and pass the given url to it: |
| 240 https://core.mojoapps.io/kiosk_wm.mojo) for you: | |
| 241 | 240 |
| 242 ```sh | 241 ```sh |
| 243 devtools/common/mojo_run "mojo:window_manager https://core.mojoapps.io/ganesh_ap
p.mojo" [--android] | 242 devtools/common/mojo_run --embed https://core.mojoapps.io/ganesh_app.mojo [--and
roid] |
| 244 ``` | 243 ``` |
| 245 | 244 |
| 245 By default, `mojo_run` uses https://core.mojoapps.io/kiosk_wm.mojo as the window |
| 246 manager. You can pass a different window manager url using the |
| 247 `--window-manager` flag to override this. |
| 248 |
| 246 For additional information on `mojo_run` refer to the built-in help and the | 249 For additional information on `mojo_run` refer to the built-in help and the |
| 247 [documentation](https://github.com/domokit/devtools/blob/master/README.md#runner
). | 250 [documentation](https://github.com/domokit/devtools/blob/master/README.md#runner
). |
| 248 You can also request more information on what the tool is doing for you by | 251 You can also request more information on what the tool is doing for you by |
| 249 passing the `--verbose` flag. | 252 passing the `--verbose` flag. |
| 250 | 253 |
| 251 ### <a name="debugging"></a>Debugging, tracing, profiling | 254 ### <a name="debugging"></a>Debugging, tracing, profiling |
| 252 | 255 |
| 253 Devtools `mojo_debug` allows you to interactively inspect a running shell, | 256 Devtools `mojo_debug` allows you to interactively inspect a running shell, |
| 254 collect performance traces and attach a gdb debugger. | 257 collect performance traces and attach a gdb debugger. |
| 255 | 258 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 281 running shell on the device) will not work unless the device is rooted and | 284 running shell on the device) will not work unless the device is rooted and |
| 282 running a userdebug build. For Googlers, [follow the instructions at this | 285 running a userdebug build. For Googlers, [follow the instructions at this |
| 283 link](http://go/mojo-internal-build-instructions). | 286 link](http://go/mojo-internal-build-instructions). |
| 284 | 287 |
| 285 ### Running manually on Linux | 288 ### Running manually on Linux |
| 286 | 289 |
| 287 If you wish to, you can also run the Linux Mojo shell directly with no wrappers: | 290 If you wish to, you can also run the Linux Mojo shell directly with no wrappers: |
| 288 ``` | 291 ``` |
| 289 ./out/Debug/mojo_shell out/Debug/spinning_cube.mojo | 292 ./out/Debug/mojo_shell out/Debug/spinning_cube.mojo |
| 290 ``` | 293 ``` |
| OLD | NEW |