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

Side by Side Diff: xfa/fwl/core/cfwl_datetimeedit.cpp

Issue 2533623002: Cleanup default FWL params part I (Closed)
Patch Set: Rebase to master 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 unified diff | Download patch
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/core/cfwl_datetimeedit.h" 7 #include "xfa/fwl/core/cfwl_datetimeedit.h"
8 8
9 #include <memory> 9 #include <memory>
10 #include <utility> 10 #include <utility>
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 CFWL_MsgMouse* pMouse = static_cast<CFWL_MsgMouse*>(pMessage); 45 CFWL_MsgMouse* pMouse = static_cast<CFWL_MsgMouse*>(pMessage);
46 if (pMouse->m_dwCmd == FWL_MouseCommand::LeftButtonDown || 46 if (pMouse->m_dwCmd == FWL_MouseCommand::LeftButtonDown ||
47 pMouse->m_dwCmd == FWL_MouseCommand::RightButtonDown) { 47 pMouse->m_dwCmd == FWL_MouseCommand::RightButtonDown) {
48 if ((m_pProperties->m_dwStates & FWL_WGTSTATE_Focused) == 0) 48 if ((m_pProperties->m_dwStates & FWL_WGTSTATE_Focused) == 0)
49 m_pProperties->m_dwStates |= FWL_WGTSTATE_Focused; 49 m_pProperties->m_dwStates |= FWL_WGTSTATE_Focused;
50 50
51 CFWL_DateTimePicker* pDateTime = 51 CFWL_DateTimePicker* pDateTime =
52 static_cast<CFWL_DateTimePicker*>(m_pOuter); 52 static_cast<CFWL_DateTimePicker*>(m_pOuter);
53 if (pDateTime->IsMonthCalendarVisible()) { 53 if (pDateTime->IsMonthCalendarVisible()) {
54 CFX_RectF rtInvalidate; 54 CFX_RectF rtInvalidate;
55 pDateTime->GetWidgetRect(rtInvalidate); 55 pDateTime->GetWidgetRect(rtInvalidate, false);
56 pDateTime->ShowMonthCalendar(false); 56 pDateTime->ShowMonthCalendar(false);
57 rtInvalidate.Offset(-rtInvalidate.left, -rtInvalidate.top); 57 rtInvalidate.Offset(-rtInvalidate.left, -rtInvalidate.top);
58 pDateTime->Repaint(&rtInvalidate); 58 pDateTime->Repaint(&rtInvalidate);
59 } 59 }
60 } 60 }
61 CFWL_Edit::OnProcessMessage(pMessage); 61 CFWL_Edit::OnProcessMessage(pMessage);
62 } 62 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698