summaryrefslogtreecommitdiff
path: root/xfa/fxfa/cxfa_ffdocview.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-10-18 13:20:59 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-10-18 17:31:16 +0000
commit68708e4344b9624fe677854321846a4c23b7e226 (patch)
tree802b9c1208a872fd5468efd0e5341ae180703000 /xfa/fxfa/cxfa_ffdocview.h
parent04e4dc88da34c323e7a16586bddf377a610d63c5 (diff)
downloadpdfium-68708e4344b9624fe677854321846a4c23b7e226.tar.xz
Cleanup nits in cxfa_ffdocviewchromium/3244
This CL does some minor cleanup in the cxfa_ffdocview file to better match coding style. Change-Id: Iafb4fd2ba9c1963494b388104bd77d5423121227 Reviewed-on: https://pdfium-review.googlesource.com/16271 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_ffdocview.h')
-rw-r--r--xfa/fxfa/cxfa_ffdocview.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/xfa/fxfa/cxfa_ffdocview.h b/xfa/fxfa/cxfa_ffdocview.h
index 067b41165a..6f8b682a73 100644
--- a/xfa/fxfa/cxfa_ffdocview.h
+++ b/xfa/fxfa/cxfa_ffdocview.h
@@ -47,7 +47,7 @@ class CXFA_FFDocView {
int32_t StartLayout(int32_t iStartPage = 0);
int32_t DoLayout();
void StopLayout();
- int32_t GetLayoutStatus();
+ int32_t GetLayoutStatus() const { return m_iStatus; }
void UpdateDocView();
int32_t CountPageViews() const;
CXFA_FFPageView* GetPageView(int32_t nIndex) const;
@@ -57,7 +57,7 @@ class CXFA_FFDocView {
CXFA_WidgetAcc* pWidgetAcc);
CXFA_FFWidgetHandler* GetWidgetHandler();
std::unique_ptr<CXFA_WidgetAccIterator> CreateWidgetAccIterator();
- CXFA_FFWidget* GetFocusWidget() const;
+ CXFA_FFWidget* GetFocusWidget() const { return m_pFocusWidget.Get(); }
void KillFocus();
bool SetFocus(CXFA_FFWidget* hWidget);
CXFA_FFWidget* GetWidgetByName(const WideString& wsName,
@@ -66,10 +66,10 @@ class CXFA_FFDocView {
CXFA_WidgetAcc* pRefWidgetAcc);
CXFA_LayoutProcessor* GetXFALayout() const;
void OnPageEvent(CXFA_ContainerLayoutItem* pSender, uint32_t dwEvent);
- void LockUpdate();
- void UnlockUpdate();
- bool IsUpdateLocked();
- void ClearInvalidateList();
+ void LockUpdate() { m_iLock++; }
+ void UnlockUpdate() { m_iLock--; }
+ bool IsUpdateLocked() { return m_iLock > 0; }
+ void ClearInvalidateList() { m_mapPageInvalidate.clear(); }
void AddInvalidateRect(CXFA_FFWidget* pWidget, const CFX_RectF& rtInvalidate);
void AddInvalidateRect(CXFA_FFPageView* pPageView,
const CFX_RectF& rtInvalidate);
@@ -86,12 +86,14 @@ class CXFA_FFDocView {
void AddCalculateNodeNotify(CXFA_Node* pNodeChange);
void AddCalculateWidgetAcc(CXFA_WidgetAcc* pWidgetAcc);
int32_t RunCalculateWidgets();
- bool IsStaticNotify();
+ bool IsStaticNotify() {
+ return m_pDoc->GetFormType() == FormType::kXFAForeground;
+ }
bool RunLayout();
void RunSubformIndexChange();
void AddNewFormNode(CXFA_Node* pNode);
void AddIndexChangedSubform(CXFA_Node* pNode);
- CXFA_WidgetAcc* GetFocusWidgetAcc();
+ CXFA_WidgetAcc* GetFocusWidgetAcc() const { return m_pFocusAcc.Get(); }
void SetFocusWidgetAcc(CXFA_WidgetAcc* pWidgetAcc);
void DeleteLayoutItem(CXFA_FFWidget* pWidget);
int32_t ExecEventActivityByDeepFirst(CXFA_Node* pFormNode,
@@ -109,7 +111,7 @@ class CXFA_FFDocView {
bool RunEventLayoutReady();
void RunBindItems();
- bool InitCalculate(CXFA_Node* pNode);
+ void InitCalculate(CXFA_Node* pNode);
void InitLayout(CXFA_Node* pNode);
size_t RunCalculateRecursive(size_t index);
void ShowNullTestMsg();