| 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 // To run: mojo/tools/mojo_shell.py --sky \ | 5 // To run: mojo/devtools/common/mojo_shell --sky \ |
| 6 // examples/dart/camera_roll/camera_roll.dart --android | 6 // examples/dart/camera_roll/camera_roll.dart --android |
| 7 // This example makes use of mojo:camera_roll which is available only when | 7 // This example makes use of mojo:camera_roll which is available only when |
| 8 // running on Android. | 8 // running on Android. |
| 9 | 9 |
| 10 import 'dart:async'; | 10 import 'dart:async'; |
| 11 import 'dart:sky'; | 11 import 'dart:sky'; |
| 12 | 12 |
| 13 import 'package:mojom/mojo/camera_roll.mojom.dart'; | 13 import 'package:mojom/mojo/camera_roll.mojom.dart'; |
| 14 import 'package:sky/mojo/embedder.dart'; | 14 import 'package:sky/mojo/embedder.dart'; |
| 15 | 15 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 } | 55 } |
| 56 | 56 |
| 57 return false; | 57 return false; |
| 58 } | 58 } |
| 59 | 59 |
| 60 void main() { | 60 void main() { |
| 61 embedder.connectToService("mojo:camera_roll", cameraRoll); | 61 embedder.connectToService("mojo:camera_roll", cameraRoll); |
| 62 view.setEventCallback(handleEvent); | 62 view.setEventCallback(handleEvent); |
| 63 drawNextPhoto(); | 63 drawNextPhoto(); |
| 64 } | 64 } |
| OLD | NEW |