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

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

Issue 2505703003: Cleaning up nits in fwl/core files. (Closed)
Patch Set: Created 4 years, 1 month 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/ifwl_edit.cpp
diff --git a/xfa/fwl/core/ifwl_edit.cpp b/xfa/fwl/core/ifwl_edit.cpp
index 55ee785845faaf0c076100bbd86a1c21a82a4d99..3e864baa28136166c7edffaacdf6bdcef2578358 100644
--- a/xfa/fwl/core/ifwl_edit.cpp
+++ b/xfa/fwl/core/ifwl_edit.cpp
@@ -1348,12 +1348,6 @@ void IFWL_Edit::OnProcessMessage(CFWL_Message* pMessage) {
CFWL_MessageType dwMsgCode = pMessage->GetClassID();
switch (dwMsgCode) {
- case CFWL_MessageType::Activate:
- DoActivate(static_cast<CFWL_MsgActivate*>(pMessage));
- break;
- case CFWL_MessageType::Deactivate:
- DoDeactivate(static_cast<CFWL_MsgDeactivate*>(pMessage));
- break;
case CFWL_MessageType::SetFocus:
case CFWL_MessageType::KillFocus:
OnFocusChanged(pMessage, dwMsgCode == CFWL_MessageType::SetFocus);
@@ -1415,16 +1409,6 @@ void IFWL_Edit::OnDrawWidget(CFX_Graphics* pGraphics,
DrawWidget(pGraphics, pMatrix);
}
-void IFWL_Edit::DoActivate(CFWL_MsgActivate* pMsg) {
- m_pProperties->m_dwStates |= ~FWL_WGTSTATE_Deactivated;
- Repaint(&m_rtClient);
-}
-
-void IFWL_Edit::DoDeactivate(CFWL_MsgDeactivate* pMsg) {
- m_pProperties->m_dwStates &= FWL_WGTSTATE_Deactivated;
- Repaint(&m_rtClient);
-}
-
void IFWL_Edit::DoButtonDown(CFWL_MsgMouse* pMsg) {
if ((m_pProperties->m_dwStates & FWL_WGTSTATE_Focused) == 0)
SetFocus(true);

Powered by Google App Engine
This is Rietveld 408576698