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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 public: | 57 public: |
58 CFWL_Event(); | 58 CFWL_Event(); |
59 virtual ~CFWL_Event(); | 59 virtual ~CFWL_Event(); |
60 | 60 |
61 virtual CFWL_EventType GetClassID() const; | 61 virtual CFWL_EventType GetClassID() const; |
62 | 62 |
63 IFWL_Widget* m_pSrcTarget; | 63 IFWL_Widget* m_pSrcTarget; |
64 IFWL_Widget* m_pDstTarget; | 64 IFWL_Widget* m_pDstTarget; |
65 }; | 65 }; |
66 | 66 |
67 #define FWL_EVENT_DEF(classname, eventType, ...) \ | |
68 class classname : public CFWL_Event { \ | |
69 public: \ | |
70 classname(); \ | |
71 ~classname() override; \ | |
72 CFWL_EventType GetClassID() const override; \ | |
73 __VA_ARGS__ \ | |
74 }; \ | |
75 inline classname::classname() {} \ | |
76 inline classname::~classname() {} \ | |
77 inline CFWL_EventType classname::GetClassID() const { return eventType; } | |
78 | |
79 #endif // XFA_FWL_CORE_CFWL_EVENT_H_ | 67 #endif // XFA_FWL_CORE_CFWL_EVENT_H_ |
OLD | NEW |