Chromium Code Reviews| 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); |
| }; |