| OLD | NEW |
| 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_EVENT_H_ | 7 #ifndef XFA_FWL_CORE_CFWL_EVENT_H_ |
| 8 #define XFA_FWL_CORE_CFWL_EVENT_H_ | 8 #define XFA_FWL_CORE_CFWL_EVENT_H_ |
| 9 | 9 |
| 10 #include "core/fxcrt/fx_coordinates.h" | 10 #include "core/fxcrt/fx_coordinates.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 }; | 27 }; |
| 28 | 28 |
| 29 enum class CFWL_EventType { | 29 enum class CFWL_EventType { |
| 30 None = 0, | 30 None = 0, |
| 31 | 31 |
| 32 CheckStateChanged, | 32 CheckStateChanged, |
| 33 CheckWord, | 33 CheckWord, |
| 34 Click, | 34 Click, |
| 35 Close, | 35 Close, |
| 36 CloseUp, | 36 CloseUp, |
| 37 ContextMenu, | |
| 38 DataSelected, | |
| 39 DateChanged, | |
| 40 Draw, | |
| 41 DrawItem, | 37 DrawItem, |
| 42 DropDown, | 38 DropDown, |
| 43 EditChanged, | 39 EditChanged, |
| 44 HoverChanged, | 40 HoverChanged, |
| 45 Idle, | |
| 46 Key, | 41 Key, |
| 47 KillFocus, | 42 KillFocus, |
| 48 MenuCommand, | |
| 49 Mouse, | 43 Mouse, |
| 50 MouseWheel, | 44 MouseWheel, |
| 51 PostDropDown, | 45 PostDropDown, |
| 52 PreDropDown, | 46 PreDropDown, |
| 53 PreSelfAdaption, | 47 PreSelfAdaption, |
| 54 Scroll, | 48 Scroll, |
| 55 SelectChanged, | 49 SelectChanged, |
| 56 SetFocus, | 50 SetFocus, |
| 57 SizeChanged, | 51 SizeChanged, |
| 58 TextChanged, | 52 TextChanged, |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 FWL_KeyCommand m_dwCmd;) | 131 FWL_KeyCommand m_dwCmd;) |
| 138 | 132 |
| 139 FWL_EVENT_DEF(CFWL_EvtSetFocus, | 133 FWL_EVENT_DEF(CFWL_EvtSetFocus, |
| 140 CFWL_EventType::SetFocus, | 134 CFWL_EventType::SetFocus, |
| 141 IFWL_Widget* m_pSetFocus;) | 135 IFWL_Widget* m_pSetFocus;) |
| 142 | 136 |
| 143 FWL_EVENT_DEF(CFWL_EvtKillFocus, | 137 FWL_EVENT_DEF(CFWL_EvtKillFocus, |
| 144 CFWL_EventType::KillFocus, | 138 CFWL_EventType::KillFocus, |
| 145 IFWL_Widget* m_pKillFocus;) | 139 IFWL_Widget* m_pKillFocus;) |
| 146 | 140 |
| 147 FWL_EVENT_DEF(CFWL_EvtDraw, CFWL_EventType::Draw, CFX_Graphics* m_pGraphics; | |
| 148 IFWL_Widget * m_pWidget;) | |
| 149 | |
| 150 FWL_EVENT_DEF(CFWL_EvtClick, CFWL_EventType::Click) | 141 FWL_EVENT_DEF(CFWL_EvtClick, CFWL_EventType::Click) |
| 151 | 142 |
| 152 FWL_EVENT_DEF(CFWL_EvtScroll, CFWL_EventType::Scroll, FWL_SCBCODE m_iScrollCode; | 143 FWL_EVENT_DEF(CFWL_EvtScroll, CFWL_EventType::Scroll, FWL_SCBCODE m_iScrollCode; |
| 153 FX_FLOAT m_fPos; | 144 FX_FLOAT m_fPos; |
| 154 bool* m_pRet;) | 145 bool* m_pRet;) |
| 155 | 146 |
| 156 FWL_EVENT_DEF(CFWL_EvtClose, CFWL_EventType::Close) | 147 FWL_EVENT_DEF(CFWL_EvtClose, CFWL_EventType::Close) |
| 157 | 148 |
| 158 FWL_EVENT_DEF(CFWL_EvtContextMenu, | |
| 159 CFWL_EventType::ContextMenu, | |
| 160 FX_FLOAT m_fPosX; | |
| 161 FX_FLOAT m_fPosY; | |
| 162 IFWL_Widget * m_pOwner;) | |
| 163 | |
| 164 FWL_EVENT_DEF(CFWL_EvtMenuCommand, | |
| 165 CFWL_EventType::MenuCommand, | |
| 166 int32_t m_iCommand; | |
| 167 void* m_pData;) | |
| 168 | |
| 169 FWL_EVENT_DEF(CFWL_EvtSizeChanged, | 149 FWL_EVENT_DEF(CFWL_EvtSizeChanged, |
| 170 CFWL_EventType::SizeChanged, | 150 CFWL_EventType::SizeChanged, |
| 171 IFWL_Widget* m_pWidget; | 151 IFWL_Widget* m_pWidget; |
| 172 CFX_RectF m_rtOld; | 152 CFX_RectF m_rtOld; |
| 173 CFX_RectF m_rtNew;) | 153 CFX_RectF m_rtNew;) |
| 174 | 154 |
| 175 FWL_EVENT_DEF(CFWL_EvtIdle, CFWL_EventType::Idle) | |
| 176 | |
| 177 #endif // XFA_FWL_CORE_CFWL_EVENT_H_ | 155 #endif // XFA_FWL_CORE_CFWL_EVENT_H_ |
| OLD | NEW |