Add PrinterType enum to print.mojom
crrev.com/c/2944339 adds a GetPrinterTypeDenyList() method to the
LocalPrinter interface which returns a list of PrinterType enums.
Bug: 1192973, 1222453
Change-Id: Ic984507f9e3aaa776720f4cd55b9c0b099c3dfba
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2977411
Auto-Submit: Pranav Batra <batrapranav@chromium.org>
Reviewed-by: Ken Buchanan <kenrb@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Pranav Batra <batrapranav@chromium.org>
Cr-Commit-Position: refs/heads/master@{#894818}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
8f4d51b562
commit
20a427d7b7
printing
@@ -56,7 +56,12 @@ component("printing_base") {
|
|||||||
cflags = []
|
cflags = []
|
||||||
defines = [ "IS_PRINTING_BASE_IMPL" ]
|
defines = [ "IS_PRINTING_BASE_IMPL" ]
|
||||||
|
|
||||||
public_deps = [ "//build:chromeos_buildflags" ]
|
public_deps = [
|
||||||
|
"//build:chromeos_buildflags",
|
||||||
|
|
||||||
|
# TODO(crbug.com/1222453): Remove this dependency once migration is complete.
|
||||||
|
"//printing/mojom",
|
||||||
|
]
|
||||||
deps = [
|
deps = [
|
||||||
"//base",
|
"//base",
|
||||||
"//third_party/icu",
|
"//third_party/icu",
|
||||||
|
@@ -135,3 +135,14 @@ enum ResultCode {
|
|||||||
// Insufficient permissions to perform the operation.
|
// Insufficient permissions to perform the operation.
|
||||||
kAccessDenied,
|
kAccessDenied,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Matches print_preview.PrinterType in
|
||||||
|
// chrome/browser/resources/print_preview/data/destination_match.js
|
||||||
|
[Stable, Extensible]
|
||||||
|
enum PrinterType {
|
||||||
|
kPrivet,
|
||||||
|
kExtension,
|
||||||
|
kPdf,
|
||||||
|
kLocal,
|
||||||
|
kCloud
|
||||||
|
};
|
||||||
|
@@ -9,6 +9,9 @@
|
|||||||
|
|
||||||
#include "base/component_export.h"
|
#include "base/component_export.h"
|
||||||
|
|
||||||
|
// TODO(crbug.com/1222453): Remove once migration is complete.
|
||||||
|
#include "printing/mojom/print.mojom.h"
|
||||||
|
|
||||||
namespace printing {
|
namespace printing {
|
||||||
|
|
||||||
COMPONENT_EXPORT(PRINTING_BASE) extern const char kIsFirstRequest[];
|
COMPONENT_EXPORT(PRINTING_BASE) extern const char kIsFirstRequest[];
|
||||||
@@ -186,9 +189,8 @@ enum ScalingType {
|
|||||||
SCALING_TYPE_LAST = CUSTOM
|
SCALING_TYPE_LAST = CUSTOM
|
||||||
};
|
};
|
||||||
|
|
||||||
// Must match print_preview.PrinterType in
|
// TODO(crbug.com/1222453): Remove once migration is complete.
|
||||||
// chrome/browser/resources/print_preview/data/destination_match.js
|
using PrinterType = printing::mojom::PrinterType;
|
||||||
enum class PrinterType { kPrivet, kExtension, kPdf, kLocal, kCloud };
|
|
||||||
|
|
||||||
} // namespace printing
|
} // namespace printing
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user