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

Unified Diff: chrome/common/extensions/api/webcam_private.idl

Issue 205243005: Add chrome.webcamPrivate idl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/webcam_private.idl
diff --git a/chrome/common/extensions/api/webcam_private.idl b/chrome/common/extensions/api/webcam_private.idl
new file mode 100644
index 0000000000000000000000000000000000000000..30ea075069ac823f36c4ea76636adc0b3726020b
--- /dev/null
+++ b/chrome/common/extensions/api/webcam_private.idl
@@ -0,0 +1,36 @@
+// Copyright 2014 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.
+
+// Webcam Private API.
+namespace webcamPrivate {
+ dictionary WebcamParameters {
+ DOMString sourceId;
+ double? value;
not at google - send to devlin 2014/03/20 11:24:51 what do these mean?
+ };
+
+ callback SuccessCallback = void(boolean success);
not at google - send to devlin 2014/03/20 11:24:51 typically success is implicit so long as it doesn'
+ callback PZTCallback = void(boolean success,
+ double pan,
+ double zoom,
+ double tilt);
+
+ interface Functions {
+ static void resetPan(WebcamParameters params,
+ optional SuccessCallback callback);
+ static void resetZoom(WebcamParameters params,
+ optional SuccessCallback callback);
+ static void resetTilt(WebcamParameters params,
+ optional SuccessCallback callback);
+
+ static void setPan(WebcamParameters params,
+ optional SuccessCallback callback);
+ static void setZoom(WebcamParameters params,
+ optional SuccessCallback callback);
+ static void setTilt(WebcamParameters params,
+ optional SuccessCallback callback);
+
+ static void getCurrentPanZoomTilt(DOMString sourceId, PZTCallback callback);
not at google - send to devlin 2014/03/20 11:24:51 you could also consider dictionary WebcamParamete
+ };
+};
+
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698