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

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

Issue 1144423004: Add support for PTZ via VISCA. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor cleanup. Created 5 years, 7 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 | « extensions/browser/extension_function_histogram_value.h ('k') | extensions/extensions.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/api/webcam_private.idl
diff --git a/extensions/common/api/webcam_private.idl b/extensions/common/api/webcam_private.idl
index 757e5b383c5518489256d3378cb79bf6ad471f4b..3fd629dc1141c64585ff2a39603cde916752bab4 100644
--- a/extensions/common/api/webcam_private.idl
+++ b/extensions/common/api/webcam_private.idl
@@ -6,6 +6,11 @@
namespace webcamPrivate {
enum PanDirection { stop, right, left };
enum TiltDirection { stop, up, down };
+ enum Protocol { visca };
+
+ dictionary ProtocolConfiguration {
+ Protocol? protocol;
+ };
dictionary WebcamConfiguration {
double? pan;
@@ -15,10 +20,18 @@ namespace webcamPrivate {
double? zoom;
};
+ callback WebcamIdCallback = void(DOMString webcamId);
callback WebcamConfigurationCallback =
void(WebcamConfiguration configuration);
interface Functions {
+ // Open a serial port that controls a webcam.
+ static void openSerialWebcam(DOMString path, ProtocolConfiguration protocol,
+ WebcamIdCallback callback);
+
+ // Close a serial port connection to a webcam.
+ static void closeWebcam(DOMString webcamId);
+
static void get(DOMString webcamId, WebcamConfigurationCallback callback);
static void set(DOMString webcamId, WebcamConfiguration config);
static void reset(DOMString webcamId, WebcamConfiguration config);
« no previous file with comments | « extensions/browser/extension_function_histogram_value.h ('k') | extensions/extensions.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698