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

Side by Side Diff: examples/dart/camera_roll/lib/main.dart

Issue 1375733004: -Add a mojo service to get video frames from the camera through an android service (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: merge. Created 5 years, 2 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 | « no previous file | examples/dart/camera_video/lib/main.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 // 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
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 }
OLDNEW
« no previous file with comments | « no previous file | examples/dart/camera_video/lib/main.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698