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

Unified Diff: xfa/fwl/core/cfwl_msgkillfocus.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_msgkillfocus.cpp
diff --git a/xfa/fwl/core/cfwl_msgkillfocus.cpp b/xfa/fwl/core/cfwl_msgkillfocus.cpp
index 0c8ac470299d19b29379a76229fcabe0716a681a..c7164850d1f65b7c77b5e8a553c36463cd41d82f 100644
--- a/xfa/fwl/core/cfwl_msgkillfocus.cpp
+++ b/xfa/fwl/core/cfwl_msgkillfocus.cpp
@@ -10,14 +10,15 @@
#include "third_party/base/ptr_util.h"
-CFWL_MsgKillFocus::CFWL_MsgKillFocus() {}
+CFWL_MsgKillFocus::CFWL_MsgKillFocus(CFWL_Widget* pSrcTarget)
+ : CFWL_MsgKillFocus(pSrcTarget, nullptr) {}
+
+CFWL_MsgKillFocus::CFWL_MsgKillFocus(CFWL_Widget* pSrcTarget,
+ CFWL_Widget* pDstTarget)
+ : CFWL_Message(CFWL_Message::Type::KillFocus, pSrcTarget, pDstTarget) {}
CFWL_MsgKillFocus::~CFWL_MsgKillFocus() {}
std::unique_ptr<CFWL_Message> CFWL_MsgKillFocus::Clone() {
return pdfium::MakeUnique<CFWL_MsgKillFocus>(*this);
}
-
-CFWL_MessageType CFWL_MsgKillFocus::GetClassID() const {
- return CFWL_MessageType::KillFocus;
-}

Powered by Google App Engine
This is Rietveld 408576698