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

Side by Side Diff: fpdfsdk/cpdfsdk_pageview.h

Issue 2400473002: Start proxying CPDFSDK_Document methods through CPDFSDK_FormFillEnvironment (Closed)
Patch Set: Rebase to master Created 4 years, 2 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/cpdfsdk_interform.h ('k') | fpdfsdk/cpdfsdk_pageview.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 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_CPDFSDK_PAGEVIEW_H_ 7 #ifndef FPDFSDK_CPDFSDK_PAGEVIEW_H_
8 #define FPDFSDK_CPDFSDK_PAGEVIEW_H_ 8 #define FPDFSDK_CPDFSDK_PAGEVIEW_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 #ifdef PDF_ENABLE_XFA 51 #ifdef PDF_ENABLE_XFA
52 FX_BOOL DeleteAnnot(CPDFSDK_Annot* pAnnot); 52 FX_BOOL DeleteAnnot(CPDFSDK_Annot* pAnnot);
53 CPDFSDK_Annot* AddAnnot(CXFA_FFWidget* pPDFAnnot); 53 CPDFSDK_Annot* AddAnnot(CXFA_FFWidget* pPDFAnnot);
54 CPDFSDK_Annot* GetAnnotByXFAWidget(CXFA_FFWidget* hWidget); 54 CPDFSDK_Annot* GetAnnotByXFAWidget(CXFA_FFWidget* hWidget);
55 55
56 CPDFXFA_Page* GetPDFXFAPage() { return m_page; } 56 CPDFXFA_Page* GetPDFXFAPage() { return m_page; }
57 #endif // PDF_ENABLE_XFA 57 #endif // PDF_ENABLE_XFA
58 58
59 CPDF_Page* GetPDFPage() const; 59 CPDF_Page* GetPDFPage() const;
60 CPDF_Document* GetPDFDocument(); 60 CPDF_Document* GetPDFDocument();
61 CPDFSDK_Document* GetSDKDocument() { return m_pSDKDoc; } 61 CPDFSDK_FormFillEnvironment* GetFormFillEnv() { return m_pSDKDoc->GetEnv(); }
62
62 FX_BOOL OnLButtonDown(const CFX_FloatPoint& point, uint32_t nFlag); 63 FX_BOOL OnLButtonDown(const CFX_FloatPoint& point, uint32_t nFlag);
63 FX_BOOL OnLButtonUp(const CFX_FloatPoint& point, uint32_t nFlag); 64 FX_BOOL OnLButtonUp(const CFX_FloatPoint& point, uint32_t nFlag);
64 #ifdef PDF_ENABLE_XFA 65 #ifdef PDF_ENABLE_XFA
65 FX_BOOL OnRButtonDown(const CFX_FloatPoint& point, uint32_t nFlag); 66 FX_BOOL OnRButtonDown(const CFX_FloatPoint& point, uint32_t nFlag);
66 FX_BOOL OnRButtonUp(const CFX_FloatPoint& point, uint32_t nFlag); 67 FX_BOOL OnRButtonUp(const CFX_FloatPoint& point, uint32_t nFlag);
67 #endif // PDF_ENABLE_XFA 68 #endif // PDF_ENABLE_XFA
68 FX_BOOL OnChar(int nChar, uint32_t nFlag); 69 FX_BOOL OnChar(int nChar, uint32_t nFlag);
69 FX_BOOL OnKeyDown(int nKeyCode, int nFlag); 70 FX_BOOL OnKeyDown(int nKeyCode, int nFlag);
70 FX_BOOL OnKeyUp(int nKeyCode, int nFlag); 71 FX_BOOL OnKeyUp(int nKeyCode, int nFlag);
71 72
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 #endif // PDF_ENABLE_XFA 110 #endif // PDF_ENABLE_XFA
110 FX_BOOL m_bEnterWidget; 111 FX_BOOL m_bEnterWidget;
111 FX_BOOL m_bExitWidget; 112 FX_BOOL m_bExitWidget;
112 FX_BOOL m_bOnWidget; 113 FX_BOOL m_bOnWidget;
113 FX_BOOL m_bValid; 114 FX_BOOL m_bValid;
114 FX_BOOL m_bLocked; 115 FX_BOOL m_bLocked;
115 bool m_bBeingDestroyed; 116 bool m_bBeingDestroyed;
116 }; 117 };
117 118
118 #endif // FPDFSDK_CPDFSDK_PAGEVIEW_H_ 119 #endif // FPDFSDK_CPDFSDK_PAGEVIEW_H_
OLDNEW
« no previous file with comments | « fpdfsdk/cpdfsdk_interform.h ('k') | fpdfsdk/cpdfsdk_pageview.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698