Chromium Code Reviews| OLD | NEW |
|---|---|
| 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_APP_XFA_FFNOTIFY_H_ | 7 #ifndef XFA_FXFA_APP_XFA_FFNOTIFY_H_ |
| 8 #define XFA_FXFA_APP_XFA_FFNOTIFY_H_ | 8 #define XFA_FXFA_APP_XFA_FFNOTIFY_H_ |
| 9 | 9 |
| 10 #include "xfa/fxfa/parser/xfa_document.h" | 10 #include "xfa/fxfa/parser/xfa_document.h" |
| 11 | 11 |
| 12 class CXFA_FFWidgetHandler; | 12 class CXFA_FFWidgetHandler; |
| 13 | 13 |
| 14 class CXFA_FFNotify { | 14 class CXFA_FFNotify { |
| 15 public: | 15 public: |
| 16 CXFA_FFNotify(CXFA_FFDoc* pDoc); | 16 CXFA_FFNotify(CXFA_FFDoc* pDoc); |
| 17 ~CXFA_FFNotify(); | 17 ~CXFA_FFNotify(); |
| 18 | 18 |
| 19 void OnPageEvent(CXFA_ContainerLayoutItem* pSender, | 19 void OnPageEvent(CXFA_ContainerLayoutItem* pSender, uint32_t dwEvent); |
| 20 XFA_PAGEEVENT eEvent, | |
| 21 void* pParam = NULL); | |
| 22 | 20 |
| 23 void OnNodeEvent(CXFA_Node* pSender, | 21 void OnNodeEvent(CXFA_Node* pSender, |
| 24 XFA_NODEEVENT eEvent, | 22 XFA_NODEEVENT eEvent, |
| 25 void* pParam = NULL, | 23 void* pParam = NULL, |
| 26 void* pParam2 = NULL, | 24 void* pParam2 = NULL, |
| 27 void* pParam3 = NULL, | 25 void* pParam3 = NULL, |
| 28 void* pParam4 = NULL); | 26 void* pParam4 = NULL); |
| 29 void OnWidgetDataEvent(CXFA_WidgetData* pSender, | 27 void OnWidgetDataEvent(CXFA_WidgetData* pSender, |
| 30 uint32_t dwEvent, | 28 uint32_t dwEvent, |
| 31 void* pParam = NULL, | 29 void* pParam = NULL, |
| 32 void* pAdditional = NULL, | 30 void* pAdditional = NULL, |
| 33 void* pAdditional2 = NULL); | 31 void* pAdditional2 = NULL); |
| 34 CXFA_LayoutItem* OnCreateLayoutItem(CXFA_Node* pNode); | 32 CXFA_LayoutItem* OnCreateLayoutItem(CXFA_Node* pNode); |
| 35 void OnLayoutEvent(CXFA_LayoutProcessor* pLayout, | 33 void OnLayoutItemAdd(CXFA_LayoutProcessor* pLayout, |
|
Tom Sepez
2016/04/14 22:45:44
nit: same issue with verb tense
Lei Zhang
2016/04/15 01:16:40
Already addressed from previous patch set.
| |
| 36 CXFA_LayoutItem* pSender, | 34 CXFA_LayoutItem* pSender, |
| 37 XFA_LAYOUTEVENT eEvent, | 35 int32_t iPageIdx, |
| 38 void* pParam = NULL, | 36 uint32_t dwStatus); |
| 39 void* pParam2 = NULL); | 37 void OnLayoutItemRemoving(CXFA_LayoutProcessor* pLayout, |
| 38 CXFA_LayoutItem* pSender); | |
| 40 | 39 |
| 41 void StartFieldDrawLayout(CXFA_Node* pItem, | 40 void StartFieldDrawLayout(CXFA_Node* pItem, |
| 42 FX_FLOAT& fCalcWidth, | 41 FX_FLOAT& fCalcWidth, |
| 43 FX_FLOAT& fCalcHeight); | 42 FX_FLOAT& fCalcHeight); |
| 44 FX_BOOL FindSplitPos(CXFA_Node* pItem, | 43 FX_BOOL FindSplitPos(CXFA_Node* pItem, |
| 45 int32_t iBlockIndex, | 44 int32_t iBlockIndex, |
| 46 FX_FLOAT& fCalcHeightPos); | 45 FX_FLOAT& fCalcHeightPos); |
| 47 FX_BOOL RunScript(CXFA_Node* pScript, CXFA_Node* pFormItem); | 46 FX_BOOL RunScript(CXFA_Node* pScript, CXFA_Node* pFormItem); |
| 48 int32_t ExecEventByDeepFirst(CXFA_Node* pFormNode, | 47 int32_t ExecEventByDeepFirst(CXFA_Node* pFormNode, |
| 49 XFA_EVENTTYPE eEventType, | 48 XFA_EVENTTYPE eEventType, |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 68 protected: | 67 protected: |
| 69 void OnNodeReady(CXFA_Node* pNode); | 68 void OnNodeReady(CXFA_Node* pNode); |
| 70 void OnValueChanging(CXFA_Node* pSender, void* pParam, void* pParam2); | 69 void OnValueChanging(CXFA_Node* pSender, void* pParam, void* pParam2); |
| 71 void OnValueChanged(CXFA_Node* pSender, | 70 void OnValueChanged(CXFA_Node* pSender, |
| 72 void* pParam, | 71 void* pParam, |
| 73 void* pParam2, | 72 void* pParam2, |
| 74 void* pParam3, | 73 void* pParam3, |
| 75 void* pParam4); | 74 void* pParam4); |
| 76 void OnChildAdded(CXFA_Node* pSender, void* pParam, void* pParam2); | 75 void OnChildAdded(CXFA_Node* pSender, void* pParam, void* pParam2); |
| 77 void OnChildRemoved(CXFA_Node* pSender, void* pParam, void* pParam2); | 76 void OnChildRemoved(CXFA_Node* pSender, void* pParam, void* pParam2); |
| 78 void OnLayoutItemAdd(CXFA_FFDocView* pDocView, | 77 |
| 79 CXFA_LayoutProcessor* pLayout, | 78 CXFA_FFDoc* const m_pDoc; |
| 80 CXFA_LayoutItem* pSender, | |
| 81 void* pParam, | |
| 82 void* pParam2); | |
| 83 void OnLayoutItemRemoving(CXFA_FFDocView* pDocView, | |
| 84 CXFA_LayoutProcessor* pLayout, | |
| 85 CXFA_LayoutItem* pSender, | |
| 86 void* pParam, | |
| 87 void* pParam2); | |
| 88 void OnLayoutItemRectChanged(CXFA_FFDocView* pDocView, | |
| 89 CXFA_LayoutProcessor* pLayout, | |
| 90 CXFA_LayoutItem* pSender, | |
| 91 void* pParam, | |
| 92 void* pParam2); | |
| 93 void OnLayoutItemStatustChanged(CXFA_FFDocView* pDocView, | |
| 94 CXFA_LayoutProcessor* pLayout, | |
| 95 CXFA_LayoutItem* pSender, | |
| 96 void* pParam, | |
| 97 void* pParam2); | |
| 98 CXFA_FFDoc* m_pDoc; | |
| 99 }; | 79 }; |
| 100 | 80 |
| 101 #endif // XFA_FXFA_APP_XFA_FFNOTIFY_H_ | 81 #endif // XFA_FXFA_APP_XFA_FFNOTIFY_H_ |
| OLD | NEW |