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

Unified Diff: xfa/fwl/core/cfwl_event.h

Issue 2530993002: Cleanup FWL Event and Message code. (Closed)
Patch Set: Cleanup Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: xfa/fwl/core/cfwl_event.h
diff --git a/xfa/fwl/core/cfwl_event.h b/xfa/fwl/core/cfwl_event.h
index fe8e1b37f0eaf1d50857734d995a3798329b1974..f1cc4addf4879fbfca03060ab52b1975b457895e 100644
--- a/xfa/fwl/core/cfwl_event.h
+++ b/xfa/fwl/core/cfwl_event.h
@@ -15,23 +15,16 @@
#include "xfa/fwl/core/fwl_error.h"
enum class CFWL_EventType {
Tom Sepez 2016/12/07 18:48:26 nit: If I were really compulsive, I'd nest this as
dsinclair 2016/12/07 20:02:01 Done.
- None = 0,
-
CheckStateChanged,
CheckWord,
Click,
Close,
EditChanged,
- Key,
- KillFocus,
Mouse,
- MouseWheel,
PostDropDown,
PreDropDown,
Scroll,
SelectChanged,
- SetFocus,
- SizeChanged,
TextChanged,
TextFull,
Validate
@@ -42,13 +35,16 @@ class CFWL_Widget;
class CFWL_Event {
public:
- CFWL_Event();
+ explicit CFWL_Event(CFWL_EventType type);
Tom Sepez 2016/12/07 18:48:26 nit: let's add two more ctors: CFWL_Event(CFWL_Ev
dsinclair 2016/12/07 20:02:01 Done.
virtual ~CFWL_Event();
- virtual CFWL_EventType GetClassID() const;
+ CFWL_EventType GetClassID() const { return m_type; }
Tom Sepez 2016/12/07 18:48:26 nit: bad name, maybe GetEventType() ?
dsinclair 2016/12/07 20:02:01 Went with GetType()
CFWL_Widget* m_pSrcTarget;
CFWL_Widget* m_pDstTarget;
+
+ private:
+ CFWL_EventType m_type;
};
#endif // XFA_FWL_CORE_CFWL_EVENT_H_

Powered by Google App Engine
This is Rietveld 408576698