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.
6 namespace webcamPrivate {
7 enum PanDirection { stop, right, left };
8 enum TiltDirection { stop, up, down };
10 dictionary WebcamConfiguration {
12 PanDirection? panDirection;
14 TiltDirection? tiltDirection;
18 callback WebcamConfigurationCallback =
19 void(WebcamConfiguration configuration);
22 static void get(DOMString webcamId, WebcamConfigurationCallback callback);
23 static void set(DOMString webcamId, WebcamConfiguration config);
24 static void reset(DOMString webcamId, WebcamConfiguration config);