summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_document.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-02-14 15:44:21 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-02-14 15:44:21 +0000
commitd8d6f55140bd4f0a67de833346113cfa6e03c4bd (patch)
tree1031b18090215b45f2a1533dd0b17390bd6d96cc /xfa/fxfa/parser/cxfa_document.h
parent2f68cb53f5938e2dd572db79fc5689c987cb350d (diff)
downloadpdfium-d8d6f55140bd4f0a67de833346113cfa6e03c4bd.tar.xz
Cleanup CXFA_Document const-ness
This CL marks methods const where possible and removes redundant methods from CXFA_Document. Change-Id: I34804425469dfd52469daba68f64a4b511e5d4d0 Reviewed-on: https://pdfium-review.googlesource.com/26730 Commit-Queue: Ryan Harrison <rharrison@chromium.org> Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_document.h')
-rw-r--r--xfa/fxfa/parser/cxfa_document.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/xfa/fxfa/parser/cxfa_document.h b/xfa/fxfa/parser/cxfa_document.h
index 9dc8e52ab6..c04c31cfce 100644
--- a/xfa/fxfa/parser/cxfa_document.h
+++ b/xfa/fxfa/parser/cxfa_document.h
@@ -42,16 +42,13 @@ enum XFA_DocFlag {
class CFXJSE_Engine;
class CFXJS_Engine;
-class CFX_XMLDoc;
class CScript_DataWindow;
class CScript_EventPseudoModel;
class CScript_HostPseudoModel;
class CScript_LayoutPseudoModel;
class CScript_LogPseudoModel;
class CScript_SignaturePseudoModel;
-class CXFA_ContainerLayoutItem;
class CXFA_FFNotify;
-class CXFA_LayoutItem;
class CXFA_LayoutProcessor;
class CXFA_Node;
class CXFA_Object;
@@ -67,15 +64,16 @@ class CXFA_Document : public CXFA_NodeOwner {
CXFA_FFNotify* GetNotify() const { return notify_.Get(); }
CXFA_LocaleMgr* GetLocalMgr();
CXFA_Object* GetXFAObject(XFA_HashCode wsNodeNameHash);
- CXFA_Node* GetNodeByID(CXFA_Node* pRoot, const WideStringView& wsID);
- CXFA_Node* GetNotBindNode(const std::vector<CXFA_Object*>& arrayNodes);
+ CXFA_Node* GetNodeByID(CXFA_Node* pRoot, const WideStringView& wsID) const;
+ CXFA_Node* GetNotBindNode(const std::vector<CXFA_Object*>& arrayNodes) const;
CXFA_LayoutProcessor* GetLayoutProcessor();
- CXFA_LayoutProcessor* GetDocLayout();
- CFXJSE_Engine* GetScriptContext();
+ CFXJSE_Engine* GetScriptContext() const;
void SetRoot(CXFA_Node* pNewRoot) { m_pRootNode = pNewRoot; }
- bool HasFlag(uint32_t dwFlag) { return (m_dwDocFlags & dwFlag) == dwFlag; }
+ bool HasFlag(uint32_t dwFlag) const {
+ return (m_dwDocFlags & dwFlag) == dwFlag;
+ }
void SetFlag(uint32_t dwFlag, bool bOn);
bool IsInteractive();