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

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

Issue 2436103002: Remove FWL globals. (Closed)
Patch Set: Review feedback Created 4 years, 1 month 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/xfa_ffapp.h ('k') | no next file » | 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_XFA_FFWIDGET_H_ 7 #ifndef XFA_FXFA_XFA_FFWIDGET_H_
8 #define XFA_FXFA_XFA_FFWIDGET_H_ 8 #define XFA_FXFA_XFA_FFWIDGET_H_
9 9
10 #include <vector> 10 #include <vector>
11 11
12 #include "core/fxcodec/fx_codec_def.h" 12 #include "core/fxcodec/fx_codec_def.h"
13 #include "core/fxge/cfx_graphstatedata.h" 13 #include "core/fxge/cfx_graphstatedata.h"
14 #include "xfa/fwl/core/ifwl_app.h"
14 #include "xfa/fxfa/fxfa.h" 15 #include "xfa/fxfa/fxfa.h"
15 #include "xfa/fxfa/parser/cxfa_contentlayoutitem.h" 16 #include "xfa/fxfa/parser/cxfa_contentlayoutitem.h"
16 17
17 class CXFA_FFPageView; 18 class CXFA_FFPageView;
18 class CXFA_FFDocView; 19 class CXFA_FFDocView;
19 class CXFA_FFDoc; 20 class CXFA_FFDoc;
20 class CXFA_FFApp; 21 class CXFA_FFApp;
21 enum class FWL_WidgetHit; 22 enum class FWL_WidgetHit;
22 23
23 inline FX_FLOAT XFA_UnitPx2Pt(FX_FLOAT fPx, FX_FLOAT fDpi) { 24 inline FX_FLOAT XFA_UnitPx2Pt(FX_FLOAT fPx, FX_FLOAT fDpi) {
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 IXFA_AppProvider* GetAppProvider(); 117 IXFA_AppProvider* GetAppProvider();
117 void InvalidateWidget(const CFX_RectF* pRect = nullptr); 118 void InvalidateWidget(const CFX_RectF* pRect = nullptr);
118 void AddInvalidateRect(const CFX_RectF* pRect = nullptr); 119 void AddInvalidateRect(const CFX_RectF* pRect = nullptr);
119 FX_BOOL GetCaptionText(CFX_WideString& wsCap); 120 FX_BOOL GetCaptionText(CFX_WideString& wsCap);
120 bool IsFocused(); 121 bool IsFocused();
121 void Rotate2Normal(FX_FLOAT& fx, FX_FLOAT& fy); 122 void Rotate2Normal(FX_FLOAT& fx, FX_FLOAT& fy);
122 void GetRotateMatrix(CFX_Matrix& mt); 123 void GetRotateMatrix(CFX_Matrix& mt);
123 FX_BOOL IsLayoutRectEmpty(); 124 FX_BOOL IsLayoutRectEmpty();
124 CXFA_FFWidget* GetParent(); 125 CXFA_FFWidget* GetParent();
125 FX_BOOL IsAncestorOf(CXFA_FFWidget* pWidget); 126 FX_BOOL IsAncestorOf(CXFA_FFWidget* pWidget);
127 const IFWL_App* GetFWLApp();
126 128
127 protected: 129 protected:
128 virtual FX_BOOL PtInActiveRect(FX_FLOAT fx, FX_FLOAT fy); 130 virtual FX_BOOL PtInActiveRect(FX_FLOAT fx, FX_FLOAT fy);
129 131
130 void DrawBorder(CFX_Graphics* pGS, 132 void DrawBorder(CFX_Graphics* pGS,
131 CXFA_Box box, 133 CXFA_Box box,
132 const CFX_RectF& rtBorder, 134 const CFX_RectF& rtBorder,
133 CFX_Matrix* pMatrix, 135 CFX_Matrix* pMatrix,
134 uint32_t dwFlags = 0); 136 uint32_t dwFlags = 0);
135 void GetMinMaxWidth(FX_FLOAT fMinWidth, FX_FLOAT fMaxWidth); 137 void GetMinMaxWidth(FX_FLOAT fMinWidth, FX_FLOAT fMaxWidth);
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 FX_BOOL XFA_IsCreateWidget(XFA_Element iType); 179 FX_BOOL XFA_IsCreateWidget(XFA_Element iType);
178 #define XFA_DRAWBOX_ForceRound 1 180 #define XFA_DRAWBOX_ForceRound 1
179 #define XFA_DRAWBOX_Lowered3D 2 181 #define XFA_DRAWBOX_Lowered3D 2
180 void XFA_DrawBox(CXFA_Box box, 182 void XFA_DrawBox(CXFA_Box box,
181 CFX_Graphics* pGS, 183 CFX_Graphics* pGS,
182 const CFX_RectF& rtWidget, 184 const CFX_RectF& rtWidget,
183 CFX_Matrix* pMatrix, 185 CFX_Matrix* pMatrix,
184 uint32_t dwFlags = 0); 186 uint32_t dwFlags = 0);
185 187
186 #endif // XFA_FXFA_XFA_FFWIDGET_H_ 188 #endif // XFA_FXFA_XFA_FFWIDGET_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/xfa_ffapp.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698