summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_object.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-01-18 21:02:37 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-01-18 21:02:37 +0000
commitbbd02f1cd05f55cabee8fbd23a645ac69ac32574 (patch)
tree7932068c2548ed977e235b8ef38d36317a560c8e /xfa/fxfa/parser/cxfa_object.h
parent4aadb708642003404e666026bb6d390b5989e2b4 (diff)
downloadpdfium-bbd02f1cd05f55cabee8fbd23a645ac69ac32574.tar.xz
Move XFA_IsCreateWidget to CXFA_Object
This CL removes the free XFA_IsCreateWidget method and moves the functionality into CXFA_Object::HasCreatedUIWidget to clarify the purpose. Change-Id: Icca1f49238040b5d87fbb4eb33340f9309f5e2f3 Reviewed-on: https://pdfium-review.googlesource.com/23133 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_object.h')
-rw-r--r--xfa/fxfa/parser/cxfa_object.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/xfa/fxfa/parser/cxfa_object.h b/xfa/fxfa/parser/cxfa_object.h
index a58a922ea2..5d5f31c647 100644
--- a/xfa/fxfa/parser/cxfa_object.h
+++ b/xfa/fxfa/parser/cxfa_object.h
@@ -72,6 +72,12 @@ class CXFA_Object : public CFXJSE_HostObject {
CJX_Object* JSObject() { return m_pJSObject.get(); }
const CJX_Object* JSObject() const { return m_pJSObject.get(); }
+ bool HasCreatedUIWidget() const {
+ return m_elementType == XFA_Element::Field ||
+ m_elementType == XFA_Element::Draw ||
+ m_elementType == XFA_Element::Subform ||
+ m_elementType == XFA_Element::ExclGroup;
+ }
void CreateWidgetAcc();
CXFA_WidgetAcc* GetWidgetAcc() { return acc_.get(); }