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/include/fx_coordinates.h" | 10 #include "core/fxcrt/include/fx_coordinates.h" |
11 #include "core/fxcrt/include/fx_string.h" | 11 #include "core/fxcrt/include/fx_string.h" |
12 #include "core/fxcrt/include/fx_system.h" | 12 #include "core/fxcrt/include/fx_system.h" |
13 #include "xfa/fwl/core/cfwl_note.h" | 13 #include "xfa/fwl/core/cfwl_note.h" |
14 #include "xfa/fwl/core/fwl_error.h" | 14 #include "xfa/fwl/core/fwl_error.h" |
15 | 15 |
16 #define FWL_EVT_Mouse L"FWL_EVENT_Mouse" | 16 // TODO(dsinclair): Event hash is hash of string, cleanup. pdfium:474 |
17 #define FWL_EVT_MouseWheel L"FWL_EVENT_MouseWheel" | |
18 #define FWL_EVT_Key L"FWL_EVENT_Key" | |
19 #define FWL_EVT_SetFocus L"FWL_EVENT_SetFocus" | |
20 #define FWL_EVT_KillFocus L"FWL_EVENT_KillFocus" | |
21 #define FWL_EVT_Click L"FWL_EVENT_Click" | |
22 #define FWL_EVT_Draw L"FWL_EVENT_Draw" | |
23 #define FWL_EVT_Scroll L"FWL_EVENT_Scroll" | |
24 #define FWL_EVT_Close L"FWL_EVENT_Close" | |
25 #define FWL_EVT_ContextMenu L"FWL_EVENT_ContextMenu" | |
26 #define FWL_EVT_MenuCommand L"FWL_EVENT_MenuCommand" | |
27 #define FWL_EVT_SizeChanged L"FWL_EVENT_SizeChanged" | |
28 | |
29 #define FWL_EVTHASH_Mouse 1765258002 | 17 #define FWL_EVTHASH_Mouse 1765258002 |
30 #define FWL_EVTHASH_MouseWheel 3907114407 | 18 #define FWL_EVTHASH_MouseWheel 3907114407 |
31 #define FWL_EVTHASH_Key 2408354450 | 19 #define FWL_EVTHASH_Key 2408354450 |
32 #define FWL_EVTHASH_SetFocus 3909721269 | 20 #define FWL_EVTHASH_SetFocus 3909721269 |
33 #define FWL_EVTHASH_KillFocus 1779363253 | 21 #define FWL_EVTHASH_KillFocus 1779363253 |
34 #define FWL_EVTHASH_Draw 2430713303 | 22 #define FWL_EVTHASH_Draw 2430713303 |
35 #define FWL_EVTHASH_Click 4026328783 | 23 #define FWL_EVTHASH_Click 4026328783 |
36 #define FWL_EVTHASH_Scroll 2965158968 | 24 #define FWL_EVTHASH_Scroll 2965158968 |
37 #define FWL_EVTHASH_Close 4036693599 | 25 #define FWL_EVTHASH_Close 4036693599 |
38 #define FWL_EVTHASH_ContextMenu 2717307715 | 26 #define FWL_EVTHASH_ContextMenu 2717307715 |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 BEGIN_FWL_EVENT_DEF(CFWL_EvtSizeChanged, FWL_EVTHASH_SizeChanged) | 124 BEGIN_FWL_EVENT_DEF(CFWL_EvtSizeChanged, FWL_EVTHASH_SizeChanged) |
137 IFWL_Widget* m_pWidget; | 125 IFWL_Widget* m_pWidget; |
138 CFX_RectF m_rtOld; | 126 CFX_RectF m_rtOld; |
139 CFX_RectF m_rtNew; | 127 CFX_RectF m_rtNew; |
140 END_FWL_EVENT_DEF | 128 END_FWL_EVENT_DEF |
141 | 129 |
142 BEGIN_FWL_EVENT_DEF(CFWL_EvtIdle, FWL_EVTHASH_Idle) | 130 BEGIN_FWL_EVENT_DEF(CFWL_EvtIdle, FWL_EVTHASH_Idle) |
143 END_FWL_EVENT_DEF | 131 END_FWL_EVENT_DEF |
144 | 132 |
145 #endif // XFA_FWL_CORE_CFWL_EVENT_H_ | 133 #endif // XFA_FWL_CORE_CFWL_EVENT_H_ |
OLD | NEW |