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

Side by Side Diff: xfa/fwl/basewidget/fwl_monthcalendarimp.cpp

Issue 1938163002: More define cleanup. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master Created 4 years, 7 months 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 unified diff | Download patch
« no previous file with comments | « xfa/fwl/basewidget/fwl_listboximp.cpp ('k') | xfa/fwl/basewidget/fwl_pushbuttonimp.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #include "xfa/fwl/basewidget/fwl_monthcalendarimp.h" 7 #include "xfa/fwl/basewidget/fwl_monthcalendarimp.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after
1032 case CFWL_MessageType::KillFocus: { 1032 case CFWL_MessageType::KillFocus: {
1033 OnFocusChanged(pMessage, FALSE); 1033 OnFocusChanged(pMessage, FALSE);
1034 break; 1034 break;
1035 } 1035 }
1036 case CFWL_MessageType::Key: { 1036 case CFWL_MessageType::Key: {
1037 break; 1037 break;
1038 } 1038 }
1039 case CFWL_MessageType::Mouse: { 1039 case CFWL_MessageType::Mouse: {
1040 CFWL_MsgMouse* pMouse = static_cast<CFWL_MsgMouse*>(pMessage); 1040 CFWL_MsgMouse* pMouse = static_cast<CFWL_MsgMouse*>(pMessage);
1041 switch (pMouse->m_dwCmd) { 1041 switch (pMouse->m_dwCmd) {
1042 case FWL_MSGMOUSECMD_LButtonDown: { 1042 case FWL_MouseCommand::LeftButtonDown: {
1043 OnLButtonDown(pMouse); 1043 OnLButtonDown(pMouse);
1044 break; 1044 break;
1045 } 1045 }
1046 case FWL_MSGMOUSECMD_LButtonUp: { 1046 case FWL_MouseCommand::LeftButtonUp: {
1047 OnLButtonUp(pMouse); 1047 OnLButtonUp(pMouse);
1048 break; 1048 break;
1049 } 1049 }
1050 case FWL_MSGMOUSECMD_MouseMove: { 1050 case FWL_MouseCommand::Move: {
1051 OnMouseMove(pMouse); 1051 OnMouseMove(pMouse);
1052 break; 1052 break;
1053 } 1053 }
1054 case FWL_MSGMOUSECMD_MouseLeave: { 1054 case FWL_MouseCommand::Leave: {
1055 OnMouseLeave(pMouse); 1055 OnMouseLeave(pMouse);
1056 break; 1056 break;
1057 } 1057 }
1058 default: 1058 default:
1059 break; 1059 break;
1060 } 1060 }
1061 break; 1061 break;
1062 } 1062 }
1063 default: { 1063 default: {
1064 iRet = 0; 1064 iRet = 0;
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
1189 if (m_pOwner->m_iHovered > 0) { 1189 if (m_pOwner->m_iHovered > 0) {
1190 CFX_RectF rtInvalidate; 1190 CFX_RectF rtInvalidate;
1191 rtInvalidate.Set(0, 0, 0, 0); 1191 rtInvalidate.Set(0, 0, 0, 0);
1192 m_pOwner->GetDayRect(m_pOwner->m_iHovered, rtInvalidate); 1192 m_pOwner->GetDayRect(m_pOwner->m_iHovered, rtInvalidate);
1193 m_pOwner->m_iHovered = -1; 1193 m_pOwner->m_iHovered = -1;
1194 if (!rtInvalidate.IsEmpty()) { 1194 if (!rtInvalidate.IsEmpty()) {
1195 m_pOwner->Repaint(&rtInvalidate); 1195 m_pOwner->Repaint(&rtInvalidate);
1196 } 1196 }
1197 } 1197 }
1198 } 1198 }
OLDNEW
« no previous file with comments | « xfa/fwl/basewidget/fwl_listboximp.cpp ('k') | xfa/fwl/basewidget/fwl_pushbuttonimp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698