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

Side by Side Diff: xfa/include/fwl/core/fwl_theme.h

Issue 1172793002: Merge to XFA: Use stdint.h types throughout PDFium. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 6 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/core/fwl_note.h ('k') | xfa/include/fwl/core/fwl_thread.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_THEME_H 7 #ifndef _FWL_THEME_H
8 #define _FWL_THEME_H 8 #define _FWL_THEME_H
9 class IFWL_Widget; 9 class IFWL_Widget;
10 class CFWL_ThemePart; 10 class CFWL_ThemePart;
(...skipping 24 matching lines...) Expand all
35 , m_dwStates(0) 35 , m_dwStates(0)
36 , m_dwData(0) 36 , m_dwData(0)
37 , m_pData(NULL) 37 , m_pData(NULL)
38 { 38 {
39 m_rtPart.Reset(); 39 m_rtPart.Reset();
40 m_matrix.Reset(); 40 m_matrix.Reset();
41 } 41 }
42 CFX_Matrix m_matrix; 42 CFX_Matrix m_matrix;
43 CFX_RectF m_rtPart; 43 CFX_RectF m_rtPart;
44 IFWL_Widget *m_pWidget; 44 IFWL_Widget *m_pWidget;
45 FX_INT32» » » » m_iPart; 45 int32_t» » » » m_iPart;
46 FX_DWORD m_dwStates; 46 FX_DWORD m_dwStates;
47 FX_DWORD m_dwData; 47 FX_DWORD m_dwData;
48 FX_LPVOID m_pData; 48 FX_LPVOID m_pData;
49 }; 49 };
50 class CFWL_ThemeBackground : public CFWL_ThemePart 50 class CFWL_ThemeBackground : public CFWL_ThemePart
51 { 51 {
52 public: 52 public:
53 CFWL_ThemeBackground() 53 CFWL_ThemeBackground()
54 : m_pGraphics(NULL) 54 : m_pGraphics(NULL)
55 , m_pImage(NULL) 55 , m_pImage(NULL)
56 , m_pPath(NULL) 56 , m_pPath(NULL)
57 { 57 {
58 } 58 }
59 CFX_Graphics *m_pGraphics; 59 CFX_Graphics *m_pGraphics;
60 CFX_DIBitmap *m_pImage; 60 CFX_DIBitmap *m_pImage;
61 CFX_Path *m_pPath; 61 CFX_Path *m_pPath;
62 }; 62 };
63 class CFWL_ThemeText : public CFWL_ThemePart 63 class CFWL_ThemeText : public CFWL_ThemePart
64 { 64 {
65 public: 65 public:
66 CFWL_ThemeText() 66 CFWL_ThemeText()
67 : m_pGraphics(NULL) 67 : m_pGraphics(NULL)
68 { 68 {
69 } 69 }
70 CFX_WideString m_wsText; 70 CFX_WideString m_wsText;
71 FX_DWORD m_dwTTOStyles; 71 FX_DWORD m_dwTTOStyles;
72 FX_INT32» » » » m_iTTOAlign; 72 int32_t» » » » m_iTTOAlign;
73 CFX_Graphics *m_pGraphics; 73 CFX_Graphics *m_pGraphics;
74 }; 74 };
75 class IFWL_ThemeProvider 75 class IFWL_ThemeProvider
76 { 76 {
77 public: 77 public:
78 virtual FX_BOOL IsValidWidget(IFWL_Widget *pWidget) = 0; 78 virtual FX_BOOL IsValidWidget(IFWL_Widget *pWidget) = 0;
79 virtual FX_DWORD GetThemeID(IFWL_Widget *pWidget) = 0; 79 virtual FX_DWORD GetThemeID(IFWL_Widget *pWidget) = 0;
80 virtual FX_DWORD SetThemeID(IFWL_Widget *pWidget, FX_DWORD dwThemeID, FX_ BOOL bChildren = TRUE) = 0; 80 virtual FX_DWORD SetThemeID(IFWL_Widget *pWidget, FX_DWORD dwThemeID, FX_ BOOL bChildren = TRUE) = 0;
81 virtual FWL_ERR GetThemeMatrix(IFWL_Widget *pWidget, CFX_Matrix &matrix) = 0; 81 virtual FWL_ERR GetThemeMatrix(IFWL_Widget *pWidget, CFX_Matrix &matrix) = 0;
82 virtual FWL_ERR SetThemeMatrix(IFWL_Widget *pWidget, const CFX_M atrix &matrix) = 0; 82 virtual FWL_ERR SetThemeMatrix(IFWL_Widget *pWidget, const CFX_M atrix &matrix) = 0;
83 virtual FX_BOOL DrawBackground(CFWL_ThemeBackground *pParams) = 0; 83 virtual FX_BOOL DrawBackground(CFWL_ThemeBackground *pParams) = 0;
84 virtual FX_BOOL DrawText(CFWL_ThemeText *pParams) = 0; 84 virtual FX_BOOL DrawText(CFWL_ThemeText *pParams) = 0;
85 virtual FX_LPVOID GetCapacity(CFWL_ThemePart *pThemePart, FX_DWORD dwCapac ity) = 0; 85 virtual FX_LPVOID GetCapacity(CFWL_ThemePart *pThemePart, FX_DWORD dwCapac ity) = 0;
86 virtual FX_BOOL IsCustomizedLayout(IFWL_Widget *pWidget) = 0; 86 virtual FX_BOOL IsCustomizedLayout(IFWL_Widget *pWidget) = 0;
87 virtual FWL_ERR GetPartRect(CFWL_ThemePart *pThemePart, CFX_Rect F &rtPart) = 0; 87 virtual FWL_ERR GetPartRect(CFWL_ThemePart *pThemePart, CFX_Rect F &rtPart) = 0;
88 virtual FX_BOOL IsInPart(CFWL_ThemePart *pThemePart, FX_FLOAT fx , FX_FLOAT fy) = 0; 88 virtual FX_BOOL IsInPart(CFWL_ThemePart *pThemePart, FX_FLOAT fx , FX_FLOAT fy) = 0;
89 virtual FX_BOOL CalcTextRect(CFWL_ThemeText *pParams, CFX_RectF &rect) = 0; 89 virtual FX_BOOL CalcTextRect(CFWL_ThemeText *pParams, CFX_RectF &rect) = 0;
90 }; 90 };
91 #endif 91 #endif
OLDNEW
« no previous file with comments | « xfa/include/fwl/core/fwl_note.h ('k') | xfa/include/fwl/core/fwl_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698