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

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

Issue 2467203003: Remove FX_BOOL from xfa. (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 unified diff | Download patch
« no previous file with comments | « xfa/fwl/core/ifwl_datetimecalendar.cpp ('k') | xfa/fwl/core/ifwl_datetimepicker.h » ('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/core/ifwl_datetimeedit.h" 7 #include "xfa/fwl/core/ifwl_datetimeedit.h"
8 8
9 #include "third_party/base/ptr_util.h" 9 #include "third_party/base/ptr_util.h"
10 #include "xfa/fwl/core/cfwl_widgetmgr.h" 10 #include "xfa/fwl/core/cfwl_widgetmgr.h"
(...skipping 26 matching lines...) Expand all
37 if (pMouse->m_dwCmd == FWL_MouseCommand::LeftButtonDown || 37 if (pMouse->m_dwCmd == FWL_MouseCommand::LeftButtonDown ||
38 pMouse->m_dwCmd == FWL_MouseCommand::RightButtonDown) { 38 pMouse->m_dwCmd == FWL_MouseCommand::RightButtonDown) {
39 if ((m_pProperties->m_dwStates & FWL_WGTSTATE_Focused) == 0) 39 if ((m_pProperties->m_dwStates & FWL_WGTSTATE_Focused) == 0)
40 m_pProperties->m_dwStates |= FWL_WGTSTATE_Focused; 40 m_pProperties->m_dwStates |= FWL_WGTSTATE_Focused;
41 41
42 IFWL_DateTimePicker* pDateTime = 42 IFWL_DateTimePicker* pDateTime =
43 static_cast<IFWL_DateTimePicker*>(m_pOuter); 43 static_cast<IFWL_DateTimePicker*>(m_pOuter);
44 if (pDateTime->IsMonthCalendarShowed()) { 44 if (pDateTime->IsMonthCalendarShowed()) {
45 CFX_RectF rtInvalidate; 45 CFX_RectF rtInvalidate;
46 pDateTime->GetWidgetRect(rtInvalidate); 46 pDateTime->GetWidgetRect(rtInvalidate);
47 pDateTime->ShowMonthCalendar(FALSE); 47 pDateTime->ShowMonthCalendar(false);
48 rtInvalidate.Offset(-rtInvalidate.left, -rtInvalidate.top); 48 rtInvalidate.Offset(-rtInvalidate.left, -rtInvalidate.top);
49 pDateTime->Repaint(&rtInvalidate); 49 pDateTime->Repaint(&rtInvalidate);
50 } 50 }
51 } 51 }
52 } 52 }
53 } 53 }
54 IFWL_Edit::OnProcessMessage(pMessage); 54 IFWL_Edit::OnProcessMessage(pMessage);
55 } 55 }
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_datetimecalendar.cpp ('k') | xfa/fwl/core/ifwl_datetimepicker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698