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

Unified Diff: mojo/services/camera/public/interfaces/camera.mojom

Issue 1388413005: Move //mojo/services/X/public/... to //mojo/services/X/... (part 1). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/services/camera/public/interfaces/BUILD.gn ('k') | mojo/services/clipboard/interfaces/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/camera/public/interfaces/camera.mojom
diff --git a/mojo/services/camera/public/interfaces/camera.mojom b/mojo/services/camera/public/interfaces/camera.mojom
deleted file mode 100644
index b7cc5cb7184b568bf79d49077baf861a2ca164c5..0000000000000000000000000000000000000000
--- a/mojo/services/camera/public/interfaces/camera.mojom
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-[DartPackage="mojo_services"]
-module mojo;
-
-struct Photo {
- // A string to uniquely identify an instance of a |Photo|. This can be used
- // to de-duplicate photos over multiple runs on the camera roll.
- string unique_id;
-
- // Stream to read contents of the photo from.
- handle<data_pipe_consumer> content;
-};
-
-// |CameraRollService| provides access to the device's camera roll.
-// The camera roll is exposed as a snapshot of all photos available as a list.
-// The head of the list (element with index 0) is a photo with the latest
-// timestamp and subsequent elements are in decreasing order of timestamp.
-interface CameraRollService {
- // Updates the snapshot of all photos available. Photos might have been added
- // or removed after the service was started or |Update| was called.
- Update();
- // Get the number of photos available in the current snapshot.
- GetCount() => (uint32 num_photos);
- // Get the photo from the current snapshot at |index|. null will be returned
- // 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);
-};
« no previous file with comments | « mojo/services/camera/public/interfaces/BUILD.gn ('k') | mojo/services/clipboard/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698