• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
4
5// Webcam Private API.
6namespace webcamPrivate {
7  enum PanDirection { stop, right, left };
8  enum TiltDirection { stop, up, down };
9
10  dictionary WebcamConfiguration {
11    double? pan;
12    PanDirection? panDirection;
13    double? tilt;
14    TiltDirection? tiltDirection;
15    double? zoom;
16  };
17
18  callback WebcamConfigurationCallback =
19      void(WebcamConfiguration configuration);
20
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);
25  };
26};
27
28