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

Side by Side Diff: xfa/fwl/core/cfwl_themepart.h

Issue 1921853006: More FWL interface cleanup. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: 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
« no previous file with comments | « xfa/fwl/basewidget/fwl_tooltipctrlimp.cpp ('k') | xfa/fwl/core/fwl_appimp.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 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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_CORE_CFWL_THEMEPART_H_ 7 #ifndef XFA_FWL_CORE_CFWL_THEMEPART_H_
8 #define XFA_FWL_CORE_CFWL_THEMEPART_H_ 8 #define XFA_FWL_CORE_CFWL_THEMEPART_H_
9 9
10 #include "core/fxcrt/include/fx_coordinates.h" 10 #include "core/fxcrt/include/fx_coordinates.h"
11 #include "core/fxcrt/include/fx_system.h" 11 #include "core/fxcrt/include/fx_system.h"
12 #include "xfa/fwl/core/ifwl_widget.h"
13 12
14 enum class CFWL_Part { 13 enum class CFWL_Part {
15 None = 0, 14 None = 0,
16 15
17 BackArrow, 16 BackArrow,
18 Background, 17 Background,
19 Border, 18 Border,
20 Caption, 19 Caption,
21 Check, 20 Check,
22 CheckBox, 21 CheckBox,
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 CFWL_PartState_Hovered = 1 << 7, 70 CFWL_PartState_Hovered = 1 << 7,
72 CFWL_PartState_Inactive = 1 << 8, 71 CFWL_PartState_Inactive = 1 << 8,
73 CFWL_PartState_Neutral = 1 << 9, 72 CFWL_PartState_Neutral = 1 << 9,
74 CFWL_PartState_Pressed = 1 << 10, 73 CFWL_PartState_Pressed = 1 << 10,
75 CFWL_PartState_ReadOnly = 1 << 11, 74 CFWL_PartState_ReadOnly = 1 << 11,
76 CFWL_PartState_LSelected = 1 << 12, 75 CFWL_PartState_LSelected = 1 << 12,
77 CFWL_PartState_RSelected = 1 << 13, 76 CFWL_PartState_RSelected = 1 << 13,
78 CFWL_PartState_Selected = 1 << 14 77 CFWL_PartState_Selected = 1 << 14
79 }; 78 };
80 79
80 class IFWL_Widget;
81
81 class CFWL_ThemePart { 82 class CFWL_ThemePart {
82 public: 83 public:
83 CFWL_ThemePart() 84 CFWL_ThemePart()
84 : m_pWidget(nullptr), 85 : m_pWidget(nullptr),
85 m_iPart(CFWL_Part::None), 86 m_iPart(CFWL_Part::None),
86 m_dwStates(CFWL_PartState_Normal), 87 m_dwStates(CFWL_PartState_Normal),
87 m_dwData(0), 88 m_dwData(0),
88 m_pData(nullptr) { 89 m_pData(nullptr) {
89 m_rtPart.Reset(); 90 m_rtPart.Reset();
90 m_matrix.SetIdentity(); 91 m_matrix.SetIdentity();
91 } 92 }
92 93
93 CFX_Matrix m_matrix; 94 CFX_Matrix m_matrix;
94 CFX_RectF m_rtPart; 95 CFX_RectF m_rtPart;
95 IFWL_Widget* m_pWidget; 96 IFWL_Widget* m_pWidget;
96 CFWL_Part m_iPart; 97 CFWL_Part m_iPart;
97 uint32_t m_dwStates; 98 uint32_t m_dwStates;
98 uint32_t m_dwData; 99 uint32_t m_dwData;
99 void* m_pData; 100 void* m_pData;
100 }; 101 };
101 102
102 #endif // XFA_FWL_CORE_CFWL_THEMEPART_H_ 103 #endif // XFA_FWL_CORE_CFWL_THEMEPART_H_
OLDNEW
« no previous file with comments | « xfa/fwl/basewidget/fwl_tooltipctrlimp.cpp ('k') | xfa/fwl/core/fwl_appimp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698