Chromium Code Reviews| 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 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 |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 29 interface Functions { | 29 interface Functions { |
| 30 // Open a serial port that controls a webcam. | 30 // Open a serial port that controls a webcam. |
| 31 static void openSerialWebcam(DOMString path, ProtocolConfiguration protocol, | 31 static void openSerialWebcam(DOMString path, ProtocolConfiguration protocol, |
| 32 WebcamIdCallback callback); | 32 WebcamIdCallback callback); |
| 33 | 33 |
| 34 // Close a serial port connection to a webcam. | 34 // Close a serial port connection to a webcam. |
| 35 static void closeWebcam(DOMString webcamId); | 35 static void closeWebcam(DOMString webcamId); |
| 36 | 36 |
| 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 |
|
tbarzic
2017/05/10 23:45:53
undo this
Luke Sorenson
2017/05/11 16:18:22
Done.
Although, I don't see why its a problem to
tbarzic
2017/05/11 17:16:21
mostly because it has nothing to do with this cl :
Luke Sorenson
2017/05/11 18:35:06
Acknowledged.
| |
| 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 |