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

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

Issue 2343693002: Replace FX_UINT with unsigned int (Closed)
Patch Set: Remove #s Created 4 years, 3 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/cpdfsdk_environment.h ('k') | fpdfsdk/include/fsdk_define.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 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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_CPDFSDK_PAGEVIEW_H_ 7 #ifndef FPDFSDK_INCLUDE_CPDFSDK_PAGEVIEW_H_
8 #define FPDFSDK_INCLUDE_CPDFSDK_PAGEVIEW_H_ 8 #define FPDFSDK_INCLUDE_CPDFSDK_PAGEVIEW_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 21 matching lines...) Expand all
32 void PageView_OnDraw(CFX_RenderDevice* pDevice, 32 void PageView_OnDraw(CFX_RenderDevice* pDevice,
33 CFX_Matrix* pUser2Device, 33 CFX_Matrix* pUser2Device,
34 CPDF_RenderOptions* pOptions); 34 CPDF_RenderOptions* pOptions);
35 #endif // PDF_ENABLE_XFA 35 #endif // PDF_ENABLE_XFA
36 36
37 const CPDF_Annot* GetPDFAnnotAtPoint(FX_FLOAT pageX, FX_FLOAT pageY); 37 const CPDF_Annot* GetPDFAnnotAtPoint(FX_FLOAT pageX, FX_FLOAT pageY);
38 CPDFSDK_Annot* GetFXAnnotAtPoint(FX_FLOAT pageX, FX_FLOAT pageY); 38 CPDFSDK_Annot* GetFXAnnotAtPoint(FX_FLOAT pageX, FX_FLOAT pageY);
39 const CPDF_Annot* GetPDFWidgetAtPoint(FX_FLOAT pageX, FX_FLOAT pageY); 39 const CPDF_Annot* GetPDFWidgetAtPoint(FX_FLOAT pageX, FX_FLOAT pageY);
40 CPDFSDK_Annot* GetFXWidgetAtPoint(FX_FLOAT pageX, FX_FLOAT pageY); 40 CPDFSDK_Annot* GetFXWidgetAtPoint(FX_FLOAT pageX, FX_FLOAT pageY);
41 CPDFSDK_Annot* GetFocusAnnot(); 41 CPDFSDK_Annot* GetFocusAnnot();
42 void SetFocusAnnot(CPDFSDK_Annot* pSDKAnnot, FX_UINT nFlag = 0) { 42 void SetFocusAnnot(CPDFSDK_Annot* pSDKAnnot, uint32_t nFlag = 0) {
43 m_pSDKDoc->SetFocusAnnot(pSDKAnnot, nFlag); 43 m_pSDKDoc->SetFocusAnnot(pSDKAnnot, nFlag);
44 } 44 }
45 FX_BOOL KillFocusAnnot(FX_UINT nFlag = 0) { 45 FX_BOOL KillFocusAnnot(uint32_t nFlag = 0) {
46 return m_pSDKDoc->KillFocusAnnot(nFlag); 46 return m_pSDKDoc->KillFocusAnnot(nFlag);
47 } 47 }
48 void KillFocusAnnotIfNeeded(); 48 void KillFocusAnnotIfNeeded();
49 49
50 CPDFSDK_Annot* AddAnnot(CPDF_Dictionary* pDict); 50 CPDFSDK_Annot* AddAnnot(CPDF_Dictionary* pDict);
51 CPDFSDK_Annot* AddAnnot(const FX_CHAR* lpSubType, CPDF_Dictionary* pDict); 51 CPDFSDK_Annot* AddAnnot(const FX_CHAR* lpSubType, CPDF_Dictionary* pDict);
52 CPDFSDK_Annot* AddAnnot(CPDF_Annot* pPDFAnnot); 52 CPDFSDK_Annot* AddAnnot(CPDF_Annot* pPDFAnnot);
53 53
54 FX_BOOL DeleteAnnot(CPDFSDK_Annot* pAnnot); 54 FX_BOOL DeleteAnnot(CPDFSDK_Annot* pAnnot);
55 size_t CountAnnots() const; 55 size_t CountAnnots() const;
56 CPDFSDK_Annot* GetAnnot(size_t nIndex); 56 CPDFSDK_Annot* GetAnnot(size_t nIndex);
57 CPDFSDK_Annot* GetAnnotByDict(CPDF_Dictionary* pDict); 57 CPDFSDK_Annot* GetAnnotByDict(CPDF_Dictionary* pDict);
58 58
59 #ifdef PDF_ENABLE_XFA 59 #ifdef PDF_ENABLE_XFA
60 CPDFSDK_Annot* AddAnnot(CXFA_FFWidget* pPDFAnnot); 60 CPDFSDK_Annot* AddAnnot(CXFA_FFWidget* pPDFAnnot);
61 CPDFSDK_Annot* GetAnnotByXFAWidget(CXFA_FFWidget* hWidget); 61 CPDFSDK_Annot* GetAnnotByXFAWidget(CXFA_FFWidget* hWidget);
62 CPDFXFA_Page* GetPDFXFAPage() { return m_page; } 62 CPDFXFA_Page* GetPDFXFAPage() { return m_page; }
63 #endif // PDF_ENABLE_XFA 63 #endif // PDF_ENABLE_XFA
64 64
65 CPDF_Page* GetPDFPage() const; 65 CPDF_Page* GetPDFPage() const;
66 CPDF_Document* GetPDFDocument(); 66 CPDF_Document* GetPDFDocument();
67 CPDFSDK_Document* GetSDKDocument() { return m_pSDKDoc; } 67 CPDFSDK_Document* GetSDKDocument() { return m_pSDKDoc; }
68 FX_BOOL OnLButtonDown(const CFX_FloatPoint& point, FX_UINT nFlag); 68 FX_BOOL OnLButtonDown(const CFX_FloatPoint& point, uint32_t nFlag);
69 FX_BOOL OnLButtonUp(const CFX_FloatPoint& point, FX_UINT nFlag); 69 FX_BOOL OnLButtonUp(const CFX_FloatPoint& point, uint32_t nFlag);
70 #ifdef PDF_ENABLE_XFA 70 #ifdef PDF_ENABLE_XFA
71 FX_BOOL OnRButtonDown(const CFX_FloatPoint& point, FX_UINT nFlag); 71 FX_BOOL OnRButtonDown(const CFX_FloatPoint& point, uint32_t nFlag);
72 FX_BOOL OnRButtonUp(const CFX_FloatPoint& point, FX_UINT nFlag); 72 FX_BOOL OnRButtonUp(const CFX_FloatPoint& point, uint32_t nFlag);
73 #endif // PDF_ENABLE_XFA 73 #endif // PDF_ENABLE_XFA
74 FX_BOOL OnChar(int nChar, FX_UINT nFlag); 74 FX_BOOL OnChar(int nChar, uint32_t nFlag);
75 FX_BOOL OnKeyDown(int nKeyCode, int nFlag); 75 FX_BOOL OnKeyDown(int nKeyCode, int nFlag);
76 FX_BOOL OnKeyUp(int nKeyCode, int nFlag); 76 FX_BOOL OnKeyUp(int nKeyCode, int nFlag);
77 77
78 FX_BOOL OnMouseMove(const CFX_FloatPoint& point, int nFlag); 78 FX_BOOL OnMouseMove(const CFX_FloatPoint& point, int nFlag);
79 FX_BOOL OnMouseWheel(double deltaX, 79 FX_BOOL OnMouseWheel(double deltaX,
80 double deltaY, 80 double deltaY,
81 const CFX_FloatPoint& point, 81 const CFX_FloatPoint& point,
82 int nFlag); 82 int nFlag);
83 bool IsValidAnnot(const CPDF_Annot* p) const; 83 bool IsValidAnnot(const CPDF_Annot* p) const;
84 void GetCurrentMatrix(CFX_Matrix& matrix) { matrix = m_curMatrix; } 84 void GetCurrentMatrix(CFX_Matrix& matrix) { matrix = m_curMatrix; }
(...skipping 28 matching lines...) Expand all
113 bool m_bOwnsPage; 113 bool m_bOwnsPage;
114 #endif // PDF_ENABLE_XFA 114 #endif // PDF_ENABLE_XFA
115 FX_BOOL m_bEnterWidget; 115 FX_BOOL m_bEnterWidget;
116 FX_BOOL m_bExitWidget; 116 FX_BOOL m_bExitWidget;
117 FX_BOOL m_bOnWidget; 117 FX_BOOL m_bOnWidget;
118 FX_BOOL m_bValid; 118 FX_BOOL m_bValid;
119 FX_BOOL m_bLocked; 119 FX_BOOL m_bLocked;
120 }; 120 };
121 121
122 #endif // FPDFSDK_INCLUDE_CPDFSDK_PAGEVIEW_H_ 122 #endif // FPDFSDK_INCLUDE_CPDFSDK_PAGEVIEW_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/cpdfsdk_environment.h ('k') | fpdfsdk/include/fsdk_define.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698