diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2018-01-08 15:47:33 -0500 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-01-08 21:09:35 +0000 |
commit | 88c8e2fe2076fa4b5088b912dd92c3b2a56bb3ec (patch) | |
tree | 3e7359b0b3d00a6afc60744428f579d8b2d01a33 /xfa/fxfa/cxfa_ffnotify.h | |
parent | 94fc2af0c9a800f39e4dbcac859f1ad490f7d725 (diff) | |
download | pdfium-88c8e2fe2076fa4b5088b912dd92c3b2a56bb3ec.tar.xz |
Differentiate the type of LayoutItem to create
This CL splits CXFA_FFNotify::OnCreateLayoutItem into a Content and
Container variant. This removes the need for casting at the two call
sites.
Change-Id: Ic19bf4398f0ea32099c270f3bb585a18004ccb5d
Reviewed-on: https://pdfium-review.googlesource.com/22412
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_ffnotify.h')
-rw-r--r-- | xfa/fxfa/cxfa_ffnotify.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xfa/fxfa/cxfa_ffnotify.h b/xfa/fxfa/cxfa_ffnotify.h index 35b38fd91a..924a060210 100644 --- a/xfa/fxfa/cxfa_ffnotify.h +++ b/xfa/fxfa/cxfa_ffnotify.h @@ -11,6 +11,8 @@ #include "xfa/fxfa/parser/cxfa_document.h" class CXFA_FFWidgetHandler; +class CXFA_ContainerLayoutItem; +class CXFA_ContentLayoutItem; class CXFA_FFNotify { public: @@ -35,7 +37,9 @@ class CXFA_FFNotify { void OnChildAdded(CXFA_Node* pSender); void OnChildRemoved(); - CXFA_LayoutItem* OnCreateLayoutItem(CXFA_Node* pNode); + CXFA_ContainerLayoutItem* OnCreateContainerLayoutItem(CXFA_Node* pNode); + CXFA_ContentLayoutItem* OnCreateContentLayoutItem(CXFA_Node* pNode); + void OnLayoutItemAdded(CXFA_LayoutProcessor* pLayout, CXFA_LayoutItem* pSender, int32_t iPageIdx, |