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

Side by Side Diff: xfa/fxfa/include/xfa_ffwidget.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/fxfa/app/xfa_ffwidget.cpp ('k') | xfa/fxfa/parser/xfa_document_imp.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_FXFA_INCLUDE_XFA_FFWIDGET_H_ 7 #ifndef XFA_FXFA_INCLUDE_XFA_FFWIDGET_H_
8 #define XFA_FXFA_INCLUDE_XFA_FFWIDGET_H_ 8 #define XFA_FXFA_INCLUDE_XFA_FFWIDGET_H_
9 9
10 #include <vector> 10 #include <vector>
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 return FALSE; 112 return FALSE;
113 } 113 }
114 CXFA_FFDocView* GetDocView(); 114 CXFA_FFDocView* GetDocView();
115 void SetDocView(CXFA_FFDocView* pDocView) { m_pDocView = pDocView; } 115 void SetDocView(CXFA_FFDocView* pDocView) { m_pDocView = pDocView; }
116 CXFA_FFDoc* GetDoc(); 116 CXFA_FFDoc* GetDoc();
117 CXFA_FFApp* GetApp(); 117 CXFA_FFApp* GetApp();
118 IXFA_AppProvider* GetAppProvider(); 118 IXFA_AppProvider* GetAppProvider();
119 void InvalidateWidget(const CFX_RectF* pRect = NULL); 119 void InvalidateWidget(const CFX_RectF* pRect = NULL);
120 void AddInvalidateRect(const CFX_RectF* pRect = NULL); 120 void AddInvalidateRect(const CFX_RectF* pRect = NULL);
121 FX_BOOL GetCaptionText(CFX_WideString& wsCap); 121 FX_BOOL GetCaptionText(CFX_WideString& wsCap);
122 FX_BOOL IsFocused(); 122 bool IsFocused();
123 void Rotate2Normal(FX_FLOAT& fx, FX_FLOAT& fy); 123 void Rotate2Normal(FX_FLOAT& fx, FX_FLOAT& fy);
124 void GetRotateMatrix(CFX_Matrix& mt); 124 void GetRotateMatrix(CFX_Matrix& mt);
125 FX_BOOL IsLayoutRectEmpty(); 125 FX_BOOL IsLayoutRectEmpty();
126 CXFA_FFWidget* GetParent(); 126 CXFA_FFWidget* GetParent();
127 FX_BOOL IsAncestorOf(CXFA_FFWidget* pWidget); 127 FX_BOOL IsAncestorOf(CXFA_FFWidget* pWidget);
128 128
129 protected: 129 protected:
130 virtual FX_BOOL PtInActiveRect(FX_FLOAT fx, FX_FLOAT fy); 130 virtual FX_BOOL PtInActiveRect(FX_FLOAT fx, FX_FLOAT fy);
131 void DrawBorder(CFX_Graphics* pGS, 131 void DrawBorder(CFX_Graphics* pGS,
132 CXFA_Box box, 132 CXFA_Box box,
133 const CFX_RectF& rtBorder, 133 const CFX_RectF& rtBorder,
134 CFX_Matrix* pMatrix, 134 CFX_Matrix* pMatrix,
135 uint32_t dwFlags = 0); 135 uint32_t dwFlags = 0);
136 void GetMinMaxWidth(FX_FLOAT fMinWidth, FX_FLOAT fMaxWidth); 136 void GetMinMaxWidth(FX_FLOAT fMinWidth, FX_FLOAT fMaxWidth);
137 void GetMinMaxHeight(FX_FLOAT fMinHeight, FX_FLOAT fMaxHeight); 137 void GetMinMaxHeight(FX_FLOAT fMinHeight, FX_FLOAT fMaxHeight);
138 void GetRectWithoutRotate(CFX_RectF& rtWidget); 138 void GetRectWithoutRotate(CFX_RectF& rtWidget);
139 FX_BOOL IsMatchVisibleStatus(uint32_t dwStatus); 139 bool IsMatchVisibleStatus(uint32_t dwStatus);
140 140
141 void EventKillFocus(); 141 void EventKillFocus();
142 FX_BOOL IsButtonDown(); 142 FX_BOOL IsButtonDown();
143 void SetButtonDown(FX_BOOL bSet); 143 void SetButtonDown(FX_BOOL bSet);
144 CXFA_FFDocView* m_pDocView; 144 CXFA_FFDocView* m_pDocView;
145 CXFA_FFPageView* m_pPageView; 145 CXFA_FFPageView* m_pPageView;
146 CXFA_WidgetAcc* m_pDataAcc; 146 CXFA_WidgetAcc* m_pDataAcc;
147 CFX_RectF m_rtWidget; 147 CFX_RectF m_rtWidget;
148 }; 148 };
149 int32_t XFA_StrokeTypeSetLineDash(CFX_Graphics* pGraphics, 149 int32_t XFA_StrokeTypeSetLineDash(CFX_Graphics* pGraphics,
(...skipping 27 matching lines...) Expand all
177 FX_BOOL XFA_IsCreateWidget(XFA_ELEMENT iType); 177 FX_BOOL XFA_IsCreateWidget(XFA_ELEMENT iType);
178 #define XFA_DRAWBOX_ForceRound 1 178 #define XFA_DRAWBOX_ForceRound 1
179 #define XFA_DRAWBOX_Lowered3D 2 179 #define XFA_DRAWBOX_Lowered3D 2
180 void XFA_DrawBox(CXFA_Box box, 180 void XFA_DrawBox(CXFA_Box box,
181 CFX_Graphics* pGS, 181 CFX_Graphics* pGS,
182 const CFX_RectF& rtWidget, 182 const CFX_RectF& rtWidget,
183 CFX_Matrix* pMatrix, 183 CFX_Matrix* pMatrix,
184 uint32_t dwFlags = 0); 184 uint32_t dwFlags = 0);
185 185
186 #endif // XFA_FXFA_INCLUDE_XFA_FFWIDGET_H_ 186 #endif // XFA_FXFA_INCLUDE_XFA_FFWIDGET_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/app/xfa_ffwidget.cpp ('k') | xfa/fxfa/parser/xfa_document_imp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698