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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 IFWL_Widget* GetOwner(); | 68 IFWL_Widget* GetOwner(); |
69 FWL_Error SetOwner(IFWL_Widget* pOwner); | 69 FWL_Error SetOwner(IFWL_Widget* pOwner); |
70 IFWL_Widget* GetOuter(); | 70 IFWL_Widget* GetOuter(); |
71 uint32_t GetStyles(); | 71 uint32_t GetStyles(); |
72 FWL_Error ModifyStyles(uint32_t dwStylesAdded, uint32_t dwStylesRemoved); | 72 FWL_Error ModifyStyles(uint32_t dwStylesAdded, uint32_t dwStylesRemoved); |
73 uint32_t GetStylesEx(); | 73 uint32_t GetStylesEx(); |
74 FWL_Error ModifyStylesEx(uint32_t dwStylesExAdded, | 74 FWL_Error ModifyStylesEx(uint32_t dwStylesExAdded, |
75 uint32_t dwStylesExRemoved); | 75 uint32_t dwStylesExRemoved); |
76 uint32_t GetStates(); | 76 uint32_t GetStates(); |
77 void SetStates(uint32_t dwStates, FX_BOOL bSet = TRUE); | 77 void SetStates(uint32_t dwStates, FX_BOOL bSet = TRUE); |
| 78 uint32_t GetEventKey() const; |
| 79 void SetEventKey(uint32_t key); |
78 FWL_Error SetPrivateData(void* module_id, | 80 FWL_Error SetPrivateData(void* module_id, |
79 void* pData, | 81 void* pData, |
80 PD_CALLBACK_FREEDATA callback); | 82 PD_CALLBACK_FREEDATA callback); |
81 void* GetPrivateData(void* module_id); | 83 void* GetPrivateData(void* module_id); |
82 FWL_Error Update(); | 84 FWL_Error Update(); |
83 FWL_Error LockUpdate(); | 85 FWL_Error LockUpdate(); |
84 FWL_Error UnlockUpdate(); | 86 FWL_Error UnlockUpdate(); |
85 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy); | 87 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy); |
86 FWL_Error TransformTo(IFWL_Widget* pWidget, FX_FLOAT& fx, FX_FLOAT& fy); | 88 FWL_Error TransformTo(IFWL_Widget* pWidget, FX_FLOAT& fx, FX_FLOAT& fy); |
87 FWL_Error TransformTo(IFWL_Widget* pWidget, CFX_RectF& rt); | 89 FWL_Error TransformTo(IFWL_Widget* pWidget, CFX_RectF& rt); |
(...skipping 20 matching lines...) Expand all Loading... |
108 | 110 |
109 protected: | 111 protected: |
110 // Takes ownership of |pImpl|. | 112 // Takes ownership of |pImpl|. |
111 void SetImpl(CFWL_WidgetImp* pImpl) { m_pImpl.reset(pImpl); } | 113 void SetImpl(CFWL_WidgetImp* pImpl) { m_pImpl.reset(pImpl); } |
112 | 114 |
113 private: | 115 private: |
114 std::unique_ptr<CFWL_WidgetImp> m_pImpl; | 116 std::unique_ptr<CFWL_WidgetImp> m_pImpl; |
115 }; | 117 }; |
116 | 118 |
117 #endif // XFA_FWL_CORE_IFWL_WIDGET_H_ | 119 #endif // XFA_FWL_CORE_IFWL_WIDGET_H_ |
OLD | NEW |