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_CORE_CFWL_WIDGET_H_ | 7 #ifndef XFA_FWL_CORE_CFWL_WIDGET_H_ |
8 #define XFA_FWL_CORE_CFWL_WIDGET_H_ | 8 #define XFA_FWL_CORE_CFWL_WIDGET_H_ |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 uint32_t dwTTOStyles, | 133 uint32_t dwTTOStyles, |
134 int32_t iTTOAlign, | 134 int32_t iTTOAlign, |
135 CFX_RectF& rect); | 135 CFX_RectF& rect); |
136 void SetGrab(bool bSet); | 136 void SetGrab(bool bSet); |
137 void GetPopupPos(FX_FLOAT fMinHeight, | 137 void GetPopupPos(FX_FLOAT fMinHeight, |
138 FX_FLOAT fMaxHeight, | 138 FX_FLOAT fMaxHeight, |
139 const CFX_RectF& rtAnchor, | 139 const CFX_RectF& rtAnchor, |
140 CFX_RectF& rtPopup); | 140 CFX_RectF& rtPopup); |
141 void RegisterEventTarget(CFWL_Widget* pEventSource); | 141 void RegisterEventTarget(CFWL_Widget* pEventSource); |
142 void UnregisterEventTarget(); | 142 void UnregisterEventTarget(); |
143 void DispatchKeyEvent(CFWL_MsgKey* pNote); | |
144 void DispatchEvent(CFWL_Event* pEvent); | 143 void DispatchEvent(CFWL_Event* pEvent); |
145 void DrawBorder(CFX_Graphics* pGraphics, | 144 void DrawBorder(CFX_Graphics* pGraphics, |
146 CFWL_Part iPartBorder, | 145 CFWL_Part iPartBorder, |
147 IFWL_ThemeProvider* pTheme, | 146 IFWL_ThemeProvider* pTheme, |
148 const CFX_Matrix* pMatrix = nullptr); | 147 const CFX_Matrix* pMatrix = nullptr); |
149 void DrawEdge(CFX_Graphics* pGraphics, | 148 void DrawEdge(CFX_Graphics* pGraphics, |
150 CFWL_Part iPartEdge, | 149 CFWL_Part iPartEdge, |
151 IFWL_ThemeProvider* pTheme, | 150 IFWL_ThemeProvider* pTheme, |
152 const CFX_Matrix* pMatrix = nullptr); | 151 const CFX_Matrix* pMatrix = nullptr); |
153 | 152 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 const CFX_Matrix* pMatrix = nullptr); | 185 const CFX_Matrix* pMatrix = nullptr); |
187 void NotifyDriver(); | 186 void NotifyDriver(); |
188 bool IsParent(CFWL_Widget* pParent); | 187 bool IsParent(CFWL_Widget* pParent); |
189 | 188 |
190 void* m_pLayoutItem; | 189 void* m_pLayoutItem; |
191 uint32_t m_nEventKey; | 190 uint32_t m_nEventKey; |
192 IFWL_WidgetDelegate* m_pDelegate; // Not owned. | 191 IFWL_WidgetDelegate* m_pDelegate; // Not owned. |
193 }; | 192 }; |
194 | 193 |
195 #endif // XFA_FWL_CORE_CFWL_WIDGET_H_ | 194 #endif // XFA_FWL_CORE_CFWL_WIDGET_H_ |
OLD | NEW |