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

Side by Side Diff: xfa/fwl/theme/cfwl_widgettp.h

Issue 2575093002: Cleanup widget edge related code (Closed)
Patch Set: Rebase to master Created 4 years 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/theme/cfwl_pushbuttontp.cpp ('k') | xfa/fwl/theme/cfwl_widgettp.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_THEME_CFWL_WIDGETTP_H_ 7 #ifndef XFA_FWL_THEME_CFWL_WIDGETTP_H_
8 #define XFA_FWL_THEME_CFWL_WIDGETTP_H_ 8 #define XFA_FWL_THEME_CFWL_WIDGETTP_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 FX_FLOAT fFontSize, 127 FX_FLOAT fFontSize,
128 FX_ARGB rgbFont); 128 FX_ARGB rgbFont);
129 CFGAS_GEFont* GetFont(CFWL_Widget* pWidget); 129 CFGAS_GEFont* GetFont(CFWL_Widget* pWidget);
130 130
131 protected: 131 protected:
132 CFWL_WidgetTP(); 132 CFWL_WidgetTP();
133 133
134 void InitTTO(); 134 void InitTTO();
135 void FinalizeTTO(); 135 void FinalizeTTO();
136 136
137 void DrawEdge(CFX_Graphics* pGraphics,
138 uint32_t dwStyles,
139 const CFX_RectF* pRect,
140 CFX_Matrix* pMatrix = nullptr);
141 void Draw3DRect(CFX_Graphics* pGraphics, 137 void Draw3DRect(CFX_Graphics* pGraphics,
142 FWLTHEME_EDGE eType, 138 FWLTHEME_EDGE eType,
143 FX_FLOAT fWidth, 139 FX_FLOAT fWidth,
144 const CFX_RectF* pRect, 140 const CFX_RectF* pRect,
145 FX_ARGB cr1, 141 FX_ARGB cr1,
146 FX_ARGB cr2, 142 FX_ARGB cr2,
147 FX_ARGB cr3, 143 FX_ARGB cr3,
148 FX_ARGB cr4, 144 FX_ARGB cr4,
149 CFX_Matrix* pMatrix = nullptr); 145 CFX_Matrix* pMatrix = nullptr);
150 void Draw3DCircle(CFX_Graphics* pGraphics, 146 void Draw3DCircle(CFX_Graphics* pGraphics,
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 250
255 protected: 251 protected:
256 CFWL_FontManager(); 252 CFWL_FontManager();
257 virtual ~CFWL_FontManager(); 253 virtual ~CFWL_FontManager();
258 254
259 static CFWL_FontManager* s_FontManager; 255 static CFWL_FontManager* s_FontManager;
260 std::vector<std::unique_ptr<CFWL_FontData>> m_FontsArray; 256 std::vector<std::unique_ptr<CFWL_FontData>> m_FontsArray;
261 }; 257 };
262 258
263 #endif // XFA_FWL_THEME_CFWL_WIDGETTP_H_ 259 #endif // XFA_FWL_THEME_CFWL_WIDGETTP_H_
OLDNEW
« no previous file with comments | « xfa/fwl/theme/cfwl_pushbuttontp.cpp ('k') | xfa/fwl/theme/cfwl_widgettp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698