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

Unified Diff: chrome/common/extensions/api/document_scan.idl

Issue 899523004: Move chrome.documentScan API to extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated DEPS Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/extensions/api/_permission_features.json ('k') | chrome/common/extensions/api/schemas.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/document_scan.idl
diff --git a/chrome/common/extensions/api/document_scan.idl b/chrome/common/extensions/api/document_scan.idl
deleted file mode 100644
index a2bdcca45c030b843c8754b09eb971f86da9d1fb..0000000000000000000000000000000000000000
--- a/chrome/common/extensions/api/document_scan.idl
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Use the <code>chrome.documentScan</code> API to discover and retrieve
-// images from attached paper document scanners.
-namespace documentScan {
- dictionary ScanOptions {
- // The MIME types that are accepted by the caller.
- DOMString[]? mimeTypes;
-
- // The number of scanned images allowed (defaults to 1).
- long? maxImages;
- };
-
- dictionary ScanResults {
- // The data image URLs in a form that can be passed as the "src" value to
- // an image tag.
- DOMString[] dataUrls;
-
- // The MIME type of <code>dataUrls</code>.
- DOMString mimeType;
- };
-
- // Callback from the <code>scan</code> method.
- // |result| The results from the scan, if successful.
- // Otherwise will return null and set runtime.lastError.
- callback ScanCallback = void (ScanResults result);
-
- interface Functions {
- // Performs a document scan. On success, the PNG data will be
- // sent to the callback.
- // |options| : Object containing scan parameters.
- // |callback| : Called with the result and data from the scan.
- static void scan(ScanOptions options, ScanCallback callback);
- };
-};
« no previous file with comments | « chrome/common/extensions/api/_permission_features.json ('k') | chrome/common/extensions/api/schemas.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698