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

Unified Diff: extensions/common/api/usb_private.idl

Issue 617933002: Remove the usbPrivate API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased again. This patch is fighting for an edit in _api_features.json. Created 6 years, 3 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 | « extensions/common/api/schemas.gypi ('k') | extensions/extensions.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/api/usb_private.idl
diff --git a/extensions/common/api/usb_private.idl b/extensions/common/api/usb_private.idl
deleted file mode 100644
index 71a4ff2d4e797fe64d6aead5cb59e3f64751b820..0000000000000000000000000000000000000000
--- a/extensions/common/api/usb_private.idl
+++ /dev/null
@@ -1,39 +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.usbPrivate</code> API to interact with connected USB
-// devices. This API provides private extensions to the <code>chrome.usb</code>
-// API which should only be available to trusted pages.
-namespace usbPrivate {
-
- dictionary DeviceInfo {
- long vendorId; // idVendor from the device
- long productId; // idProduct from the device
-
- // Vendor and product names from an internal database.
- DOMString? vendorName;
- DOMString? productName;
-
- // iManufacturer, iProduct and iSerial strings from the device.
- DOMString? manufacturerString;
- DOMString? productString;
- DOMString? serialString;
- };
-
- callback GetDevicesCallback = void (long[] deviceIds);
- callback GetDeviceInfoCallback = void (DeviceInfo deviceInfo);
-
- interface Functions {
- // Lists USB devices matching any of the given filters.
- // |filters|: The properties to search for on target devices.
- // |callback|: Invoked with a list of device IDs on complete.
- static void getDevices(usb.DeviceFilter[] filters,
- GetDevicesCallback callback);
-
- // Gets basic display information about a device.
- // |deviceId|: The device ID (from |getDevices|).
- // |callback|: Invoked with |DeviceInfo| from the device.
- static void getDeviceInfo(long deviceId, GetDeviceInfoCallback callback);
- };
-};
« no previous file with comments | « extensions/common/api/schemas.gypi ('k') | extensions/extensions.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698