Chromium Code Reviews| Index: extensions/common/api/webcam_private.idl |
| diff --git a/extensions/common/api/webcam_private.idl b/extensions/common/api/webcam_private.idl |
| index 3fd629dc1141c64585ff2a39603cde916752bab4..87f2ea22ae23f8224808f797581de9e19b0a4ac0 100644 |
| --- a/extensions/common/api/webcam_private.idl |
| +++ b/extensions/common/api/webcam_private.idl |
| @@ -7,7 +7,8 @@ namespace webcamPrivate { |
| enum PanDirection { stop, right, left }; |
| enum TiltDirection { stop, up, down }; |
| enum Protocol { visca }; |
| - |
| + enum InquireType { pan, tilt, zoom }; |
| + |
| dictionary ProtocolConfiguration { |
| Protocol? protocol; |
| }; |
| @@ -21,8 +22,7 @@ namespace webcamPrivate { |
| }; |
| callback WebcamIdCallback = void(DOMString webcamId); |
| - callback WebcamConfigurationCallback = |
| - void(WebcamConfiguration configuration); |
| + callback WebcamConfigurationCallback = void(double value); |
| interface Functions { |
| // Open a serial port that controls a webcam. |
| @@ -32,7 +32,8 @@ namespace webcamPrivate { |
| // Close a serial port connection to a webcam. |
| static void closeWebcam(DOMString webcamId); |
| - static void get(DOMString webcamId, WebcamConfigurationCallback callback); |
| + static void get(DOMString webcamId, InquireType type, |
|
Zachary Kuznia
2015/08/19 20:49:44
This API shouldn't change, unless there are perfor
|
| + WebcamConfigurationCallback callback); |
| static void set(DOMString webcamId, WebcamConfiguration config); |
| static void reset(DOMString webcamId, WebcamConfiguration config); |
| }; |