OLD | NEW |
---|---|
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_CFWL_WIDGET_H_ | 7 #ifndef XFA_FWL_CFWL_WIDGET_H_ |
8 #define XFA_FWL_CFWL_WIDGET_H_ | 8 #define XFA_FWL_CFWL_WIDGET_H_ |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
84 uint32_t GetStylesEx() const; | 84 uint32_t GetStylesEx() const; |
85 uint32_t GetStates() const; | 85 uint32_t GetStates() const; |
86 | 86 |
87 void LockUpdate() { m_iLock++; } | 87 void LockUpdate() { m_iLock++; } |
88 void UnlockUpdate() { | 88 void UnlockUpdate() { |
89 if (IsLocked()) | 89 if (IsLocked()) |
90 m_iLock--; | 90 m_iLock--; |
91 } | 91 } |
92 | 92 |
93 void TransformTo(CFWL_Widget* pWidget, FX_FLOAT& fx, FX_FLOAT& fy); | 93 void TransformTo(CFWL_Widget* pWidget, FX_FLOAT& fx, FX_FLOAT& fy); |
94 void GetMatrix(CFX_Matrix& matrix, bool bGlobal); | 94 CFX_Matrix GetMatrix(); |
Tom Sepez
2016/12/08 19:23:07
nit: is this const method?
dsinclair
2016/12/08 22:00:14
Done.
dsinclair
2016/12/09 03:44:38
Patchset deleted, ripples were not good.
| |
95 IFWL_ThemeProvider* GetThemeProvider() const; | 95 IFWL_ThemeProvider* GetThemeProvider() const; |
96 | 96 |
97 void SetDelegate(IFWL_WidgetDelegate* delegate) { m_pDelegate = delegate; } | 97 void SetDelegate(IFWL_WidgetDelegate* delegate) { m_pDelegate = delegate; } |
98 IFWL_WidgetDelegate* GetDelegate() { | 98 IFWL_WidgetDelegate* GetDelegate() { |
99 return m_pDelegate ? m_pDelegate : this; | 99 return m_pDelegate ? m_pDelegate : this; |
100 } | 100 } |
101 const IFWL_WidgetDelegate* GetDelegate() const { | 101 const IFWL_WidgetDelegate* GetDelegate() const { |
102 return m_pDelegate ? m_pDelegate : this; | 102 return m_pDelegate ? m_pDelegate : this; |
103 } | 103 } |
104 | 104 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
189 const CFX_Matrix* pMatrix); | 189 const CFX_Matrix* pMatrix); |
190 void NotifyDriver(); | 190 void NotifyDriver(); |
191 bool IsParent(CFWL_Widget* pParent); | 191 bool IsParent(CFWL_Widget* pParent); |
192 | 192 |
193 CXFA_FFWidget* m_pLayoutItem; | 193 CXFA_FFWidget* m_pLayoutItem; |
194 uint32_t m_nEventKey; | 194 uint32_t m_nEventKey; |
195 IFWL_WidgetDelegate* m_pDelegate; // Not owned. | 195 IFWL_WidgetDelegate* m_pDelegate; // Not owned. |
196 }; | 196 }; |
197 | 197 |
198 #endif // XFA_FWL_CFWL_WIDGET_H_ | 198 #endif // XFA_FWL_CFWL_WIDGET_H_ |
OLD | NEW |