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

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

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_spinbutton.cpp
diff --git a/xfa/fwl/core/cfwl_spinbutton.cpp b/xfa/fwl/core/cfwl_spinbutton.cpp
index 71ed3b05d21f09f2320719436770eee59aa5a933..9c1dc557bd95f71a43402bcb00f62b9394cf2f1b 100644
--- a/xfa/fwl/core/cfwl_spinbutton.cpp
+++ b/xfa/fwl/core/cfwl_spinbutton.cpp
@@ -10,7 +10,7 @@
#include <utility>
#include "third_party/base/ptr_util.h"
-#include "xfa/fwl/core/cfwl_evtclick.h"
+#include "xfa/fwl/core/cfwl_event.h"
#include "xfa/fwl/core/cfwl_msgkey.h"
#include "xfa/fwl/core/cfwl_msgmouse.h"
#include "xfa/fwl/core/cfwl_notedriver.h"
@@ -237,7 +237,7 @@ void CFWL_SpinButton::OnLButtonDown(CFWL_MsgMouse* pMsg) {
m_dwDnState = CFWL_PartState_Pressed;
}
- CFWL_EvtClick wmPosChanged;
+ CFWL_Event wmPosChanged(CFWL_EventType::Click);
wmPosChanged.m_pSrcTarget = this;
DispatchEvent(&wmPosChanged);
@@ -359,7 +359,7 @@ void CFWL_SpinButton::OnKeyDown(CFWL_MsgKey* pMsg) {
if (!bUpEnable && !bDownEnable)
return;
- CFWL_EvtClick wmPosChanged;
+ CFWL_Event wmPosChanged(CFWL_EventType::Click);
wmPosChanged.m_pSrcTarget = this;
DispatchEvent(&wmPosChanged);
@@ -375,7 +375,7 @@ void CFWL_SpinButton::Timer::Run(CFWL_TimerInfo* pTimerInfo) {
if (!pButton->m_pTimerInfo)
return;
- CFWL_EvtClick wmPosChanged;
+ CFWL_Event wmPosChanged(CFWL_EventType::Click);
wmPosChanged.m_pSrcTarget = pButton;
pButton->DispatchEvent(&wmPosChanged);
}

Powered by Google App Engine
This is Rietveld 408576698