<!--
Copyright 2023 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<!--
This file describes the enumerations referenced by entries in histograms.xml for
this directory. Some enums may instead be listed in the central enums.xml file
at src/tools/metrics/histograms/enums.xml when multiple files use them.
For best practices on writing enumerations descriptions, see
https://chromium.googlesource.com/chromium/src.git/+/HEAD/tools/metrics/histograms/README.md#Enum-Histograms
Please follow the instructions in the OWNERS file in this directory to find a
reviewer. If no OWNERS file exists, please consider signing up at
go/reviewing-metrics (Googlers only), as all subdirectories are expected to
have an OWNERS file. As a last resort you can send the CL to
[email protected].
-->
<histogram-configuration>
<!-- Enum types -->
<enums>
<enum name="ExtensionPrintJobStatus">
<int value="0" label="UNKNOWN_FAILURE">Other failures</int>
<int value="1" label="OK">The job completed successfully</int>
<int value="2" label="FAILED">A general failure</int>
<int value="3" label="INVALID_TICKET">The print ticket is invalid</int>
<int value="4" label="INVALID_DATA">The document is invalid</int>
</enum>
<enum name="PrintAttemptOutcome">
<int value="0" label="Cancelled print button disabled"/>
<int value="1" label="Cancelled no printers available"/>
<int value="2" label="Cancelled other printers available"/>
<int value="3" label="Cancelled selected printer error status"/>
<int value="4" label="Cancelled selected printer good status"/>
<int value="5" label="Cancelled selected printer unknown status"/>
<int value="6" label="PDF print attempted"/>
<int value="7" label="Print job success with initially selected printer"/>
<int value="8" label="Print job success with manually selected printer"/>
<int value="9" label="Print job fail with initially selected printer"/>
<int value="10" label="Print job fail with manually selected printer"/>
</enum>
<enum name="PrinterEditDialogActions">
<int value="0" label="Dialog opened"/>
<int value="1" label="View PPD clicked"/>
</enum>
<enum name="PrinterProtocol">
<int value="0" label="Unknown"/>
<int value="1" label="Universal Serial Bus (usb)"/>
<int value="2" label="Internet Print Protocol (ipp)"/>
<int value="3" label="Internet Print Protocol Secure (ipps)"/>
<int value="4" label="HyperText Transfer Protocol (http)"/>
<int value="5" label="HyperText Transfer Protocol Secure (https)"/>
<int value="6" label="App Socket (socket)"/>
<int value="7" label="Line Print Daemon (lpd)"/>
<int value="8" label="IPP-over-USB (ippusb)"/>
</enum>
<enum name="PrinterSettingsUserAction">
<int value="0" label="Add printer manually"/>
<int value="1" label="Save printer"/>
<int value="2" label="Edit printer"/>
<int value="3" label="Remove printer"/>
<int value="4" label="Click help link"/>
</enum>
<enum name="PrinterSetupResult">
<int value="0" label="Fatal Error"/>
<int value="1" label="Success"/>
<int value="2" label="Printer Unreachable"/>
<int value="3" label="Could not contact printscanmgr over dbus"/>
<int value="4" label="Can't configure native printers due to policy"/>
<int value="5" label="Invalid values are used to update printer"/>
<int value="6" label="Could not install component"/>
<int value="7" label="Edit success"/>
<int value="8" label="Printer sent unexpected response"/>
<int value="9" label="Printer requires PPD"/>
<int value="10" label="PPD exceeds size limit"/>
<int value="11" label="PPD Rejected by cupstestppd"/>
<int value="12" label="Could not find PPD"/>
<int value="13" label="Failed to download PPD"/>
<int value="14" label="I/O error in CUPS"/>
<int value="15" label="Memory allocation error in Cups"/>
<int value="16" label="Printer's URI is incorrect"/>
<int value="17" label="Manual setup required"/>
<int value="64" label="No reply from printscanmgr over D-Bus"/>
<int value="65" label="Generic D-Bus timeout"/>
<int value="66" label="Printer removed during setup"/>
</enum>
<enum name="PrinterStatusQueryResult">
<int value="0" label="UNKNOWN_FAILURE">All other query failures.</int>
<int value="1" label="SUCCESS">Printer returned a valid printer status.</int>
<int value="2" label="UNREACHABLE">
Device could not connect to the printer.
</int>
<int value="3" label="HOSTNAME_RESOLUTION">
Unable to resolve IP address from printer hostname.
</int>
</enum>
<enum name="PrinterStatusReasons">
<int value="0" label="UNKNOWN_REASON"/>
<int value="1" label="NONE"/>
<int value="2" label="MEDIA_NEEDED"/>
<int value="3" label="MEDIA_JAM"/>
<int value="4" label="MOVING_TO_PAUSED"/>
<int value="5" label="PAUSED"/>
<int value="6" label="SHUTDOWN"/>
<int value="7" label="CONNECTING_TO_DEVICE"/>
<int value="8" label="TIMED_OUT"/>
<int value="9" label="STOPPING"/>
<int value="10" label="STOPPED_PARTLY"/>
<int value="11" label="TONER_LOW"/>
<int value="12" label="TONER_EMPTY"/>
<int value="13" label="SPOOL_AREA_FULL"/>
<int value="14" label="COVER_OPEN"/>
<int value="15" label="INTERLOCK_OPEN"/>
<int value="16" label="DOOR_OPEN"/>
<int value="17" label="INPUT_TRAY_MISSING"/>
<int value="18" label="MEDIA_LOW"/>
<int value="19" label="MEDIA_EMPTY"/>
<int value="20" label="OUTPUT_TRAY_MISSING"/>
<int value="21" label="OUTPUT_AREA_ALMOST_FULL"/>
<int value="22" label="OUTPUT_AREA_FULL"/>
<int value="23" label="MARKER_SUPPLY_LOW"/>
<int value="24" label="MARKER_SUPPLY_EMPTY"/>
<int value="25" label="MARKER_WASTE_ALMOST_FULL"/>
<int value="26" label="MARKER_WASTE_FULL"/>
<int value="27" label="FUSER_OVER_TEMP"/>
<int value="28" label="FUSER_UNDER_TEMP"/>
<int value="29" label="OPC_NEAR_EOL"/>
<int value="30" label="OPC_LIFE_OVER"/>
<int value="31" label="DEVELOPER_LOW"/>
<int value="32" label="DEVELOPER_EMPTY"/>
<int value="33" label="INTERPRETER_RESOURCE_UNAVAILABLE"/>
<int value="34" label="CUPS_PKI_EXPIRED"/>
</enum>
<enum name="PrintJobResult">
<int value="0" label="Unknown"/>
<int value="1" label="Successful Finish"/>
<int value="2" label="Cancelled due to timeout"/>
<int value="3" label="Cancelled by printer"/>
<int value="4" label="Lost track of job"/>
<int value="5" label="Filter failed"/>
<int value="6" label="Cancelled due to client unauthorized"/>
</enum>
<enum name="PrintOopResult">
<int value="0" label="Successful"/>
<int value="1" label="Cancelled"/>
<int value="2" label="Access Denied"/>
<int value="3" label="Failed"/>
</enum>
<enum name="PrintPreviewLaunchSourceType">
<int value="0" label="Preview area shows connection error manage button"/>
<int value="1" label="Destination dialog no printers manage button"/>
<int value="2" label="Destination dialog has printers manage button"/>
</enum>
<enum name="PrintPreviewPrintDocumentTypeBuckets">
<int value="0" label="HTML_DOCUMENT"/>
<int value="1" label="PDF_DOCUMENT"/>
</enum>
<enum name="PrintPreviewPrintSettingsUiBuckets">
<int value="0" label="ADVANCED_SETTINGS_DIALOG_SHOWN"/>
<int value="1" label="ADVANCED_SETTINGS_DIALOG_CANCELED"/>
<int value="2" label="MORE_SETTINGS_CLICKED"/>
<int value="3" label="LESS_SETTINGS_CLICKED"/>
<int value="4" label="PRINT_WITH_SETTINGS_EXPANDED"/>
<int value="5" label="PRINT_WITH_SETTINGS_COLLAPSED"/>
</enum>
<enum name="PrintPreviewStateError">
<int value="0" label="None"/>
<int value="1" label="Invalid Ticket"/>
<int value="2" label="Invalid Printer"/>
<int value="3" label="No Destinations"/>
<int value="4" label="Preview Failed"/>
<int value="5" label="Print Failed"/>
</enum>
<enum name="PrintPreviewUserActionType">
<int value="0" label="PRINT_TO_PRINTER"/>
<int value="1" label="PRINT_TO_PDF"/>
<int value="2" label="CANCEL"/>
<int value="3" label="FALLBACK_TO_ADVANCED_SETTINGS_DIALOG"/>
<int value="4" label="PREVIEW_FAILED"/>
<int value="5" label="PREVIEW_STARTED"/>
<int value="6" label="INITIATOR_TAB_CRASHED_UNUSED"/>
<int value="7" label="INITIATOR_TAB_CLOSED"/>
<int value="8" label="PRINT_WITH_CLOUD_PRINT"/>
<int value="9" label="PRINT_WITH_PRIVET_UNUSED"/>
<int value="10" label="PRINT_WITH_EXTENSION"/>
<int value="11" label="OPEN_IN_MAC_PREVIEW"/>
<int value="12" label="PRINT_TO_GOOGLE_DRIVE"/>
<int value="13" label="PRINT_TO_GOOGLE_DRIVE_CROS"/>
</enum>
<enum name="PrintSettings">
<int value="0" label="LANDSCAPE"/>
<int value="1" label="PORTRAIT"/>
<int value="2" label="COLOR"/>
<int value="3" label="BLACK_AND_WHITE"/>
<int value="4" label="COLLATE"/>
<int value="5" label="SIMPLEX"/>
<int value="6" label="DUPLEX"/>
<int value="7" label="TOTAL"/>
<int value="8" label="HEADERS_AND_FOOTERS"/>
<int value="9" label="CSS_BACKGROUND"/>
<int value="10" label="SELECTION_ONLY"/>
<int value="11" label="EXTERNAL_PDF_PREVIEW_UNUSED"/>
<int value="12" label="PAGE_RANGE"/>
<int value="13" label="DEFAULT_MEDIA"/>
<int value="14" label="NON_DEFAULT_MEDIA"/>
<int value="15" label="COPIES"/>
<int value="16" label="NON_DEFAULT_MARGINS"/>
<int value="17" label="DISTILL_PAGE_UNUSED"/>
<int value="18" label="SCALING"/>
<int value="19" label="PRINT_AS_IMAGE"/>
<int value="20" label="PAGES_PER_SHEET"/>
<int value="21" label="FIT_TO_PAGE"/>
<int value="22" label="DEFAULT_DPI"/>
<int value="23" label="NON_DEFAULT_DPI"/>
<int value="24" label="PIN"/>
<int value="25" label="FIT_TO_PAPER"/>
</enum>
<enum name="UsbPrinterSetupSource">
<int value="0" label="Settings"/>
<int value="1" label="Print Preview"/>
<int value="2" label="Automatic"/>
</enum>
</enums>
</histogram-configuration>