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

Side by Side Diff: xfa/include/fwl/theme/scrollbartp.h

Issue 1087053002: Merge to XFA: Kill CFX_Object. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 8 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/include/fwl/theme/pushbuttontp.h ('k') | xfa/include/fwl/theme/widgettp.h » ('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 _FWL_SCROLLBARTP_H 7 #ifndef _FWL_SCROLLBARTP_H
8 #define _FWL_SCROLLBARTP_H 8 #define _FWL_SCROLLBARTP_H
9 class CFWL_WidgetTP; 9 class CFWL_WidgetTP;
10 class CFWL_ScrollBarTP; 10 class CFWL_ScrollBarTP;
11 class CFWL_ScrollBarTP : public CFWL_WidgetTP 11 class CFWL_ScrollBarTP : public CFWL_WidgetTP
12 { 12 {
13 public: 13 public:
14 CFWL_ScrollBarTP(); 14 CFWL_ScrollBarTP();
15 virtual ~CFWL_ScrollBarTP(); 15 virtual ~CFWL_ScrollBarTP();
16 virtual FX_BOOL IsValidWidget(IFWL_Widget *pWidget); 16 virtual FX_BOOL IsValidWidget(IFWL_Widget *pWidget);
17 virtual FX_DWORD SetThemeID(IFWL_Widget *pWidget, FX_DWORD dwThemeID, FX_ BOOL bChildren = TRUE); 17 virtual FX_DWORD SetThemeID(IFWL_Widget *pWidget, FX_DWORD dwThemeID, FX_ BOOL bChildren = TRUE);
18 virtual FX_BOOL DrawBackground(CFWL_ThemeBackground *pParams); 18 virtual FX_BOOL DrawBackground(CFWL_ThemeBackground *pParams);
19 virtual FX_LPVOID GetCapacity(CFWL_ThemePart *pThemePart, FX_DWORD dwCapac ity); 19 virtual FX_LPVOID GetCapacity(CFWL_ThemePart *pThemePart, FX_DWORD dwCapac ity);
20 protected: 20 protected:
21 void DrawThumbBtn(CFX_Graphics *pGraphics, const CFX_RectF *pRect, FX _BOOL bVert, FWLTHEME_STATE eState, FX_BOOL bPawButton = TRUE, CFX_Matrix *pMatr ix = NULL); 21 void DrawThumbBtn(CFX_Graphics *pGraphics, const CFX_RectF *pRect, FX _BOOL bVert, FWLTHEME_STATE eState, FX_BOOL bPawButton = TRUE, CFX_Matrix *pMatr ix = NULL);
22 void DrawTrack(CFX_Graphics *pGraphics, const CFX_RectF *pRect, FX_BO OL bVert, FWLTHEME_STATE eState, FX_BOOL bLowerTrack, CFX_Matrix *pMatrix = NULL ); 22 void DrawTrack(CFX_Graphics *pGraphics, const CFX_RectF *pRect, FX_BO OL bVert, FWLTHEME_STATE eState, FX_BOOL bLowerTrack, CFX_Matrix *pMatrix = NULL );
23 void DrawMaxMinBtn(CFX_Graphics *pGraphics, const CFX_RectF *pRect, F WLTHEME_DIRECTION eDict, FWLTHEME_STATE eState, CFX_Matrix *pMatrix = NULL); 23 void DrawMaxMinBtn(CFX_Graphics *pGraphics, const CFX_RectF *pRect, F WLTHEME_DIRECTION eDict, FWLTHEME_STATE eState, CFX_Matrix *pMatrix = NULL);
24 void DrawPaw(CFX_Graphics *pGraphics, const CFX_RectF *pRect, FX_BOOL bVe rt, FWLTHEME_STATE eState, CFX_Matrix *pMatrix = NULL); 24 void DrawPaw(CFX_Graphics *pGraphics, const CFX_RectF *pRect, FX_BOOL bVe rt, FWLTHEME_STATE eState, CFX_Matrix *pMatrix = NULL);
25 void SetThemeData(FX_DWORD dwID); 25 void SetThemeData(FX_DWORD dwID);
26 struct SBThemeData : public CFX_Object { 26 struct SBThemeData {
27 public:
28 FX_ARGB clrPawColorLight[4]; 27 FX_ARGB clrPawColorLight[4];
29 FX_ARGB clrPawColorDark[4]; 28 FX_ARGB clrPawColorDark[4];
30 FX_ARGB clrBtnBK[4][2]; 29 FX_ARGB clrBtnBK[4][2];
31 FX_ARGB clrBtnBorder[4]; 30 FX_ARGB clrBtnBorder[4];
32 FX_ARGB clrTrackBKStart; 31 FX_ARGB clrTrackBKStart;
33 FX_ARGB clrTrackBKEnd; 32 FX_ARGB clrTrackBKEnd;
34 } *m_pThemeData; 33 } *m_pThemeData;
35 }; 34 };
36 #endif 35 #endif
OLDNEW
« no previous file with comments | « xfa/include/fwl/theme/pushbuttontp.h ('k') | xfa/include/fwl/theme/widgettp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698