| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Webcam Private API. | 5 // Webcam Private API. |
| 6 namespace webcamPrivate { | 6 [use_movable_types=true] namespace webcamPrivate { |
| 7 enum PanDirection { stop, right, left }; | 7 enum PanDirection { stop, right, left }; |
| 8 enum TiltDirection { stop, up, down }; | 8 enum TiltDirection { stop, up, down }; |
| 9 enum Protocol { visca }; | 9 enum Protocol { visca }; |
| 10 | 10 |
| 11 dictionary ProtocolConfiguration { | 11 dictionary ProtocolConfiguration { |
| 12 Protocol? protocol; | 12 Protocol? protocol; |
| 13 }; | 13 }; |
| 14 | 14 |
| 15 dictionary WebcamConfiguration { | 15 dictionary WebcamConfiguration { |
| 16 double? pan; | 16 double? pan; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 37 static void get(DOMString webcamId, WebcamConfigurationCallback callback); | 37 static void get(DOMString webcamId, WebcamConfigurationCallback callback); |
| 38 static void set(DOMString webcamId, WebcamConfiguration config); | 38 static void set(DOMString webcamId, WebcamConfiguration config); |
| 39 | 39 |
| 40 // Reset a webcam. Note: the value of the parameter have no effect, it's the | 40 // Reset a webcam. Note: the value of the parameter have no effect, it's the |
| 41 // presence of the parameter that matters. E.g.: reset(webcamId, {pan: 0, | 41 // presence of the parameter that matters. E.g.: reset(webcamId, {pan: 0, |
| 42 // tilt: 1}); will reset pan & tilt, but not zoom. | 42 // tilt: 1}); will reset pan & tilt, but not zoom. |
| 43 static void reset(DOMString webcamId, WebcamConfiguration config); | 43 static void reset(DOMString webcamId, WebcamConfiguration config); |
| 44 }; | 44 }; |
| 45 }; | 45 }; |
| 46 | 46 |
| OLD | NEW |