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

Side by Side Diff: xfa/fxfa/parser/xfa_object.h

Issue 1890563003: Simplify XFA event handling. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: remove CXFA_FFNotify::OnNodeEvent and XFA_NODEEVENT 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
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_PARSER_XFA_OBJECT_H_ 7 #ifndef XFA_FXFA_PARSER_XFA_OBJECT_H_
8 #define XFA_FXFA_PARSER_XFA_OBJECT_H_ 8 #define XFA_FXFA_PARSER_XFA_OBJECT_H_
9 9
10 #include "xfa/fde/xml/fde_xml.h" 10 #include "xfa/fde/xml/fde_xml.h"
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 void Script_Delta_Restore(CFXJSE_Arguments* pArguments); 369 void Script_Delta_Restore(CFXJSE_Arguments* pArguments);
370 void Script_Delta_CurrentValue(FXJSE_HVALUE hValue, 370 void Script_Delta_CurrentValue(FXJSE_HVALUE hValue,
371 FX_BOOL bSetting, 371 FX_BOOL bSetting,
372 XFA_ATTRIBUTE eAttribute); 372 XFA_ATTRIBUTE eAttribute);
373 void Script_Delta_SavedValue(FXJSE_HVALUE hValue, 373 void Script_Delta_SavedValue(FXJSE_HVALUE hValue,
374 FX_BOOL bSetting, 374 FX_BOOL bSetting,
375 XFA_ATTRIBUTE eAttribute); 375 XFA_ATTRIBUTE eAttribute);
376 void Script_Delta_Target(FXJSE_HVALUE hValue, 376 void Script_Delta_Target(FXJSE_HVALUE hValue,
377 FX_BOOL bSetting, 377 FX_BOOL bSetting,
378 XFA_ATTRIBUTE eAttribute); 378 XFA_ATTRIBUTE eAttribute);
379 void Script_Attribute_SendAttributeChangeMessage(void* eAttribute, 379 void Script_Attribute_SendAttributeChangeMessage(XFA_ATTRIBUTE eAttribute,
380 void* eValue,
381 FX_BOOL bScriptModify); 380 FX_BOOL bScriptModify);
382 void Script_Attribute_Integer(FXJSE_HVALUE hValue, 381 void Script_Attribute_Integer(FXJSE_HVALUE hValue,
383 FX_BOOL bSetting, 382 FX_BOOL bSetting,
384 XFA_ATTRIBUTE eAttribute); 383 XFA_ATTRIBUTE eAttribute);
385 void Script_Attribute_IntegerRead(FXJSE_HVALUE hValue, 384 void Script_Attribute_IntegerRead(FXJSE_HVALUE hValue,
386 FX_BOOL bSetting, 385 FX_BOOL bSetting,
387 XFA_ATTRIBUTE eAttribute); 386 XFA_ATTRIBUTE eAttribute);
388 void Script_Attribute_BOOL(FXJSE_HVALUE hValue, 387 void Script_Attribute_BOOL(FXJSE_HVALUE hValue,
389 FX_BOOL bSetting, 388 FX_BOOL bSetting,
390 XFA_ATTRIBUTE eAttribute); 389 XFA_ATTRIBUTE eAttribute);
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 CXFA_Node* Deprecated_GetPrevSibling(); 591 CXFA_Node* Deprecated_GetPrevSibling();
593 FX_BOOL SetValue(XFA_ATTRIBUTE eAttr, 592 FX_BOOL SetValue(XFA_ATTRIBUTE eAttr,
594 XFA_ATTRIBUTETYPE eType, 593 XFA_ATTRIBUTETYPE eType,
595 void* pValue, 594 void* pValue,
596 FX_BOOL bNotify); 595 FX_BOOL bNotify);
597 FX_BOOL GetValue(XFA_ATTRIBUTE eAttr, 596 FX_BOOL GetValue(XFA_ATTRIBUTE eAttr,
598 XFA_ATTRIBUTETYPE eType, 597 XFA_ATTRIBUTETYPE eType,
599 FX_BOOL bUseDefault, 598 FX_BOOL bUseDefault,
600 void*& pValue); 599 void*& pValue);
601 void OnRemoved(CXFA_Node* pParent, CXFA_Node* pRemoved, FX_BOOL bNotify); 600 void OnRemoved(CXFA_Node* pParent, CXFA_Node* pRemoved, FX_BOOL bNotify);
602 void OnChanging(XFA_ATTRIBUTE eAttr, void* pNewValue, FX_BOOL bNotify); 601 void OnChanging(XFA_ATTRIBUTE eAttr, FX_BOOL bNotify);
603 void OnChanged(XFA_ATTRIBUTE eAttr, 602 void OnChanged(XFA_ATTRIBUTE eAttr,
604 void* pNewValue,
605 FX_BOOL bNotify, 603 FX_BOOL bNotify,
606 FX_BOOL bScriptModify = FALSE); 604 FX_BOOL bScriptModify = FALSE);
607 int32_t execSingleEventByName(const CFX_WideStringC& wsEventName, 605 int32_t execSingleEventByName(const CFX_WideStringC& wsEventName,
608 XFA_ELEMENT eElementType); 606 XFA_ELEMENT eElementType);
609 FX_BOOL SetScriptContent(const CFX_WideString& wsContent, 607 FX_BOOL SetScriptContent(const CFX_WideString& wsContent,
610 const CFX_WideString& wsXMLValue, 608 const CFX_WideString& wsXMLValue,
611 FX_BOOL bNotify = TRUE, 609 FX_BOOL bNotify = TRUE,
612 FX_BOOL bScriptModify = FALSE, 610 FX_BOOL bScriptModify = FALSE,
613 FX_BOOL bSyncData = TRUE); 611 FX_BOOL bSyncData = TRUE);
614 CFX_WideString GetScriptContent(FX_BOOL bScriptModify = FALSE); 612 CFX_WideString GetScriptContent(FX_BOOL bScriptModify = FALSE);
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 return pObj ? pObj->AsNode() : nullptr; 794 return pObj ? pObj->AsNode() : nullptr;
797 } 795 }
798 inline const CXFA_OrdinaryObject* ToOrdinaryObject(const CXFA_Object* pObj) { 796 inline const CXFA_OrdinaryObject* ToOrdinaryObject(const CXFA_Object* pObj) {
799 return pObj ? pObj->AsOrdinaryObject() : nullptr; 797 return pObj ? pObj->AsOrdinaryObject() : nullptr;
800 } 798 }
801 inline const CXFA_NodeList* ToNodeList(const CXFA_Object* pObj) { 799 inline const CXFA_NodeList* ToNodeList(const CXFA_Object* pObj) {
802 return pObj ? pObj->AsNodeList() : nullptr; 800 return pObj ? pObj->AsNodeList() : nullptr;
803 } 801 }
804 802
805 #endif // XFA_FXFA_PARSER_XFA_OBJECT_H_ 803 #endif // XFA_FXFA_PARSER_XFA_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698