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

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

Issue 2560873005: Cleanup CFWL_Widget code to return CFX_RectFs where appropriate (Closed)
Patch Set: Review feedback 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
« no previous file with comments | « xfa/fwl/cfwl_combolist.cpp ('k') | xfa/fwl/cfwl_datetimepicker.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/cfwl_datetimeedit.h" 7 #include "xfa/fwl/cfwl_datetimeedit.h"
8 8
9 #include <memory> 9 #include <memory>
10 #include <utility> 10 #include <utility>
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 pMouse->m_dwCmd == FWL_MouseCommand::RightButtonDown) { 46 pMouse->m_dwCmd == FWL_MouseCommand::RightButtonDown) {
47 if ((m_pProperties->m_dwStates & FWL_WGTSTATE_Focused) == 0) 47 if ((m_pProperties->m_dwStates & FWL_WGTSTATE_Focused) == 0)
48 m_pProperties->m_dwStates |= FWL_WGTSTATE_Focused; 48 m_pProperties->m_dwStates |= FWL_WGTSTATE_Focused;
49 49
50 CFWL_DateTimePicker* pDateTime = 50 CFWL_DateTimePicker* pDateTime =
51 static_cast<CFWL_DateTimePicker*>(m_pOuter); 51 static_cast<CFWL_DateTimePicker*>(m_pOuter);
52 if (pDateTime->IsMonthCalendarVisible()) { 52 if (pDateTime->IsMonthCalendarVisible()) {
53 CFX_RectF rtInvalidate = pDateTime->GetWidgetRect(); 53 CFX_RectF rtInvalidate = pDateTime->GetWidgetRect();
54 pDateTime->ShowMonthCalendar(false); 54 pDateTime->ShowMonthCalendar(false);
55 rtInvalidate.Offset(-rtInvalidate.left, -rtInvalidate.top); 55 rtInvalidate.Offset(-rtInvalidate.left, -rtInvalidate.top);
56 pDateTime->Repaint(&rtInvalidate); 56 pDateTime->RepaintRect(rtInvalidate);
57 } 57 }
58 } 58 }
59 CFWL_Edit::OnProcessMessage(pMessage); 59 CFWL_Edit::OnProcessMessage(pMessage);
60 } 60 }
OLDNEW
« no previous file with comments | « xfa/fwl/cfwl_combolist.cpp ('k') | xfa/fwl/cfwl_datetimepicker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698