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

Side by Side Diff: xfa/fxfa/include/fxfa.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 | « xfa/fxfa/app/xfa_ffwidgethandler.cpp ('k') | xfa/fxfa/include/fxfa_widget.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 XFA_FXFA_INCLUDE_FXFA_H_ 7 #ifndef XFA_FXFA_INCLUDE_FXFA_H_
8 #define XFA_FXFA_INCLUDE_FXFA_H_ 8 #define XFA_FXFA_INCLUDE_FXFA_H_
9 9
10 #include <vector> 10 #include <vector>
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 #define XFA_PRINTOPT_CanCancel 0x00000002 272 #define XFA_PRINTOPT_CanCancel 0x00000002
273 #define XFA_PRINTOPT_ShrinkPage 0x00000004 273 #define XFA_PRINTOPT_ShrinkPage 0x00000004
274 #define XFA_PRINTOPT_AsImage 0x00000008 274 #define XFA_PRINTOPT_AsImage 0x00000008
275 #define XFA_PRINTOPT_ReverseOrder 0x00000010 275 #define XFA_PRINTOPT_ReverseOrder 0x00000010
276 #define XFA_PRINTOPT_PrintAnnot 0x00000020 276 #define XFA_PRINTOPT_PrintAnnot 0x00000020
277 #define XFA_PAGEVIEWEVENT_PostAdded 1 277 #define XFA_PAGEVIEWEVENT_PostAdded 1
278 #define XFA_PAGEVIEWEVENT_PostRemoved 3 278 #define XFA_PAGEVIEWEVENT_PostRemoved 3
279 #define XFA_PAGEVIEWEVENT_StopLayout 4 279 #define XFA_PAGEVIEWEVENT_StopLayout 4
280 #define XFA_WIDGETEVENT_PostAdded 2 280 #define XFA_WIDGETEVENT_PostAdded 2
281 #define XFA_WIDGETEVENT_PreRemoved 3 281 #define XFA_WIDGETEVENT_PreRemoved 3
282 #define XFA_WIDGETEVENT_PostContentChanged 6 282
283 #define XFA_WIDGETEVENT_ListItemRemoved 7
284 #define XFA_WIDGETEVENT_ListItemAdded 8
285 #define XFA_WIDGETEVENT_AccessChanged 9
286 class IXFA_DocProvider { 283 class IXFA_DocProvider {
287 public: 284 public:
288 virtual ~IXFA_DocProvider() {} 285 virtual ~IXFA_DocProvider() {}
289 286
290 virtual void SetChangeMark(CXFA_FFDoc* hDoc) = 0; 287 virtual void SetChangeMark(CXFA_FFDoc* hDoc) = 0;
291 virtual void InvalidateRect(CXFA_FFPageView* pPageView, 288 virtual void InvalidateRect(CXFA_FFPageView* pPageView,
292 const CFX_RectF& rt, 289 const CFX_RectF& rt,
293 uint32_t dwFlags = 0) = 0; 290 uint32_t dwFlags = 0) = 0;
294 virtual void DisplayCaret(CXFA_FFWidget* hWidget, 291 virtual void DisplayCaret(CXFA_FFWidget* hWidget,
295 FX_BOOL bVisible, 292 FX_BOOL bVisible,
296 const CFX_RectF* pRtAnchor) = 0; 293 const CFX_RectF* pRtAnchor) = 0;
297 virtual FX_BOOL GetPopupPos(CXFA_FFWidget* hWidget, 294 virtual FX_BOOL GetPopupPos(CXFA_FFWidget* hWidget,
298 FX_FLOAT fMinPopup, 295 FX_FLOAT fMinPopup,
299 FX_FLOAT fMaxPopup, 296 FX_FLOAT fMaxPopup,
300 const CFX_RectF& rtAnchor, 297 const CFX_RectF& rtAnchor,
301 CFX_RectF& rtPopup) = 0; 298 CFX_RectF& rtPopup) = 0;
302 virtual FX_BOOL PopupMenu(CXFA_FFWidget* hWidget, 299 virtual FX_BOOL PopupMenu(CXFA_FFWidget* hWidget,
303 CFX_PointF ptPopup, 300 CFX_PointF ptPopup,
304 const CFX_RectF* pRectExclude = NULL) = 0; 301 const CFX_RectF* pRectExclude = NULL) = 0;
305 virtual void PageViewEvent(CXFA_FFPageView* pPageView, uint32_t dwFlags) = 0; 302 virtual void PageViewEvent(CXFA_FFPageView* pPageView, uint32_t dwFlags) = 0;
306 virtual void WidgetEvent(CXFA_FFWidget* hWidget, 303 virtual void WidgetEvent(CXFA_FFWidget* hWidget,
307 CXFA_WidgetAcc* pWidgetData, 304 CXFA_WidgetAcc* pWidgetData,
308 uint32_t dwEvent, 305 uint32_t dwEvent) = 0;
309 void* pParam = NULL,
310 void* pAdditional = NULL) = 0;
311 virtual FX_BOOL RenderCustomWidget(CXFA_FFWidget* hWidget, 306 virtual FX_BOOL RenderCustomWidget(CXFA_FFWidget* hWidget,
312 CFX_Graphics* pGS, 307 CFX_Graphics* pGS,
313 CFX_Matrix* pMatrix, 308 CFX_Matrix* pMatrix,
314 const CFX_RectF& rtUI) { 309 const CFX_RectF& rtUI) {
315 return FALSE; 310 return FALSE;
316 } 311 }
317 virtual int32_t CountPages(CXFA_FFDoc* hDoc) = 0; 312 virtual int32_t CountPages(CXFA_FFDoc* hDoc) = 0;
318 virtual int32_t GetCurrentPage(CXFA_FFDoc* hDoc) = 0; 313 virtual int32_t GetCurrentPage(CXFA_FFDoc* hDoc) = 0;
319 virtual void SetCurrentPage(CXFA_FFDoc* hDoc, int32_t iCurPage) = 0; 314 virtual void SetCurrentPage(CXFA_FFDoc* hDoc, int32_t iCurPage) = 0;
320 virtual FX_BOOL IsCalculationsEnabled(CXFA_FFDoc* hDoc) = 0; 315 virtual FX_BOOL IsCalculationsEnabled(CXFA_FFDoc* hDoc) = 0;
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 virtual CXFA_FFWidget* MoveToNext() = 0; 541 virtual CXFA_FFWidget* MoveToNext() = 0;
547 virtual CXFA_FFWidget* MoveToPrevious() = 0; 542 virtual CXFA_FFWidget* MoveToPrevious() = 0;
548 virtual CXFA_FFWidget* GetCurrentWidget() = 0; 543 virtual CXFA_FFWidget* GetCurrentWidget() = 0;
549 virtual FX_BOOL SetCurrentWidget(CXFA_FFWidget* hWidget) = 0; 544 virtual FX_BOOL SetCurrentWidget(CXFA_FFWidget* hWidget) = 0;
550 545
551 protected: 546 protected:
552 ~IXFA_WidgetIterator() {} 547 ~IXFA_WidgetIterator() {}
553 }; 548 };
554 549
555 #endif // XFA_FXFA_INCLUDE_FXFA_H_ 550 #endif // XFA_FXFA_INCLUDE_FXFA_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/app/xfa_ffwidgethandler.cpp ('k') | xfa/fxfa/include/fxfa_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698