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

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

Issue 1960673003: Replace some calls to Release() with direct delete, part 1. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Add unique ptrs 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
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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 void DrawBtn(CFX_Graphics* pGraphics, 213 void DrawBtn(CFX_Graphics* pGraphics,
214 const CFX_RectF* pRect, 214 const CFX_RectF* pRect,
215 FWLTHEME_STATE eState, 215 FWLTHEME_STATE eState,
216 CFX_Matrix* pMatrix = NULL); 216 CFX_Matrix* pMatrix = NULL);
217 void DrawArrowBtn(CFX_Graphics* pGraphics, 217 void DrawArrowBtn(CFX_Graphics* pGraphics,
218 const CFX_RectF* pRect, 218 const CFX_RectF* pRect,
219 FWLTHEME_DIRECTION eDict, 219 FWLTHEME_DIRECTION eDict,
220 FWLTHEME_STATE eState, 220 FWLTHEME_STATE eState,
221 CFX_Matrix* pMatrix = NULL); 221 CFX_Matrix* pMatrix = NULL);
222 uint32_t m_dwRefCount; 222 uint32_t m_dwRefCount;
223 CFDE_TextOut* m_pTextOut; 223 std::unique_ptr<CFDE_TextOut> m_pTextOut;
224 IFX_Font* m_pFDEFont; 224 IFX_Font* m_pFDEFont;
225 FX_FLOAT m_fValue; 225 FX_FLOAT m_fValue;
226 uint32_t m_dwValue; 226 uint32_t m_dwValue;
227 CFX_RectF m_rtMargin; 227 CFX_RectF m_rtMargin;
228 uint32_t m_dwThemeID; 228 uint32_t m_dwThemeID;
229 CFX_Matrix _ctm; 229 CFX_Matrix _ctm;
230 }; 230 };
231 FX_BOOL FWLTHEME_Init(); 231 FX_BOOL FWLTHEME_Init();
232 void FWLTHEME_Release(); 232 void FWLTHEME_Release();
233 uint32_t FWL_GetThemeLayout(uint32_t dwThemeID); 233 uint32_t FWL_GetThemeLayout(uint32_t dwThemeID);
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 288
289 protected: 289 protected:
290 CFWL_FontManager(); 290 CFWL_FontManager();
291 virtual ~CFWL_FontManager(); 291 virtual ~CFWL_FontManager();
292 292
293 static CFWL_FontManager* s_FontManager; 293 static CFWL_FontManager* s_FontManager;
294 std::vector<std::unique_ptr<CFWL_FontData>> m_FontsArray; 294 std::vector<std::unique_ptr<CFWL_FontData>> m_FontsArray;
295 }; 295 };
296 296
297 #endif // XFA_FWL_THEME_CFWL_WIDGETTP_H_ 297 #endif // XFA_FWL_THEME_CFWL_WIDGETTP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698