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

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

Issue 2510823003: Move the message definitions to their own files. (Closed)
Patch Set: Review feedback 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_datetimeedit.h ('k') | xfa/fwl/core/ifwl_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/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_msgmouse.h"
10 #include "xfa/fwl/core/cfwl_widgetmgr.h" 11 #include "xfa/fwl/core/cfwl_widgetmgr.h"
11 #include "xfa/fwl/core/ifwl_datetimepicker.h" 12 #include "xfa/fwl/core/ifwl_datetimepicker.h"
12 13
13 IFWL_DateTimeEdit::IFWL_DateTimeEdit( 14 IFWL_DateTimeEdit::IFWL_DateTimeEdit(
14 const IFWL_App* app, 15 const IFWL_App* app,
15 std::unique_ptr<CFWL_WidgetProperties> properties, 16 std::unique_ptr<CFWL_WidgetProperties> properties,
16 IFWL_Widget* pOuter) 17 IFWL_Widget* pOuter)
17 : IFWL_Edit(app, std::move(properties), pOuter) {} 18 : IFWL_Edit(app, std::move(properties), pOuter) {}
18 19
19 void IFWL_DateTimeEdit::OnProcessMessage(CFWL_Message* pMessage) { 20 void IFWL_DateTimeEdit::OnProcessMessage(CFWL_Message* pMessage) {
(...skipping 29 matching lines...) Expand all
49 if (pDateTime->IsMonthCalendarVisible()) { 50 if (pDateTime->IsMonthCalendarVisible()) {
50 CFX_RectF rtInvalidate; 51 CFX_RectF rtInvalidate;
51 pDateTime->GetWidgetRect(rtInvalidate); 52 pDateTime->GetWidgetRect(rtInvalidate);
52 pDateTime->ShowMonthCalendar(false); 53 pDateTime->ShowMonthCalendar(false);
53 rtInvalidate.Offset(-rtInvalidate.left, -rtInvalidate.top); 54 rtInvalidate.Offset(-rtInvalidate.left, -rtInvalidate.top);
54 pDateTime->Repaint(&rtInvalidate); 55 pDateTime->Repaint(&rtInvalidate);
55 } 56 }
56 } 57 }
57 IFWL_Edit::OnProcessMessage(pMessage); 58 IFWL_Edit::OnProcessMessage(pMessage);
58 } 59 }
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_datetimeedit.h ('k') | xfa/fwl/core/ifwl_datetimepicker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698