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

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

Issue 1841483002: [Extensions] Convert APIs to use movable types [11] (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
« no previous file with comments | « extensions/common/api/dns.idl ('k') | extensions/common/api/events.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // Use the <code>chrome.documentScan</code> API to discover and retrieve 5 // Use the <code>chrome.documentScan</code> API to discover and retrieve
6 // images from attached paper document scanners. 6 // images from attached paper document scanners.
7 namespace documentScan { 7 [use_movable_types=true] namespace documentScan {
8 dictionary ScanOptions { 8 dictionary ScanOptions {
9 // The MIME types that are accepted by the caller. 9 // The MIME types that are accepted by the caller.
10 DOMString[]? mimeTypes; 10 DOMString[]? mimeTypes;
11 11
12 // The number of scanned images allowed (defaults to 1). 12 // The number of scanned images allowed (defaults to 1).
13 long? maxImages; 13 long? maxImages;
14 }; 14 };
15 15
16 dictionary ScanResults { 16 dictionary ScanResults {
17 // The data image URLs in a form that can be passed as the "src" value to 17 // The data image URLs in a form that can be passed as the "src" value to
(...skipping 10 matching lines...) Expand all
28 callback ScanCallback = void (ScanResults result); 28 callback ScanCallback = void (ScanResults result);
29 29
30 interface Functions { 30 interface Functions {
31 // Performs a document scan. On success, the PNG data will be 31 // Performs a document scan. On success, the PNG data will be
32 // sent to the callback. 32 // sent to the callback.
33 // |options| : Object containing scan parameters. 33 // |options| : Object containing scan parameters.
34 // |callback| : Called with the result and data from the scan. 34 // |callback| : Called with the result and data from the scan.
35 static void scan(ScanOptions options, ScanCallback callback); 35 static void scan(ScanOptions options, ScanCallback callback);
36 }; 36 };
37 }; 37 };
OLDNEW
« no previous file with comments | « extensions/common/api/dns.idl ('k') | extensions/common/api/events.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698