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

Side by Side Diff: fpdfsdk/src/fpdfformfill.cpp

Issue 1481523004: master: more underlying types (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years 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/fpdf_formfill.h" 7 #include "public/fpdf_formfill.h"
8 8
9 #include "fpdfsdk/include/fsdk_define.h" 9 #include "fpdfsdk/include/fsdk_define.h"
10 #include "fpdfsdk/include/fsdk_mgr.h" 10 #include "fpdfsdk/include/fsdk_mgr.h"
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 FPDF_PAGE page, 191 FPDF_PAGE page,
192 int start_x, 192 int start_x,
193 int start_y, 193 int start_y,
194 int size_x, 194 int size_x,
195 int size_y, 195 int size_y,
196 int rotate, 196 int rotate,
197 int flags) { 197 int flags) {
198 if (!hHandle) 198 if (!hHandle)
199 return; 199 return;
200 200
201 CPDF_Page* pPage = CPDFPageFromFPDFPage(page); 201 UnderlyingPageType* pPage = UnderlyingFromFPDFPage(page);
202 if (!pPage) 202 if (!pPage)
203 return; 203 return;
204 204
205 CPDF_RenderOptions options; 205 CPDF_RenderOptions options;
206 if (flags & FPDF_LCD_TEXT) 206 if (flags & FPDF_LCD_TEXT)
207 options.m_Flags |= RENDER_CLEARTYPE; 207 options.m_Flags |= RENDER_CLEARTYPE;
208 else 208 else
209 options.m_Flags &= ~RENDER_CLEARTYPE; 209 options.m_Flags &= ~RENDER_CLEARTYPE;
210 210
211 // Grayscale output 211 // Grayscale output
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 pActionHandler->DoAction_Page(action, CPDF_AAction::OpenPage, pSDKDoc); 343 pActionHandler->DoAction_Page(action, CPDF_AAction::OpenPage, pSDKDoc);
344 } 344 }
345 } else { 345 } else {
346 if (aa.ActionExist(CPDF_AAction::ClosePage)) { 346 if (aa.ActionExist(CPDF_AAction::ClosePage)) {
347 CPDF_Action action = aa.GetAction(CPDF_AAction::ClosePage); 347 CPDF_Action action = aa.GetAction(CPDF_AAction::ClosePage);
348 pActionHandler->DoAction_Page(action, CPDF_AAction::ClosePage, pSDKDoc); 348 pActionHandler->DoAction_Page(action, CPDF_AAction::ClosePage, pSDKDoc);
349 } 349 }
350 } 350 }
351 } 351 }
352 } 352 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698