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

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

Issue 1737593006: Re-land "Replace CPDF_Rect and CPDF_Point with CFX types." (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Ooops. Created 4 years, 9 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
« no previous file with comments | « fpdfsdk/include/fsdk_baseform.h ('k') | fpdfsdk/include/fx_systemhandler.h » ('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 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 CPDFSDK_Annot* AddAnnot(IXFA_Widget* pPDFAnnot); 596 CPDFSDK_Annot* AddAnnot(IXFA_Widget* pPDFAnnot);
597 CPDFSDK_Annot* GetAnnotByXFAWidget(IXFA_Widget* hWidget); 597 CPDFSDK_Annot* GetAnnotByXFAWidget(IXFA_Widget* hWidget);
598 CPDFXFA_Page* GetPDFXFAPage() { return m_page; } 598 CPDFXFA_Page* GetPDFXFAPage() { return m_page; }
599 CPDF_Page* GetPDFPage(); 599 CPDF_Page* GetPDFPage();
600 #else 600 #else
601 CPDF_Page* GetPDFPage() { return m_page; } 601 CPDF_Page* GetPDFPage() { return m_page; }
602 #endif // PDF_ENABLE_XFA 602 #endif // PDF_ENABLE_XFA
603 603
604 CPDF_Document* GetPDFDocument(); 604 CPDF_Document* GetPDFDocument();
605 CPDFSDK_Document* GetSDKDocument() { return m_pSDKDoc; } 605 CPDFSDK_Document* GetSDKDocument() { return m_pSDKDoc; }
606 FX_BOOL OnLButtonDown(const CPDF_Point& point, FX_UINT nFlag); 606 FX_BOOL OnLButtonDown(const CFX_FloatPoint& point, FX_UINT nFlag);
607 FX_BOOL OnLButtonUp(const CPDF_Point& point, FX_UINT nFlag); 607 FX_BOOL OnLButtonUp(const CFX_FloatPoint& point, FX_UINT nFlag);
608 #ifdef PDF_ENABLE_XFA 608 #ifdef PDF_ENABLE_XFA
609 FX_BOOL OnRButtonDown(const CPDF_Point& point, FX_UINT nFlag); 609 FX_BOOL OnRButtonDown(const CFX_FloatPoint& point, FX_UINT nFlag);
610 FX_BOOL OnRButtonUp(const CPDF_Point& point, FX_UINT nFlag); 610 FX_BOOL OnRButtonUp(const CFX_FloatPoint& point, FX_UINT nFlag);
611 #endif // PDF_ENABLE_XFA 611 #endif // PDF_ENABLE_XFA
612 FX_BOOL OnChar(int nChar, FX_UINT nFlag); 612 FX_BOOL OnChar(int nChar, FX_UINT nFlag);
613 FX_BOOL OnKeyDown(int nKeyCode, int nFlag); 613 FX_BOOL OnKeyDown(int nKeyCode, int nFlag);
614 FX_BOOL OnKeyUp(int nKeyCode, int nFlag); 614 FX_BOOL OnKeyUp(int nKeyCode, int nFlag);
615 615
616 FX_BOOL OnMouseMove(const CPDF_Point& point, int nFlag); 616 FX_BOOL OnMouseMove(const CFX_FloatPoint& point, int nFlag);
617 FX_BOOL OnMouseWheel(double deltaX, 617 FX_BOOL OnMouseWheel(double deltaX,
618 double deltaY, 618 double deltaY,
619 const CPDF_Point& point, 619 const CFX_FloatPoint& point,
620 int nFlag); 620 int nFlag);
621 bool IsValidAnnot(const CPDF_Annot* p) const; 621 bool IsValidAnnot(const CPDF_Annot* p) const;
622 void GetCurrentMatrix(CFX_Matrix& matrix) { matrix = m_curMatrix; } 622 void GetCurrentMatrix(CFX_Matrix& matrix) { matrix = m_curMatrix; }
623 void UpdateRects(CFX_RectArray& rects); 623 void UpdateRects(CFX_RectArray& rects);
624 void UpdateView(CPDFSDK_Annot* pAnnot); 624 void UpdateView(CPDFSDK_Annot* pAnnot);
625 const std::vector<CPDFSDK_Annot*>& GetAnnotList() const { 625 const std::vector<CPDFSDK_Annot*>& GetAnnotList() const {
626 return m_fxAnnotArray; 626 return m_fxAnnotArray;
627 } 627 }
628 628
629 int GetPageIndex(); 629 int GetPageIndex();
(...skipping 23 matching lines...) Expand all
653 FX_BOOL m_bTakeOverPage; 653 FX_BOOL m_bTakeOverPage;
654 #endif // PDF_ENABLE_XFA 654 #endif // PDF_ENABLE_XFA
655 FX_BOOL m_bEnterWidget; 655 FX_BOOL m_bEnterWidget;
656 FX_BOOL m_bExitWidget; 656 FX_BOOL m_bExitWidget;
657 FX_BOOL m_bOnWidget; 657 FX_BOOL m_bOnWidget;
658 FX_BOOL m_bValid; 658 FX_BOOL m_bValid;
659 FX_BOOL m_bLocked; 659 FX_BOOL m_bLocked;
660 }; 660 };
661 661
662 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ 662 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/fsdk_baseform.h ('k') | fpdfsdk/include/fx_systemhandler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698