Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(138)

Side by Side Diff: xfa/fwl/core/cfwl_event.h

Issue 2506153003: Remove FWL_EVENT_DEF macro (Closed)
Patch Set: Rebase to master Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698