| 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_IFWL_WIDGET_H_ | 7 #ifndef XFA_FWL_CORE_IFWL_WIDGET_H_ |
| 8 #define XFA_FWL_CORE_IFWL_WIDGET_H_ | 8 #define XFA_FWL_CORE_IFWL_WIDGET_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 CFX_SizeF CalcTextSize(const CFX_WideString& wsText, | 164 CFX_SizeF CalcTextSize(const CFX_WideString& wsText, |
| 165 IFWL_ThemeProvider* pTheme, | 165 IFWL_ThemeProvider* pTheme, |
| 166 bool bMultiLine = false, | 166 bool bMultiLine = false, |
| 167 int32_t iLineWidth = -1); | 167 int32_t iLineWidth = -1); |
| 168 void CalcTextRect(const CFX_WideString& wsText, | 168 void CalcTextRect(const CFX_WideString& wsText, |
| 169 IFWL_ThemeProvider* pTheme, | 169 IFWL_ThemeProvider* pTheme, |
| 170 uint32_t dwTTOStyles, | 170 uint32_t dwTTOStyles, |
| 171 int32_t iTTOAlign, | 171 int32_t iTTOAlign, |
| 172 CFX_RectF& rect); | 172 CFX_RectF& rect); |
| 173 void SetGrab(bool bSet); | 173 void SetGrab(bool bSet); |
| 174 bool GetPopupPos(FX_FLOAT fMinHeight, | 174 void GetPopupPos(FX_FLOAT fMinHeight, |
| 175 FX_FLOAT fMaxHeight, | 175 FX_FLOAT fMaxHeight, |
| 176 const CFX_RectF& rtAnchor, | 176 const CFX_RectF& rtAnchor, |
| 177 CFX_RectF& rtPopup); | 177 CFX_RectF& rtPopup); |
| 178 void RegisterEventTarget(IFWL_Widget* pEventSource = nullptr, | 178 void RegisterEventTarget(IFWL_Widget* pEventSource = nullptr, |
| 179 uint32_t dwFilter = FWL_EVENT_ALL_MASK); | 179 uint32_t dwFilter = FWL_EVENT_ALL_MASK); |
| 180 void UnregisterEventTarget(); | 180 void UnregisterEventTarget(); |
| 181 void DispatchKeyEvent(CFWL_MsgKey* pNote); | 181 void DispatchKeyEvent(CFWL_MsgKey* pNote); |
| 182 void DispatchEvent(CFWL_Event* pEvent); | 182 void DispatchEvent(CFWL_Event* pEvent); |
| 183 void DrawBorder(CFX_Graphics* pGraphics, | 183 void DrawBorder(CFX_Graphics* pGraphics, |
| 184 CFWL_Part iPartBorder, | 184 CFWL_Part iPartBorder, |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 void NotifyDriver(); | 236 void NotifyDriver(); |
| 237 bool IsParent(IFWL_Widget* pParent); | 237 bool IsParent(IFWL_Widget* pParent); |
| 238 | 238 |
| 239 void* m_pLayoutItem; | 239 void* m_pLayoutItem; |
| 240 CFWL_Widget* m_pAssociate; | 240 CFWL_Widget* m_pAssociate; |
| 241 uint32_t m_nEventKey; | 241 uint32_t m_nEventKey; |
| 242 IFWL_WidgetDelegate* m_pDelegate; // Not owned. | 242 IFWL_WidgetDelegate* m_pDelegate; // Not owned. |
| 243 }; | 243 }; |
| 244 | 244 |
| 245 #endif // XFA_FWL_CORE_IFWL_WIDGET_H_ | 245 #endif // XFA_FWL_CORE_IFWL_WIDGET_H_ |
| OLD | NEW |