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

Unified Diff: xfa/fwl/core/cfwl_message.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_message.cpp
diff --git a/xfa/fwl/core/cfwl_message.cpp b/xfa/fwl/core/cfwl_message.cpp
index e233900d6ecf808e5d8c3e3a9e9f746538e4e8e5..b20cf0e6a1498d84f9dd61df01a41e139fcfb8b7 100644
--- a/xfa/fwl/core/cfwl_message.cpp
+++ b/xfa/fwl/core/cfwl_message.cpp
@@ -6,15 +6,22 @@
#include "xfa/fwl/core/cfwl_message.h"
-CFWL_Message::CFWL_Message()
- : m_pSrcTarget(nullptr), m_pDstTarget(nullptr), m_dwExtend(0) {}
+CFWL_Message::CFWL_Message(CFWL_Message::Type type)
+ : CFWL_Message(type, nullptr, nullptr) {}
+
+CFWL_Message::CFWL_Message(Type type, CFWL_Widget* pSrcTarget)
+ : CFWL_Message(type, pSrcTarget, nullptr) {}
+
+CFWL_Message::CFWL_Message(Type type,
+ CFWL_Widget* pSrcTarget,
+ CFWL_Widget* pDstTarget)
+ : m_pSrcTarget(pSrcTarget),
+ m_pDstTarget(pDstTarget),
+ m_dwExtend(0),
+ m_type(type) {}
CFWL_Message::~CFWL_Message() {}
std::unique_ptr<CFWL_Message> CFWL_Message::Clone() {
return nullptr;
}
-
-CFWL_MessageType CFWL_Message::GetClassID() const {
- return CFWL_MessageType::None;
-}

Powered by Google App Engine
This is Rietveld 408576698