Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(225)

Unified Diff: printing/printing_context_win.h

Issue 2714073002: Eliminate PS printing edge cases (Closed)
Patch Set: Fix compile errors Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: printing/printing_context_win.h
diff --git a/printing/printing_context_win.h b/printing/printing_context_win.h
index e6f4ad0f0c39cdfdeedd0fa435b2428897f7e38d..0cd5ed7ad3994803eac63b64bb59dd2d1e7c41f2 100644
--- a/printing/printing_context_win.h
+++ b/printing/printing_context_win.h
@@ -41,6 +41,7 @@ class PRINTING_EXPORT PrintingContextWin : public PrintingContext {
Result DocumentDone() override;
void Cancel() override;
void ReleaseContext() override;
+ void SetPostScriptEnabled(bool is_enabled) override;
skia::NativeDrawingContext context() const override;
protected:
@@ -53,6 +54,8 @@ class PRINTING_EXPORT PrintingContextWin : public PrintingContext {
void set_context(HDC context) { context_ = context; }
+ bool postscript_enabled() { return is_postscript_enabled_; }
Lei Zhang 2017/02/25 03:03:35 const method
+
private:
// Used in response to the user canceling the printing.
static BOOL CALLBACK AbortProc(HDC hdc, int nCode);
@@ -60,6 +63,9 @@ class PRINTING_EXPORT PrintingContextWin : public PrintingContext {
// The selected printer context.
HDC context_;
+ // Is postscript printing enabled
Lei Zhang 2017/02/25 03:03:35 "Is the postscript printing feature enabled"
+ bool is_postscript_enabled_ = false;
+
DISALLOW_COPY_AND_ASSIGN(PrintingContextWin);
};

Powered by Google App Engine
This is Rietveld 408576698