| 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 // This example makes use of mojo:camera_roll which is available only when | 5 // This example makes use of mojo:camera_roll which is available only when |
| 6 // running on Android. | 6 // running on Android. |
| 7 // | 7 // |
| 8 // Example usage: | 8 // Example usage: |
| 9 // pub get | 9 // pub get |
| 10 // pub run sky_tools build | 10 // pub run sky_tools build |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 if (event.type == 'pointerup') { | 82 if (event.type == 'pointerup') { |
| 83 photoIndex++; | 83 photoIndex++; |
| 84 getPhoto(); | 84 getPhoto(); |
| 85 return true; | 85 return true; |
| 86 } | 86 } |
| 87 | 87 |
| 88 return false; | 88 return false; |
| 89 } | 89 } |
| 90 | 90 |
| 91 void main() { | 91 void main() { |
| 92 embedder.connectToService("mojo:camera_roll", cameraRoll); | 92 embedder.connectToService("mojo:camera", cameraRoll); |
| 93 view.setFrameCallback(beginFrame); | 93 view.setFrameCallback(beginFrame); |
| 94 view.setEventCallback(handleEvent); | 94 view.setEventCallback(handleEvent); |
| 95 getPhoto(); | 95 getPhoto(); |
| 96 } | 96 } |
| OLD | NEW |