Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(276)

Side by Side Diff: xfa/fwl/core/fwl_widgetmgrimp.h

Issue 1951653002: Return bool rather than bitwise-and for FX_BOOL (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: More bool, fix nits. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fwl/core/fwl_noteimp.cpp ('k') | xfa/fwl/core/fwl_widgetmgrimp.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef XFA_FWL_CORE_FWL_WIDGETMGRIMP_H_ 7 #ifndef XFA_FWL_CORE_FWL_WIDGETMGRIMP_H_
8 #define XFA_FWL_CORE_FWL_WIDGETMGRIMP_H_ 8 #define XFA_FWL_CORE_FWL_WIDGETMGRIMP_H_
9 9
10 #include "core/fxcrt/include/fx_system.h" 10 #include "core/fxcrt/include/fx_system.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 IFWL_Widget* GetSiblingRadioButton(IFWL_Widget* pWidget, FX_BOOL bNext); 113 IFWL_Widget* GetSiblingRadioButton(IFWL_Widget* pWidget, FX_BOOL bNext);
114 IFWL_Widget* GetRadioButtonGroupHeader(IFWL_Widget* pRadioButton); 114 IFWL_Widget* GetRadioButtonGroupHeader(IFWL_Widget* pRadioButton);
115 void GetSameGroupRadioButton(IFWL_Widget* pRadioButton, 115 void GetSameGroupRadioButton(IFWL_Widget* pRadioButton,
116 CFX_ArrayTemplate<IFWL_Widget*>& group); 116 CFX_ArrayTemplate<IFWL_Widget*>& group);
117 IFWL_Widget* GetDefaultButton(IFWL_Widget* pParent); 117 IFWL_Widget* GetDefaultButton(IFWL_Widget* pParent);
118 void AddRedrawCounts(IFWL_Widget* pWidget); 118 void AddRedrawCounts(IFWL_Widget* pWidget);
119 void ResetRedrawCounts(IFWL_Widget* pWidget); 119 void ResetRedrawCounts(IFWL_Widget* pWidget);
120 IFWL_AdapterWidgetMgr* GetAdapterWidgetMgr() { return m_pAdapter; } 120 IFWL_AdapterWidgetMgr* GetAdapterWidgetMgr() { return m_pAdapter; }
121 CFWL_WidgetMgrDelegate* GetDelegate() { return m_pDelegate; } 121 CFWL_WidgetMgrDelegate* GetDelegate() { return m_pDelegate; }
122 CFWL_WidgetMgrItem* GetWidgetMgrItem(IFWL_Widget* pWidget); 122 CFWL_WidgetMgrItem* GetWidgetMgrItem(IFWL_Widget* pWidget);
123 FX_BOOL IsThreadEnabled(); 123 bool IsThreadEnabled();
124 FX_BOOL IsFormDisabled(); 124 bool IsFormDisabled();
125 FX_BOOL GetAdapterPopupPos(IFWL_Widget* pWidget, 125 FX_BOOL GetAdapterPopupPos(IFWL_Widget* pWidget,
126 FX_FLOAT fMinHeight, 126 FX_FLOAT fMinHeight,
127 FX_FLOAT fMaxHeight, 127 FX_FLOAT fMaxHeight,
128 const CFX_RectF& rtAnchor, 128 const CFX_RectF& rtAnchor,
129 CFX_RectF& rtPopup); 129 CFX_RectF& rtPopup);
130 130
131 protected: 131 protected:
132 int32_t TravelWidgetMgr(CFWL_WidgetMgrItem* pParent, 132 int32_t TravelWidgetMgr(CFWL_WidgetMgrItem* pParent,
133 int32_t* pIndex, 133 int32_t* pIndex,
134 CFWL_WidgetMgrItem* pItem, 134 CFWL_WidgetMgrItem* pItem,
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 const CFX_Matrix* pMatrix); 169 const CFX_Matrix* pMatrix);
170 FX_BOOL IsNeedRepaint(IFWL_Widget* pWidget, 170 FX_BOOL IsNeedRepaint(IFWL_Widget* pWidget,
171 CFX_Matrix* pMatrix, 171 CFX_Matrix* pMatrix,
172 const CFX_RectF& rtDirty); 172 const CFX_RectF& rtDirty);
173 FX_BOOL bUseOffscreenDirect(IFWL_Widget* pWidget); 173 FX_BOOL bUseOffscreenDirect(IFWL_Widget* pWidget);
174 174
175 CFWL_WidgetMgr* m_pWidgetMgr; 175 CFWL_WidgetMgr* m_pWidgetMgr;
176 }; 176 };
177 177
178 #endif // XFA_FWL_CORE_FWL_WIDGETMGRIMP_H_ 178 #endif // XFA_FWL_CORE_FWL_WIDGETMGRIMP_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/fwl_noteimp.cpp ('k') | xfa/fwl/core/fwl_widgetmgrimp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698