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

Side by Side Diff: fpdfsdk/fpdfview.cpp

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 #include "public/fpdfview.h" 7 #include "public/fpdfview.h"
8 8
9 #include <memory> 9 #include <memory>
10 10
(...skipping 889 matching lines...) Expand 10 before | Expand all | Expand 10 after
900 pContext->m_pAnnots = new CPDF_AnnotList(pPage); 900 pContext->m_pAnnots = new CPDF_AnnotList(pPage);
901 FX_BOOL bPrinting = pContext->m_pDevice->GetDeviceClass() != FXDC_DISPLAY; 901 FX_BOOL bPrinting = pContext->m_pDevice->GetDeviceClass() != FXDC_DISPLAY;
902 pContext->m_pAnnots->DisplayAnnots(pPage, pContext->m_pContext, bPrinting, 902 pContext->m_pAnnots->DisplayAnnots(pPage, pContext->m_pContext, bPrinting,
903 &matrix, TRUE, NULL); 903 &matrix, TRUE, NULL);
904 } 904 }
905 905
906 pContext->m_pRenderer = new CPDF_ProgressiveRenderer( 906 pContext->m_pRenderer = new CPDF_ProgressiveRenderer(
907 pContext->m_pContext, pContext->m_pDevice, pContext->m_pOptions); 907 pContext->m_pContext, pContext->m_pDevice, pContext->m_pOptions);
908 pContext->m_pRenderer->Start(pause); 908 pContext->m_pRenderer->Start(pause);
909 if (bNeedToRestore) 909 if (bNeedToRestore)
910 pContext->m_pDevice->RestoreState(); 910 pContext->m_pDevice->RestoreState(false);
911 } 911 }
912 912
913 DLLEXPORT int STDCALL FPDF_GetPageSizeByIndex(FPDF_DOCUMENT document, 913 DLLEXPORT int STDCALL FPDF_GetPageSizeByIndex(FPDF_DOCUMENT document,
914 int page_index, 914 int page_index,
915 double* width, 915 double* width,
916 double* height) { 916 double* height) {
917 UnderlyingDocumentType* pDoc = UnderlyingFromFPDFDocument(document); 917 UnderlyingDocumentType* pDoc = UnderlyingFromFPDFDocument(document);
918 if (!pDoc) 918 if (!pDoc)
919 return FALSE; 919 return FALSE;
920 920
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
1134 if (!buffer) { 1134 if (!buffer) {
1135 *buflen = len; 1135 *buflen = len;
1136 } else if (*buflen >= len) { 1136 } else if (*buflen >= len) {
1137 memcpy(buffer, utf16Name.c_str(), len); 1137 memcpy(buffer, utf16Name.c_str(), len);
1138 *buflen = len; 1138 *buflen = len;
1139 } else { 1139 } else {
1140 *buflen = -1; 1140 *buflen = -1;
1141 } 1141 }
1142 return (FPDF_DEST)pDestObj; 1142 return (FPDF_DEST)pDestObj;
1143 } 1143 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698