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

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

Issue 2530993002: Cleanup FWL Event and Message code. (Closed)
Patch Set: Review feedback 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.cpp
diff --git a/xfa/fwl/core/cfwl_event.cpp b/xfa/fwl/core/cfwl_event.cpp
index 06b734531fab7c18d6a2f17f92ece2c3165e3aea..d598f6974abbc3c7580471c0e841ac2133c88d75 100644
--- a/xfa/fwl/core/cfwl_event.cpp
+++ b/xfa/fwl/core/cfwl_event.cpp
@@ -6,10 +6,15 @@
#include "xfa/fwl/core/cfwl_event.h"
-CFWL_Event::CFWL_Event() : m_pSrcTarget(nullptr), m_pDstTarget(nullptr) {}
+CFWL_Event::CFWL_Event(CFWL_Event::Type type)
+ : CFWL_Event(type, nullptr, nullptr) {}
-CFWL_Event::~CFWL_Event() {}
+CFWL_Event::CFWL_Event(Type type, CFWL_Widget* pSrcTarget)
+ : CFWL_Event(type, pSrcTarget, nullptr) {}
+
+CFWL_Event::CFWL_Event(Type type,
+ CFWL_Widget* pSrcTarget,
+ CFWL_Widget* pDstTarget)
+ : m_pSrcTarget(pSrcTarget), m_pDstTarget(pDstTarget), m_type(type) {}
-CFWL_EventType CFWL_Event::GetClassID() const {
- return CFWL_EventType::None;
-}
+CFWL_Event::~CFWL_Event() {}

Powered by Google App Engine
This is Rietveld 408576698