Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: extensions/common/api/webcam_private.idl

Issue 1843163003: [Extensions] Convert APIs to use movable types [14] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698