diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-11-07 21:34:30 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-11-07 21:34:30 +0000 |
commit | b8656256af8855c652415095438d5c932790a2b2 (patch) | |
tree | 2dc4f7ef4d0f6df8f141867a4b1e160ecf5de6ce /xfa | |
parent | 31ed75b714b80b8497b35825bb926c5abb035299 (diff) | |
download | pdfium-b8656256af8855c652415095438d5c932790a2b2.tar.xz |
Rename CXFA_Submit to CXFA_SubmitData
This CL renames CXFA_Submit to CXFA_SubmitData to show it's part of the
data hierarchy.
Change-Id: I6f580a28e41e54ffa1f1c7b799d97f079303463f
Reviewed-on: https://pdfium-review.googlesource.com/18014
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa')
-rw-r--r-- | xfa/fxfa/cxfa_widgetacc.cpp | 4 | ||||
-rw-r--r-- | xfa/fxfa/fxfa.h | 2 | ||||
-rw-r--r-- | xfa/fxfa/parser/cxfa_eventdata.cpp | 4 | ||||
-rw-r--r-- | xfa/fxfa/parser/cxfa_eventdata.h | 4 | ||||
-rw-r--r-- | xfa/fxfa/parser/cxfa_submitdata.cpp (renamed from xfa/fxfa/parser/cxfa_submit.cpp) | 12 | ||||
-rw-r--r-- | xfa/fxfa/parser/cxfa_submitdata.h (renamed from xfa/fxfa/parser/cxfa_submit.h) | 10 |
6 files changed, 18 insertions, 18 deletions
diff --git a/xfa/fxfa/cxfa_widgetacc.cpp b/xfa/fxfa/cxfa_widgetacc.cpp index 59df6c9f4d..04733934a8 100644 --- a/xfa/fxfa/cxfa_widgetacc.cpp +++ b/xfa/fxfa/cxfa_widgetacc.cpp @@ -310,8 +310,8 @@ int32_t CXFA_WidgetAcc::ProcessEvent(const CXFA_EventData& eventData, case XFA_Element::SignData: break; case XFA_Element::Submit: - return GetDoc()->GetDocEnvironment()->SubmitData(GetDoc(), - eventData.GetSubmit()); + return GetDoc()->GetDocEnvironment()->SubmitData( + GetDoc(), eventData.GetSubmitData()); default: break; } diff --git a/xfa/fxfa/fxfa.h b/xfa/fxfa/fxfa.h index bb6864a6a4..b0f70f1fd7 100644 --- a/xfa/fxfa/fxfa.h +++ b/xfa/fxfa/fxfa.h @@ -257,7 +257,7 @@ class IXFA_DocEnvironment { uint32_t dwOptions) = 0; virtual FX_ARGB GetHighlightColor(CXFA_FFDoc* hDoc) = 0; - virtual bool SubmitData(CXFA_FFDoc* hDoc, CXFA_Submit submit) = 0; + virtual bool SubmitData(CXFA_FFDoc* hDoc, CXFA_SubmitData submitData) = 0; virtual bool GetGlobalProperty(CXFA_FFDoc* hDoc, const ByteStringView& szPropName, CFXJSE_Value* pValue) = 0; diff --git a/xfa/fxfa/parser/cxfa_eventdata.cpp b/xfa/fxfa/parser/cxfa_eventdata.cpp index 22943216c4..5d20e35718 100644 --- a/xfa/fxfa/parser/cxfa_eventdata.cpp +++ b/xfa/fxfa/parser/cxfa_eventdata.cpp @@ -34,8 +34,8 @@ CXFA_ScriptData CXFA_EventData::GetScriptData() const { return CXFA_ScriptData(m_pNode->GetChild(0, XFA_Element::Script, false)); } -CXFA_Submit CXFA_EventData::GetSubmit() const { - return CXFA_Submit(m_pNode->GetChild(0, XFA_Element::Submit, false)); +CXFA_SubmitData CXFA_EventData::GetSubmitData() const { + return CXFA_SubmitData(m_pNode->GetChild(0, XFA_Element::Submit, false)); } void CXFA_EventData::GetSignDataTarget(WideString& wsTarget) { diff --git a/xfa/fxfa/parser/cxfa_eventdata.h b/xfa/fxfa/parser/cxfa_eventdata.h index e9a79f008f..5c96b07148 100644 --- a/xfa/fxfa/parser/cxfa_eventdata.h +++ b/xfa/fxfa/parser/cxfa_eventdata.h @@ -12,7 +12,7 @@ #include "core/fxcrt/fx_string.h" #include "xfa/fxfa/parser/cxfa_data.h" #include "xfa/fxfa/parser/cxfa_scriptdata.h" -#include "xfa/fxfa/parser/cxfa_submit.h" +#include "xfa/fxfa/parser/cxfa_submitdata.h" class CXFA_Node; @@ -23,7 +23,7 @@ class CXFA_EventData : public CXFA_Data { int32_t GetActivity(); XFA_Element GetEventType() const; CXFA_ScriptData GetScriptData() const; - CXFA_Submit GetSubmit() const; + CXFA_SubmitData GetSubmitData() const; void GetRef(WideStringView& wsRef); void GetSignDataTarget(WideString& wsTarget); }; diff --git a/xfa/fxfa/parser/cxfa_submit.cpp b/xfa/fxfa/parser/cxfa_submitdata.cpp index b7802c0248..d0f7d8f8ad 100644 --- a/xfa/fxfa/parser/cxfa_submit.cpp +++ b/xfa/fxfa/parser/cxfa_submitdata.cpp @@ -4,24 +4,24 @@ // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com -#include "xfa/fxfa/parser/cxfa_submit.h" +#include "xfa/fxfa/parser/cxfa_submitdata.h" #include "xfa/fxfa/parser/cxfa_node.h" -CXFA_Submit::CXFA_Submit(CXFA_Node* pNode) : CXFA_Data(pNode) {} +CXFA_SubmitData::CXFA_SubmitData(CXFA_Node* pNode) : CXFA_Data(pNode) {} -bool CXFA_Submit::IsSubmitEmbedPDF() { +bool CXFA_SubmitData::IsSubmitEmbedPDF() { return m_pNode->JSNode()->GetBoolean(XFA_ATTRIBUTE_EmbedPDF); } -int32_t CXFA_Submit::GetSubmitFormat() { +int32_t CXFA_SubmitData::GetSubmitFormat() { return m_pNode->JSNode()->GetEnum(XFA_ATTRIBUTE_Format); } -void CXFA_Submit::GetSubmitTarget(WideStringView& wsTarget) { +void CXFA_SubmitData::GetSubmitTarget(WideStringView& wsTarget) { m_pNode->JSNode()->TryCData(XFA_ATTRIBUTE_Target, wsTarget, true); } -void CXFA_Submit::GetSubmitXDPContent(WideStringView& wsContent) { +void CXFA_SubmitData::GetSubmitXDPContent(WideStringView& wsContent) { m_pNode->JSNode()->TryCData(XFA_ATTRIBUTE_XdpContent, wsContent, true); } diff --git a/xfa/fxfa/parser/cxfa_submit.h b/xfa/fxfa/parser/cxfa_submitdata.h index 9d4d7fe281..b5005f34a8 100644 --- a/xfa/fxfa/parser/cxfa_submit.h +++ b/xfa/fxfa/parser/cxfa_submitdata.h @@ -4,8 +4,8 @@ // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com -#ifndef XFA_FXFA_PARSER_CXFA_SUBMIT_H_ -#define XFA_FXFA_PARSER_CXFA_SUBMIT_H_ +#ifndef XFA_FXFA_PARSER_CXFA_SUBMITDATA_H_ +#define XFA_FXFA_PARSER_CXFA_SUBMITDATA_H_ #include "core/fxcrt/fx_string.h" #include "core/fxcrt/fx_system.h" @@ -13,9 +13,9 @@ class CXFA_Node; -class CXFA_Submit : public CXFA_Data { +class CXFA_SubmitData : public CXFA_Data { public: - explicit CXFA_Submit(CXFA_Node* pNode); + explicit CXFA_SubmitData(CXFA_Node* pNode); bool IsSubmitEmbedPDF(); int32_t GetSubmitFormat(); @@ -23,4 +23,4 @@ class CXFA_Submit : public CXFA_Data { void GetSubmitXDPContent(WideStringView& wsContent); }; -#endif // XFA_FXFA_PARSER_CXFA_SUBMIT_H_ +#endif // XFA_FXFA_PARSER_CXFA_SUBMITDATA_H_ |