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 [DartPackage="mojo_services"] | 5 [DartPackage="mojo_services"] |
6 module mojo; | 6 module mojo; |
7 | 7 |
8 struct Photo { | 8 struct Photo { |
9 // A string to uniquely identify an instance of a |Photo|. This can be used | 9 // A string to uniquely identify an instance of a |Photo|. This can be used |
10 // to de-duplicate photos over multiple runs on the camera roll. | 10 // to de-duplicate photos over multiple runs on the camera roll. |
(...skipping 10 matching lines...) Expand all Loading... | |
21 interface CameraRollService { | 21 interface CameraRollService { |
22 // Updates the snapshot of all photos available. Photos might have been added | 22 // Updates the snapshot of all photos available. Photos might have been added |
23 // or removed after the service was started or |Update| was called. | 23 // or removed after the service was started or |Update| was called. |
24 Update(); | 24 Update(); |
25 // Get the number of photos available in the current snapshot. | 25 // Get the number of photos available in the current snapshot. |
26 GetCount() => (uint32 num_photos); | 26 GetCount() => (uint32 num_photos); |
27 // Get the photo from the current snapshot at |index|. null will be returned | 27 // Get the photo from the current snapshot at |index|. null will be returned |
28 // if such an index is out-of-bounds. | 28 // if such an index is out-of-bounds. |
29 GetPhoto(uint32 index) => (Photo? photo); | 29 GetPhoto(uint32 index) => (Photo? photo); |
30 }; | 30 }; |
31 | |
32 // |CameraService| provides access to the device's camera video stream. | |
33 interface CameraVideoService { | |
alhaad1
2015/10/02 06:33:27
Could we call it just CameraService? There is noth
gautham
2015/10/02 22:29:11
Done.
| |
34 GetVideoFrames() => (handle<data_pipe_consumer>? content); | |
alhaad1
2015/10/02 06:33:27
This could be GetLatestFrame?
Also, do you think
gautham
2015/10/02 22:29:11
I'm hoping we'll fix the ImageDecoder to work with
| |
35 }; | |
OLD | NEW |