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

Side by Side Diff: core/fxge/win32/win32_int.h

Issue 2009803003: Remove default argument from RestoreState() methods. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: Created 4 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef CORE_FXGE_WIN32_WIN32_INT_H_ 7 #ifndef CORE_FXGE_WIN32_WIN32_INT_H_
8 #define CORE_FXGE_WIN32_WIN32_INT_H_ 8 #define CORE_FXGE_WIN32_WIN32_INT_H_
9 9
10 #include "core/fxge/include/fx_ge.h" 10 #include "core/fxge/include/fx_ge.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 FX_BOOL m_bHalfTone; 103 FX_BOOL m_bHalfTone;
104 CGdiplusExt m_GdiplusExt; 104 CGdiplusExt m_GdiplusExt;
105 CDWriteExt m_DWriteExt; 105 CDWriteExt m_DWriteExt;
106 }; 106 };
107 107
108 class CGdiDeviceDriver : public IFX_RenderDeviceDriver { 108 class CGdiDeviceDriver : public IFX_RenderDeviceDriver {
109 protected: 109 protected:
110 // IFX_RenderDeviceDriver 110 // IFX_RenderDeviceDriver
111 int GetDeviceCaps(int caps_id) override; 111 int GetDeviceCaps(int caps_id) override;
112 void SaveState() override { SaveDC(m_hDC); } 112 void SaveState() override { SaveDC(m_hDC); }
113 void RestoreState(FX_BOOL bKeepSaved = FALSE) override { 113 void RestoreState(bool bKeepSaved) override {
114 RestoreDC(m_hDC, -1); 114 RestoreDC(m_hDC, -1);
115 if (bKeepSaved) { 115 if (bKeepSaved) {
Tom Sepez 2016/05/26 16:07:48 nit. no {}
Lei Zhang 2016/05/26 17:43:25 Done.
116 SaveDC(m_hDC); 116 SaveDC(m_hDC);
117 } 117 }
118 } 118 }
119 FX_BOOL SetClip_PathFill(const CFX_PathData* pPathData, 119 FX_BOOL SetClip_PathFill(const CFX_PathData* pPathData,
120 const CFX_Matrix* pObject2Device, 120 const CFX_Matrix* pObject2Device,
121 int fill_mode) override; 121 int fill_mode) override;
122 FX_BOOL SetClip_PathStroke(const CFX_PathData* pPathData, 122 FX_BOOL SetClip_PathStroke(const CFX_PathData* pPathData,
123 const CFX_Matrix* pObject2Device, 123 const CFX_Matrix* pObject2Device,
124 const CFX_GraphStateData* pGraphState) override; 124 const CFX_GraphStateData* pGraphState) override;
125 FX_BOOL DrawPath(const CFX_PathData* pPathData, 125 FX_BOOL DrawPath(const CFX_PathData* pPathData,
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 FX_BOOL Init(HDC hDC, int ps_level, FX_BOOL bCmykOutput); 291 FX_BOOL Init(HDC hDC, int ps_level, FX_BOOL bCmykOutput);
292 ~CPSPrinterDriver() override; 292 ~CPSPrinterDriver() override;
293 293
294 protected: 294 protected:
295 // IFX_RenderDeviceDriver 295 // IFX_RenderDeviceDriver
296 int GetDeviceCaps(int caps_id) override; 296 int GetDeviceCaps(int caps_id) override;
297 FX_BOOL IsPSPrintDriver() override { return TRUE; } 297 FX_BOOL IsPSPrintDriver() override { return TRUE; }
298 FX_BOOL StartRendering() override; 298 FX_BOOL StartRendering() override;
299 void EndRendering() override; 299 void EndRendering() override;
300 void SaveState() override; 300 void SaveState() override;
301 void RestoreState(FX_BOOL bKeepSaved = FALSE) override; 301 void RestoreState(bool bKeepSaved) override;
302 FX_BOOL SetClip_PathFill(const CFX_PathData* pPathData, 302 FX_BOOL SetClip_PathFill(const CFX_PathData* pPathData,
303 const CFX_Matrix* pObject2Device, 303 const CFX_Matrix* pObject2Device,
304 int fill_mode) override; 304 int fill_mode) override;
305 FX_BOOL SetClip_PathStroke(const CFX_PathData* pPathData, 305 FX_BOOL SetClip_PathStroke(const CFX_PathData* pPathData,
306 const CFX_Matrix* pObject2Device, 306 const CFX_Matrix* pObject2Device,
307 const CFX_GraphStateData* pGraphState) override; 307 const CFX_GraphStateData* pGraphState) override;
308 FX_BOOL DrawPath(const CFX_PathData* pPathData, 308 FX_BOOL DrawPath(const CFX_PathData* pPathData,
309 const CFX_Matrix* pObject2Device, 309 const CFX_Matrix* pObject2Device,
310 const CFX_GraphStateData* pGraphState, 310 const CFX_GraphStateData* pGraphState,
311 uint32_t fill_color, 311 uint32_t fill_color,
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 356
357 HDC m_hDC; 357 HDC m_hDC;
358 FX_BOOL m_bCmykOutput; 358 FX_BOOL m_bCmykOutput;
359 int m_Width, m_Height, m_nBitsPerPixel; 359 int m_Width, m_Height, m_nBitsPerPixel;
360 int m_HorzSize, m_VertSize; 360 int m_HorzSize, m_VertSize;
361 CPSOutput* m_pPSOutput; 361 CPSOutput* m_pPSOutput;
362 CFX_PSRenderer m_PSRenderer; 362 CFX_PSRenderer m_PSRenderer;
363 }; 363 };
364 364
365 #endif // CORE_FXGE_WIN32_WIN32_INT_H_ 365 #endif // CORE_FXGE_WIN32_WIN32_INT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698