You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** Optional. Printer's human readable description. */
7902
+
/** Printer's human readable description. */
7903
7903
description?: string | undefined;
7904
7904
}
7905
7905
7906
+
/** Error codes returned in response to {@link onPrintRequested} event. */
7907
+
export enum PrintError {
7908
+
/** Specifies that the operation was completed successfully. */
7909
+
OK = "OK",
7910
+
/** Specifies that a general failure occured. */
7911
+
FAILED = "FAILED",
7912
+
/** Specifies that the print ticket is invalid. For example, the ticket is inconsistent with some capabilities, or the extension is not able to handle all settings from the ticket. */
7913
+
INVALID_TICKET = "INVALID_TICKET",
7914
+
/** Specifies that the document is invalid. For example, data may be corrupted or the format is incompatible with the extension. */
7915
+
INVALID_DATA = "INVALID_DATA",
7916
+
}
7917
+
7906
7918
export interface PrinterCapabilities {
7907
7919
/** Device capabilities in CDD format. */
7908
-
capabilities: any;
7920
+
capabilities: { [key: string]: unknown };
7909
7921
}
7910
7922
7911
7923
export interface PrintJob {
7912
7924
/** ID of the printer which should handle the job. */
7913
7925
printerId: string;
7914
7926
/** The print job title. */
7915
7927
title: string;
7916
-
/** Print ticket in CJT format. */
7928
+
/** Print ticket in CJT format. */
7917
7929
ticket: { [key: string]: unknown };
7918
-
/** The document content type. Supported formats are "application/pdf" and "image/pwg-raster". */
7930
+
/** The document content type. Supported formats are `application/pdf` and `image/pwg-raster`. */
7919
7931
contentType: string;
7920
-
/** Blob containing the document data to print. Format must match |contentType|. */
7932
+
/** Blob containing the document data to print. Format must match `contentType`. */
* Event fired when print manager requests information about a USB device that may be a printer.
7946
-
* Note: An application should not rely on this event being fired more than once per device. If a connected device is supported it should be returned in the onGetPrintersRequested event.
7973
+
*
7974
+
* Note: An application should not rely on this event being fired more than once per device. If a connected device is supported it should be returned in the {@link onGetPrintersRequested} event.
7947
7975
* @since Chrome 45
7948
7976
*/
7949
-
export var onGetUsbPrinterInfoRequested: PrinterInfoRequestedEvent;
0 commit comments