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

Side by Side Diff: fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h

Issue 1890563003: Simplify XFA event handling. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: address comments Created 4 years, 8 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/fpdfxfa/fpdfxfa_doc.cpp ('k') | xfa/fxfa/app/xfa_ffdocview.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_FPDFXFA_INCLUDE_FPDFXFA_DOC_H_ 7 #ifndef FPDFSDK_FPDFXFA_INCLUDE_FPDFXFA_DOC_H_
8 #define FPDFSDK_FPDFXFA_INCLUDE_FPDFXFA_DOC_H_ 8 #define FPDFSDK_FPDFXFA_INCLUDE_FPDFXFA_DOC_H_
9 9
10 #include <vector> 10 #include <vector>
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 CFX_RectF& rtPopup); 66 CFX_RectF& rtPopup);
67 virtual FX_BOOL PopupMenu(CXFA_FFWidget* hWidget, 67 virtual FX_BOOL PopupMenu(CXFA_FFWidget* hWidget,
68 CFX_PointF ptPopup, 68 CFX_PointF ptPopup,
69 const CFX_RectF* pRectExclude = NULL); 69 const CFX_RectF* pRectExclude = NULL);
70 70
71 // dwFlags XFA_PAGEVIEWEVENT_Added, XFA_PAGEVIEWEVENT_Removing 71 // dwFlags XFA_PAGEVIEWEVENT_Added, XFA_PAGEVIEWEVENT_Removing
72 virtual void PageViewEvent(CXFA_FFPageView* pPageView, uint32_t dwFlags); 72 virtual void PageViewEvent(CXFA_FFPageView* pPageView, uint32_t dwFlags);
73 // dwEvent refer to XFA_WIDGETEVENT_XXX 73 // dwEvent refer to XFA_WIDGETEVENT_XXX
74 virtual void WidgetEvent(CXFA_FFWidget* hWidget, 74 virtual void WidgetEvent(CXFA_FFWidget* hWidget,
75 CXFA_WidgetAcc* pWidgetData, 75 CXFA_WidgetAcc* pWidgetData,
76 uint32_t dwEvent, 76 uint32_t dwEvent);
77 void* pParam = NULL,
78 void* pAdditional = NULL);
79 77
80 // return true if render it. 78 // return true if render it.
81 virtual FX_BOOL RenderCustomWidget(CXFA_FFWidget* hWidget, 79 virtual FX_BOOL RenderCustomWidget(CXFA_FFWidget* hWidget,
82 CFX_Graphics* pGS, 80 CFX_Graphics* pGS,
83 CFX_Matrix* pMatrix, 81 CFX_Matrix* pMatrix,
84 const CFX_RectF& rtUI) { 82 const CFX_RectF& rtUI) {
85 return FALSE; 83 return FALSE;
86 } 84 }
87 85
88 // host method 86 // host method
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 CXFA_FFDoc* m_pXFADoc; 227 CXFA_FFDoc* m_pXFADoc;
230 CXFA_FFDocView* m_pXFADocView; 228 CXFA_FFDocView* m_pXFADocView;
231 CPDFXFA_App* m_pApp; 229 CPDFXFA_App* m_pApp;
232 IJS_Context* m_pJSContext; 230 IJS_Context* m_pJSContext;
233 CFX_ArrayTemplate<CPDFXFA_Page*> m_XFAPageList; 231 CFX_ArrayTemplate<CPDFXFA_Page*> m_XFAPageList;
234 LoadStatus m_nLoadStatus; 232 LoadStatus m_nLoadStatus;
235 int m_nPageCount; 233 int m_nPageCount;
236 }; 234 };
237 235
238 #endif // FPDFSDK_FPDFXFA_INCLUDE_FPDFXFA_DOC_H_ 236 #endif // FPDFSDK_FPDFXFA_INCLUDE_FPDFXFA_DOC_H_
OLDNEW
« no previous file with comments | « fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp ('k') | xfa/fxfa/app/xfa_ffdocview.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698