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

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

Issue 2521303002: Rename IFWL_App to CFWL_App (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
« no previous file with comments | « xfa/fwl/core/ifwl_datetimeedit.h ('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 <memory> 9 #include <memory>
10 #include <utility> 10 #include <utility>
11 11
12 #include "third_party/base/ptr_util.h" 12 #include "third_party/base/ptr_util.h"
13 #include "xfa/fwl/core/cfwl_msgmouse.h" 13 #include "xfa/fwl/core/cfwl_msgmouse.h"
14 #include "xfa/fwl/core/cfwl_widgetmgr.h" 14 #include "xfa/fwl/core/cfwl_widgetmgr.h"
15 #include "xfa/fwl/core/ifwl_datetimepicker.h" 15 #include "xfa/fwl/core/ifwl_datetimepicker.h"
16 16
17 IFWL_DateTimeEdit::IFWL_DateTimeEdit( 17 IFWL_DateTimeEdit::IFWL_DateTimeEdit(
18 const IFWL_App* app, 18 const CFWL_App* app,
19 std::unique_ptr<CFWL_WidgetProperties> properties, 19 std::unique_ptr<CFWL_WidgetProperties> properties,
20 IFWL_Widget* pOuter) 20 IFWL_Widget* pOuter)
21 : IFWL_Edit(app, std::move(properties), pOuter) {} 21 : IFWL_Edit(app, std::move(properties), pOuter) {}
22 22
23 void IFWL_DateTimeEdit::OnProcessMessage(CFWL_Message* pMessage) { 23 void IFWL_DateTimeEdit::OnProcessMessage(CFWL_Message* pMessage) {
24 if (m_pWidgetMgr->IsFormDisabled()) { 24 if (m_pWidgetMgr->IsFormDisabled()) {
25 DisForm_OnProcessMessage(pMessage); 25 DisForm_OnProcessMessage(pMessage);
26 return; 26 return;
27 } 27 }
28 28
(...skipping 24 matching lines...) Expand all
53 if (pDateTime->IsMonthCalendarVisible()) { 53 if (pDateTime->IsMonthCalendarVisible()) {
54 CFX_RectF rtInvalidate; 54 CFX_RectF rtInvalidate;
55 pDateTime->GetWidgetRect(rtInvalidate); 55 pDateTime->GetWidgetRect(rtInvalidate);
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 IFWL_Edit::OnProcessMessage(pMessage); 61 IFWL_Edit::OnProcessMessage(pMessage);
62 } 62 }
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_datetimeedit.h ('k') | xfa/fwl/core/ifwl_datetimepicker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698