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

Side by Side Diff: xfa/fxfa/include/xfa_ffdocview.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/include/fxfa_widget.h ('k') | xfa/fxfa/parser/cxfa_widgetdata.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 XFA_FXFA_INCLUDE_XFA_FFDOCVIEW_H_ 7 #ifndef XFA_FXFA_INCLUDE_XFA_FFDOCVIEW_H_
8 #define XFA_FXFA_INCLUDE_XFA_FFDOCVIEW_H_ 8 #define XFA_FXFA_INCLUDE_XFA_FFDOCVIEW_H_
9 9
10 #include "xfa/fxfa/include/xfa_ffdoc.h" 10 #include "xfa/fxfa/include/xfa_ffdoc.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 CXFA_WidgetAccIterator* CreateWidgetAccIterator( 53 CXFA_WidgetAccIterator* CreateWidgetAccIterator(
54 XFA_WIDGETORDER eOrder = XFA_WIDGETORDER_PreOrder); 54 XFA_WIDGETORDER eOrder = XFA_WIDGETORDER_PreOrder);
55 CXFA_FFWidget* GetFocusWidget(); 55 CXFA_FFWidget* GetFocusWidget();
56 void KillFocus(); 56 void KillFocus();
57 FX_BOOL SetFocus(CXFA_FFWidget* hWidget); 57 FX_BOOL SetFocus(CXFA_FFWidget* hWidget);
58 CXFA_FFWidget* GetWidgetByName(const CFX_WideStringC& wsName, 58 CXFA_FFWidget* GetWidgetByName(const CFX_WideStringC& wsName,
59 CXFA_FFWidget* pRefWidget = NULL); 59 CXFA_FFWidget* pRefWidget = NULL);
60 CXFA_WidgetAcc* GetWidgetAccByName(const CFX_WideStringC& wsName, 60 CXFA_WidgetAcc* GetWidgetAccByName(const CFX_WideStringC& wsName,
61 CXFA_WidgetAcc* pRefWidgetAcc = NULL); 61 CXFA_WidgetAcc* pRefWidgetAcc = NULL);
62 CXFA_LayoutProcessor* GetXFALayout() const; 62 CXFA_LayoutProcessor* GetXFALayout() const;
63 void OnPageEvent(CXFA_ContainerLayoutItem* pSender, 63 void OnPageEvent(CXFA_ContainerLayoutItem* pSender, uint32_t dwEvent);
64 XFA_PAGEEVENT eEvent,
65 int32_t iPageIndex);
66 void LockUpdate(); 64 void LockUpdate();
67 void UnlockUpdate(); 65 void UnlockUpdate();
68 FX_BOOL IsUpdateLocked(); 66 FX_BOOL IsUpdateLocked();
69 void ClearInvalidateList(); 67 void ClearInvalidateList();
70 void AddInvalidateRect(CXFA_FFWidget* pWidget, const CFX_RectF& rtInvalidate); 68 void AddInvalidateRect(CXFA_FFWidget* pWidget, const CFX_RectF& rtInvalidate);
71 void AddInvalidateRect(CXFA_FFPageView* pPageView, 69 void AddInvalidateRect(CXFA_FFPageView* pPageView,
72 const CFX_RectF& rtInvalidate); 70 const CFX_RectF& rtInvalidate);
73 void RunInvalidate(); 71 void RunInvalidate();
74 void RunDocClose(); 72 void RunDocClose();
75 void DestroyDocView(); 73 void DestroyDocView();
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 FX_BOOL SetCurrentWidgetAcc(CXFA_WidgetAcc* hWidget); 161 FX_BOOL SetCurrentWidgetAcc(CXFA_WidgetAcc* hWidget);
164 void SkipTree(); 162 void SkipTree();
165 163
166 protected: 164 protected:
167 CXFA_ContainerIterator m_ContentIterator; 165 CXFA_ContainerIterator m_ContentIterator;
168 CXFA_FFDocView* m_pDocView; 166 CXFA_FFDocView* m_pDocView;
169 CXFA_WidgetAcc* m_pCurWidgetAcc; 167 CXFA_WidgetAcc* m_pCurWidgetAcc;
170 }; 168 };
171 169
172 #endif // XFA_FXFA_INCLUDE_XFA_FFDOCVIEW_H_ 170 #endif // XFA_FXFA_INCLUDE_XFA_FFDOCVIEW_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/include/fxfa_widget.h ('k') | xfa/fxfa/parser/cxfa_widgetdata.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698