Blink roll 25b6bd3a7a131ffe68d809546ad1a20707915cdc:3a503f41ae42e5b79cfcd2ff10e65afde...
[chromium-blink-merge.git] / extensions / common / api / webcam_private.idl
blob757e5b383c5518489256d3378cb79bf6ad471f4b
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
3 // found in the LICENSE file.
5 // Webcam Private API.
6 namespace webcamPrivate {
7 enum PanDirection { stop, right, left };
8 enum TiltDirection { stop, up, down };
10 dictionary WebcamConfiguration {
11 double? pan;
12 PanDirection? panDirection;
13 double? tilt;
14 TiltDirection? tiltDirection;
15 double? zoom;
18 callback WebcamConfigurationCallback =
19 void(WebcamConfiguration configuration);
21 interface Functions {
22 static void get(DOMString webcamId, WebcamConfigurationCallback callback);
23 static void set(DOMString webcamId, WebcamConfiguration config);
24 static void reset(DOMString webcamId, WebcamConfiguration config);