Index: mojo/services/camera/public/interfaces/camera.mojom |
diff --git a/mojo/services/camera_roll/public/interfaces/camera_roll.mojom b/mojo/services/camera/public/interfaces/camera.mojom |
similarity index 83% |
rename from mojo/services/camera_roll/public/interfaces/camera_roll.mojom |
rename to mojo/services/camera/public/interfaces/camera.mojom |
index 850da78f654a6594868e806bd4a30e7f7a782684..b7cc5cb7184b568bf79d49077baf861a2ca164c5 100644 |
--- a/mojo/services/camera_roll/public/interfaces/camera_roll.mojom |
+++ b/mojo/services/camera/public/interfaces/camera.mojom |
@@ -28,3 +28,10 @@ interface CameraRollService { |
// if such an index is out-of-bounds. |
GetPhoto(uint32 index) => (Photo? photo); |
}; |
+ |
+// |CameraService| provides access to the device's camera video stream. |
+interface CameraService { |
+ // Returns the most recent frame captured by the device's camera |
+ // in preview mode. |
+ GetLatestFrame() => (handle<data_pipe_consumer>? content); |
+}; |