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

Side by Side Diff: fpdfsdk/src/fsdk_mgr.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
« fpdfsdk/src/fpdftext.cpp ('K') | « fpdfsdk/src/fpdfview.cpp ('k') | no next file » | 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 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "fpdfsdk/include/fsdk_mgr.h" 9 #include "fpdfsdk/include/fsdk_mgr.h"
10 10
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 m_page->RemovePrivateData((void*)m_page); 618 m_page->RemovePrivateData((void*)m_page);
619 if (m_bTakeOverPage) { 619 if (m_bTakeOverPage) {
620 delete m_page; 620 delete m_page;
621 } 621 }
622 } 622 }
623 623
624 void CPDFSDK_PageView::PageView_OnDraw(CFX_RenderDevice* pDevice, 624 void CPDFSDK_PageView::PageView_OnDraw(CFX_RenderDevice* pDevice,
625 CPDF_Matrix* pUser2Device, 625 CPDF_Matrix* pUser2Device,
626 CPDF_RenderOptions* pOptions) { 626 CPDF_RenderOptions* pOptions) {
627 m_curMatrix = *pUser2Device; 627 m_curMatrix = *pUser2Device;
628
629 CPDFDoc_Environment* pEnv = m_pSDKDoc->GetEnv(); 628 CPDFDoc_Environment* pEnv = m_pSDKDoc->GetEnv();
630 CPDFSDK_AnnotIterator annotIterator(this, true); 629 CPDFSDK_AnnotIterator annotIterator(this, true);
631 while (CPDFSDK_Annot* pSDKAnnot = annotIterator.Next()) { 630 while (CPDFSDK_Annot* pSDKAnnot = annotIterator.Next()) {
632 CPDFSDK_AnnotHandlerMgr* pAnnotHandlerMgr = pEnv->GetAnnotHandlerMgr(); 631 CPDFSDK_AnnotHandlerMgr* pAnnotHandlerMgr = pEnv->GetAnnotHandlerMgr();
633 pAnnotHandlerMgr->Annot_OnDraw(this, pSDKAnnot, pDevice, pUser2Device, 0); 632 pAnnotHandlerMgr->Annot_OnDraw(this, pSDKAnnot, pDevice, pUser2Device, 0);
634 } 633 }
635 } 634 }
636 635
637 const CPDF_Annot* CPDFSDK_PageView::GetPDFAnnotAtPoint(FX_FLOAT pageX, 636 const CPDF_Annot* CPDFSDK_PageView::GetPDFAnnotAtPoint(FX_FLOAT pageX,
638 FX_FLOAT pageY) { 637 FX_FLOAT pageY) {
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
921 CPDFSDK_Annot* pFocusAnnot = m_pSDKDoc->GetFocusAnnot(); 920 CPDFSDK_Annot* pFocusAnnot = m_pSDKDoc->GetFocusAnnot();
922 if (!pFocusAnnot) 921 if (!pFocusAnnot)
923 return nullptr; 922 return nullptr;
924 923
925 for (CPDFSDK_Annot* pAnnot : m_fxAnnotArray) { 924 for (CPDFSDK_Annot* pAnnot : m_fxAnnotArray) {
926 if (pAnnot == pFocusAnnot) 925 if (pAnnot == pFocusAnnot)
927 return pAnnot; 926 return pAnnot;
928 } 927 }
929 return nullptr; 928 return nullptr;
930 } 929 }
OLDNEW
« fpdfsdk/src/fpdftext.cpp ('K') | « fpdfsdk/src/fpdfview.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698