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 17 matching lines...) Expand all Loading... |
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 | 31 |
32 // |CameraService| provides access to the device's camera video stream. | 32 // |CameraService| provides access to the device's camera video stream. |
33 interface CameraService { | 33 interface CameraService { |
34 // Returns the most recent frame captured by the device's camera | 34 // Returns the most recent frame captured by the device's camera |
35 // in preview mode. | 35 // in preview mode. |
36 GetLatestFrame() => (handle<data_pipe_consumer>? content); | 36 GetLatestFrame() => (handle<data_pipe_consumer>? content); |
37 }; | 37 }; |
OLD | NEW |