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" |
11 #include "core/fxcrt/fx_string.h" | 11 #include "core/fxcrt/fx_string.h" |
12 #include "core/fxcrt/fx_system.h" | 12 #include "core/fxcrt/fx_system.h" |
13 #include "xfa/fwl/core/cfwl_msgkey.h" | 13 #include "xfa/fwl/core/cfwl_msgkey.h" |
14 #include "xfa/fwl/core/cfwl_msgmouse.h" | 14 #include "xfa/fwl/core/cfwl_msgmouse.h" |
15 #include "xfa/fwl/core/fwl_error.h" | 15 #include "xfa/fwl/core/fwl_error.h" |
16 | 16 |
17 enum class CFWL_EventType { | 17 enum class CFWL_EventType { |
18 None = 0, | 18 None = 0, |
19 | 19 |
20 CheckStateChanged, | 20 CheckStateChanged, |
21 CheckWord, | 21 CheckWord, |
22 Click, | 22 Click, |
23 Close, | 23 Close, |
24 CloseUp, | |
25 DrawItem, | 24 DrawItem, |
26 DropDown, | |
27 EditChanged, | 25 EditChanged, |
28 HoverChanged, | |
29 Key, | 26 Key, |
30 KillFocus, | 27 KillFocus, |
31 Mouse, | 28 Mouse, |
32 MouseWheel, | 29 MouseWheel, |
33 PostDropDown, | 30 PostDropDown, |
34 PreDropDown, | 31 PreDropDown, |
35 Scroll, | 32 Scroll, |
36 SelectChanged, | 33 SelectChanged, |
37 SetFocus, | 34 SetFocus, |
38 SizeChanged, | 35 SizeChanged, |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 classname(); \ | 71 classname(); \ |
75 ~classname() override; \ | 72 ~classname() override; \ |
76 CFWL_EventType GetClassID() const override; \ | 73 CFWL_EventType GetClassID() const override; \ |
77 __VA_ARGS__ \ | 74 __VA_ARGS__ \ |
78 }; \ | 75 }; \ |
79 inline classname::classname() {} \ | 76 inline classname::classname() {} \ |
80 inline classname::~classname() {} \ | 77 inline classname::~classname() {} \ |
81 inline CFWL_EventType classname::GetClassID() const { return eventType; } | 78 inline CFWL_EventType classname::GetClassID() const { return eventType; } |
82 | 79 |
83 #endif // XFA_FWL_CORE_CFWL_EVENT_H_ | 80 #endif // XFA_FWL_CORE_CFWL_EVENT_H_ |
OLD | NEW |