Index: xfa/fwl/cfwl_pushbutton.cpp |
diff --git a/xfa/fwl/core/cfwl_pushbutton.cpp b/xfa/fwl/cfwl_pushbutton.cpp |
similarity index 90% |
rename from xfa/fwl/core/cfwl_pushbutton.cpp |
rename to xfa/fwl/cfwl_pushbutton.cpp |
index d3bf7e6552e32595cabc61a12775be9c2d5e8bc5..4e5ab8baf6c32cdb52950489bf485913d15a00ef 100644 |
--- a/xfa/fwl/core/cfwl_pushbutton.cpp |
+++ b/xfa/fwl/cfwl_pushbutton.cpp |
@@ -4,21 +4,21 @@ |
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
-#include "xfa/fwl/core/cfwl_pushbutton.h" |
+#include "xfa/fwl/cfwl_pushbutton.h" |
#include <memory> |
#include <utility> |
#include "third_party/base/ptr_util.h" |
#include "xfa/fde/tto/fde_textout.h" |
-#include "xfa/fwl/core/cfwl_event.h" |
-#include "xfa/fwl/core/cfwl_evtmouse.h" |
-#include "xfa/fwl/core/cfwl_msgkey.h" |
-#include "xfa/fwl/core/cfwl_msgmouse.h" |
-#include "xfa/fwl/core/cfwl_notedriver.h" |
-#include "xfa/fwl/core/cfwl_themebackground.h" |
-#include "xfa/fwl/core/cfwl_themetext.h" |
-#include "xfa/fwl/core/ifwl_themeprovider.h" |
+#include "xfa/fwl/cfwl_event.h" |
+#include "xfa/fwl/cfwl_eventmouse.h" |
+#include "xfa/fwl/cfwl_messagekey.h" |
+#include "xfa/fwl/cfwl_messagemouse.h" |
+#include "xfa/fwl/cfwl_notedriver.h" |
+#include "xfa/fwl/cfwl_themebackground.h" |
+#include "xfa/fwl/cfwl_themetext.h" |
+#include "xfa/fwl/ifwl_themeprovider.h" |
CFWL_PushButton::CFWL_PushButton(const CFWL_App* app) |
: CFWL_Widget(app, pdfium::MakeUnique<CFWL_WidgetProperties>(), nullptr), |
@@ -166,7 +166,7 @@ void CFWL_PushButton::OnProcessMessage(CFWL_Message* pMessage) { |
OnFocusChanged(pMessage, false); |
break; |
case CFWL_Message::Type::Mouse: { |
- CFWL_MsgMouse* pMsg = static_cast<CFWL_MsgMouse*>(pMessage); |
+ CFWL_MessageMouse* pMsg = static_cast<CFWL_MessageMouse*>(pMessage); |
switch (pMsg->m_dwCmd) { |
case FWL_MouseCommand::LeftButtonDown: |
OnLButtonDown(pMsg); |
@@ -186,7 +186,7 @@ void CFWL_PushButton::OnProcessMessage(CFWL_Message* pMessage) { |
break; |
} |
case CFWL_Message::Type::Key: { |
- CFWL_MsgKey* pKey = static_cast<CFWL_MsgKey*>(pMessage); |
+ CFWL_MessageKey* pKey = static_cast<CFWL_MessageKey*>(pMessage); |
if (pKey->m_dwCmd == FWL_KeyCommand::KeyDown) |
OnKeyDown(pKey); |
break; |
@@ -211,7 +211,7 @@ void CFWL_PushButton::OnFocusChanged(CFWL_Message* pMsg, bool bSet) { |
Repaint(&m_rtClient); |
} |
-void CFWL_PushButton::OnLButtonDown(CFWL_MsgMouse* pMsg) { |
+void CFWL_PushButton::OnLButtonDown(CFWL_MessageMouse* pMsg) { |
if ((m_pProperties->m_dwStates & FWL_WGTSTATE_Focused) == 0) |
SetFocus(true); |
@@ -221,7 +221,7 @@ void CFWL_PushButton::OnLButtonDown(CFWL_MsgMouse* pMsg) { |
Repaint(&m_rtClient); |
} |
-void CFWL_PushButton::OnLButtonUp(CFWL_MsgMouse* pMsg) { |
+void CFWL_PushButton::OnLButtonUp(CFWL_MessageMouse* pMsg) { |
m_bBtnDown = false; |
if (m_rtClient.Contains(pMsg->m_fx, pMsg->m_fy)) { |
m_pProperties->m_dwStates &= ~FWL_STATE_PSB_Pressed; |
@@ -237,7 +237,7 @@ void CFWL_PushButton::OnLButtonUp(CFWL_MsgMouse* pMsg) { |
Repaint(&m_rtClient); |
} |
-void CFWL_PushButton::OnMouseMove(CFWL_MsgMouse* pMsg) { |
+void CFWL_PushButton::OnMouseMove(CFWL_MessageMouse* pMsg) { |
bool bRepaint = false; |
if (m_bBtnDown) { |
if (m_rtClient.Contains(pMsg->m_fx, pMsg->m_fy)) { |
@@ -271,18 +271,18 @@ void CFWL_PushButton::OnMouseMove(CFWL_MsgMouse* pMsg) { |
Repaint(&m_rtClient); |
} |
-void CFWL_PushButton::OnMouseLeave(CFWL_MsgMouse* pMsg) { |
+void CFWL_PushButton::OnMouseLeave(CFWL_MessageMouse* pMsg) { |
m_bBtnDown = false; |
m_pProperties->m_dwStates &= ~FWL_STATE_PSB_Hovered; |
m_pProperties->m_dwStates &= ~FWL_STATE_PSB_Pressed; |
Repaint(&m_rtClient); |
} |
-void CFWL_PushButton::OnKeyDown(CFWL_MsgKey* pMsg) { |
+void CFWL_PushButton::OnKeyDown(CFWL_MessageKey* pMsg) { |
if (pMsg->m_dwKeyCode != FWL_VKEY_Return) |
return; |
- CFWL_EvtMouse wmMouse(this); |
+ CFWL_EventMouse wmMouse(this); |
wmMouse.m_dwCmd = FWL_MouseCommand::LeftButtonUp; |
DispatchEvent(&wmMouse); |