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

Side by Side Diff: fpdfsdk/include/fsdk_mgr.h

Issue 1417983006: XFA: Simplify CPDFSDK_PageView::PageView_OnDraw(). (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: rebase Created 5 years, 1 month 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
« no previous file with comments | « no previous file | fpdfsdk/src/fpdfformfill.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 FPDFSDK_INCLUDE_FSDK_MGR_H_ 7 #ifndef FPDFSDK_INCLUDE_FSDK_MGR_H_
8 #define FPDFSDK_INCLUDE_FSDK_MGR_H_ 8 #define FPDFSDK_INCLUDE_FSDK_MGR_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 FX_BOOL m_bChangeMask; 530 FX_BOOL m_bChangeMask;
531 FX_BOOL m_bBeingDestroyed; 531 FX_BOOL m_bBeingDestroyed;
532 }; 532 };
533 class CPDFSDK_PageView final { 533 class CPDFSDK_PageView final {
534 public: 534 public:
535 CPDFSDK_PageView(CPDFSDK_Document* pSDKDoc, CPDFXFA_Page* page); 535 CPDFSDK_PageView(CPDFSDK_Document* pSDKDoc, CPDFXFA_Page* page);
536 ~CPDFSDK_PageView(); 536 ~CPDFSDK_PageView();
537 void PageView_OnDraw(CFX_RenderDevice* pDevice, 537 void PageView_OnDraw(CFX_RenderDevice* pDevice,
538 CPDF_Matrix* pUser2Device, 538 CPDF_Matrix* pUser2Device,
539 CPDF_RenderOptions* pOptions, 539 CPDF_RenderOptions* pOptions,
540 FX_RECT* pClip = NULL); 540 const FX_RECT& pClip);
541 const CPDF_Annot* GetPDFAnnotAtPoint(FX_FLOAT pageX, FX_FLOAT pageY); 541 const CPDF_Annot* GetPDFAnnotAtPoint(FX_FLOAT pageX, FX_FLOAT pageY);
542 CPDFSDK_Annot* GetFXAnnotAtPoint(FX_FLOAT pageX, FX_FLOAT pageY); 542 CPDFSDK_Annot* GetFXAnnotAtPoint(FX_FLOAT pageX, FX_FLOAT pageY);
543 const CPDF_Annot* GetPDFWidgetAtPoint(FX_FLOAT pageX, FX_FLOAT pageY); 543 const CPDF_Annot* GetPDFWidgetAtPoint(FX_FLOAT pageX, FX_FLOAT pageY);
544 CPDFSDK_Annot* GetFXWidgetAtPoint(FX_FLOAT pageX, FX_FLOAT pageY); 544 CPDFSDK_Annot* GetFXWidgetAtPoint(FX_FLOAT pageX, FX_FLOAT pageY);
545 CPDFSDK_Annot* GetFocusAnnot(); 545 CPDFSDK_Annot* GetFocusAnnot();
546 void SetFocusAnnot(CPDFSDK_Annot* pSDKAnnot, FX_UINT nFlag = 0) { 546 void SetFocusAnnot(CPDFSDK_Annot* pSDKAnnot, FX_UINT nFlag = 0) {
547 m_pSDKDoc->SetFocusAnnot(pSDKAnnot, nFlag); 547 m_pSDKDoc->SetFocusAnnot(pSDKAnnot, nFlag);
548 } 548 }
549 FX_BOOL KillFocusAnnot(FX_UINT nFlag = 0) { 549 FX_BOOL KillFocusAnnot(FX_UINT nFlag = 0) {
550 return m_pSDKDoc->KillFocusAnnot(nFlag); 550 return m_pSDKDoc->KillFocusAnnot(nFlag);
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
677 } 677 }
678 678
679 if (nStartPos < m) 679 if (nStartPos < m)
680 QuickSort(nStartPos, m, bAscend, pCompare); 680 QuickSort(nStartPos, m, bAscend, pCompare);
681 if (nStopPos > m) 681 if (nStopPos > m)
682 QuickSort(m, nStopPos, bAscend, pCompare); 682 QuickSort(m, nStopPos, bAscend, pCompare);
683 } 683 }
684 }; 684 };
685 685
686 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ 686 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_
OLDNEW
« no previous file with comments | « no previous file | fpdfsdk/src/fpdfformfill.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698