chromium/printing/backend/cups_ipp_constants.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "printing/backend/cups_ipp_constants.h"

#include <cups/cups.h>

#include "build/build_config.h"

namespace printing {

// operation attributes
constexpr char kIppDocumentFormat[] =;         // RFC 8011
constexpr char kIppDocumentName[] =;             // RFC 8011
constexpr char kIppJobId[] =;                           // RFC 8011
constexpr char kIppJobName[] =;                       // RFC 8011
constexpr char kIppLastDocument[] =;             // RFC 8011
constexpr char kIppPin[] =;                       // PWG 5100.11
constexpr char kIppPinEncryption[] =;  // PWG 5100.11
constexpr char kIppPrinterUri[] =;                 // RFC 8011
constexpr char kIppRequestedAttributes[] =;  // RFC 8011
constexpr char kIppRequestingUserName[] =;  // RFC 8011

// printer attributes
constexpr char kIppMediaColDatabase[] =;

// job attributes
constexpr char kIppCollate[] =;  // PWG 5100.19
constexpr char kIppCopies[] =;
constexpr char kIppColor[] =;
constexpr char kIppMedia[] =;
constexpr char kIppMediaCol[] =;  // PWG 5100.7
constexpr char kIppDuplex[] =;
constexpr char kIppResolution[] =;  // RFC 8011

// collation values
constexpr char kCollated[] =;
constexpr char kUncollated[] =;

// media-col collection members (all from PWG 5100.7)
constexpr char kIppMediaBottomMargin[] =;
constexpr char kIppMediaLeftMargin[] =;
constexpr char kIppMediaRightMargin[] =;
constexpr char kIppMediaSize[] =;
constexpr char kIppMediaSource[] =;
constexpr char kIppMediaTopMargin[] =;
constexpr char kIppMediaType[] =;
constexpr char kIppXDimension[] =;
constexpr char kIppYDimension[] =;

#if BUILDFLAG(IS_CHROMEOS)

constexpr char kIppDocumentAttributes[] =
    "document-creation-attributes";                              // PWG 5100.5
constexpr char kIppJobAttributes[] = "job-creation-attributes";  // PWG 5100.11

constexpr char kPinEncryptionNone[] = "none";

constexpr char kOptionFalse[] = "false";
constexpr char kOptionTrue[] = "true";

// client-info
constexpr char kIppClientInfo[] = "client-info";
constexpr char kIppClientName[] = "client-name";
constexpr char kIppClientPatches[] = "client-patches";
constexpr char kIppClientStringVersion[] = "client-string-version";
constexpr char kIppClientType[] = "client-type";
constexpr char kIppClientVersion[] = "client-version";

#endif  // BUILDFLAG(IS_CHROMEOS)

}  // namespace printing