| Index: extensions/common/api/printer_provider.idl
|
| diff --git a/extensions/common/api/printer_provider.idl b/extensions/common/api/printer_provider.idl
|
| index 40a07c5f5be874813d353c37288c2f70eb223c1d..4237193259338836d61addd3471a49c584d6a35f 100644
|
| --- a/extensions/common/api/printer_provider.idl
|
| +++ b/extensions/common/api/printer_provider.idl
|
| @@ -60,6 +60,8 @@ namespace printerProvider {
|
|
|
| callback PrintersCallback = void(PrinterInfo[] printerInfo);
|
|
|
| + callback PrinterInfoCallback = void(PrinterInfo printerInfo);
|
| +
|
| // |capabilities|: Device capabilities in
|
| // <a href="https://developers.google.com/cloud-print/docs/cdd#cdd">CDD
|
| // format</a>.
|
| @@ -73,6 +75,15 @@ namespace printerProvider {
|
| // call callback exactly once.
|
| static void onGetPrintersRequested(PrintersCallback resultCallback);
|
|
|
| + // Event fired when print manager grants access to a USB device.
|
| + // |device|: The USB device.
|
| + // |resultCallback|: Callback to return printer info. The receiving listener
|
| + // must call callback exactly once. If the parameter to this callback is
|
| + // undefined that indicates that the application has determined that the
|
| + // device is not supported.
|
| + static void onUsbAccessGranted(usb.Device device,
|
| + PrinterInfoCallback resultCallback);
|
| +
|
| // Event fired when print manager requests printer capabilities.
|
| // |printerId|: Unique ID of the printer whose capabilities are requested.
|
| // |resultCallback|: Callback to return device capabilities in
|
|
|