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

Side by Side Diff: xfa/src/fxfa/src/app/xfa_ffwidget.h

Issue 1740223002: Replace or remove _FX control-flow defines (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Two manual changes. Created 4 years, 9 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
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_SRC_FXFA_SRC_APP_XFA_FFWIDGET_H_ 7 #ifndef XFA_SRC_FXFA_SRC_APP_XFA_FFWIDGET_H_
8 #define XFA_SRC_FXFA_SRC_APP_XFA_FFWIDGET_H_ 8 #define XFA_SRC_FXFA_SRC_APP_XFA_FFWIDGET_H_
9 9
10 #include <vector> 10 #include <vector>
11 11
12 #include "core/include/fxcodec/fx_codec_def.h" 12 #include "core/include/fxcodec/fx_codec_def.h"
13 #include "core/include/fxge/fx_ge.h" 13 #include "core/include/fxge/fx_ge.h"
14 #include "xfa/include/fxfa/fxfa.h" 14 #include "xfa/include/fxfa/fxfa.h"
15 #include "xfa/src/fxfa/src/common/xfa_doclayout.h" 15 #include "xfa/src/fxfa/src/common/xfa_doclayout.h"
16 16
17 class CXFA_FFPageView; 17 class CXFA_FFPageView;
18 class CXFA_FFDocView; 18 class CXFA_FFDocView;
19 class CXFA_FFDoc; 19 class CXFA_FFDoc;
20 class CXFA_FFApp; 20 class CXFA_FFApp;
21 21
22 #define XFA_GOTO_POSITION_IF_FAIL(arg, pos) \
23 { \
24 if (!(arg)) \
25 goto pos; \
26 }
27 inline FX_FLOAT XFA_UnitPx2Pt(FX_FLOAT fPx, FX_FLOAT fDpi) { 22 inline FX_FLOAT XFA_UnitPx2Pt(FX_FLOAT fPx, FX_FLOAT fDpi) {
28 return fPx * 72.0f / fDpi; 23 return fPx * 72.0f / fDpi;
29 } 24 }
30 #define XFA_FLOAT_PERCISION 0.001f 25 #define XFA_FLOAT_PERCISION 0.001f
31 enum XFA_WIDGETITEM { 26 enum XFA_WIDGETITEM {
32 XFA_WIDGETITEM_Parent, 27 XFA_WIDGETITEM_Parent,
33 XFA_WIDGETITEM_FirstChild, 28 XFA_WIDGETITEM_FirstChild,
34 XFA_WIDGETITEM_NextSibling, 29 XFA_WIDGETITEM_NextSibling,
35 XFA_WIDGETITEM_PrevSibling, 30 XFA_WIDGETITEM_PrevSibling,
36 }; 31 };
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 FX_BOOL XFA_IsCreateWidget(XFA_ELEMENT iType); 178 FX_BOOL XFA_IsCreateWidget(XFA_ELEMENT iType);
184 #define XFA_DRAWBOX_ForceRound 1 179 #define XFA_DRAWBOX_ForceRound 1
185 #define XFA_DRAWBOX_Lowered3D 2 180 #define XFA_DRAWBOX_Lowered3D 2
186 void XFA_DrawBox(CXFA_Box box, 181 void XFA_DrawBox(CXFA_Box box,
187 CFX_Graphics* pGS, 182 CFX_Graphics* pGS,
188 const CFX_RectF& rtWidget, 183 const CFX_RectF& rtWidget,
189 CFX_Matrix* pMatrix, 184 CFX_Matrix* pMatrix,
190 FX_DWORD dwFlags = 0); 185 FX_DWORD dwFlags = 0);
191 186
192 #endif // XFA_SRC_FXFA_SRC_APP_XFA_FFWIDGET_H_ 187 #endif // XFA_SRC_FXFA_SRC_APP_XFA_FFWIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698