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

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

Issue 2524993002: Remove plumbing for today value (Closed)
Patch Set: Review fixes 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/cfwl_datetimepicker.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/cfwl_datetimepicker.h" 7 #include "xfa/fwl/core/cfwl_datetimepicker.h"
8 8
9 #include <memory> 9 #include <memory>
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 void CFWL_DateTimePicker::SetEditText(const CFX_WideString& wsText) { 50 void CFWL_DateTimePicker::SetEditText(const CFX_WideString& wsText) {
51 ToDateTimePicker(GetWidget())->SetEditText(wsText); 51 ToDateTimePicker(GetWidget())->SetEditText(wsText);
52 } 52 }
53 53
54 void CFWL_DateTimePicker::SetCurSel(int32_t iYear, 54 void CFWL_DateTimePicker::SetCurSel(int32_t iYear,
55 int32_t iMonth, 55 int32_t iMonth,
56 int32_t iDay) { 56 int32_t iDay) {
57 ToDateTimePicker(GetWidget())->SetCurSel(iYear, iMonth, iDay); 57 ToDateTimePicker(GetWidget())->SetCurSel(iYear, iMonth, iDay);
58 } 58 }
59 59
60 void CFWL_DateTimePicker::GetToday(IFWL_Widget* pWidget,
61 int32_t& iYear,
62 int32_t& iMonth,
63 int32_t& iDay) {
64 iYear = 2011;
65 iMonth = 1;
66 iDay = 1;
67 }
68
69 void CFWL_DateTimePicker::GetBBox(CFX_RectF& rect) { 60 void CFWL_DateTimePicker::GetBBox(CFX_RectF& rect) {
70 ToDateTimePicker(GetWidget())->GetBBox(rect); 61 ToDateTimePicker(GetWidget())->GetBBox(rect);
71 } 62 }
72 63
73 void CFWL_DateTimePicker::SetEditLimit(int32_t nLimit) { 64 void CFWL_DateTimePicker::SetEditLimit(int32_t nLimit) {
74 ToDateTimePicker(GetWidget())->SetEditLimit(nLimit); 65 ToDateTimePicker(GetWidget())->SetEditLimit(nLimit);
75 } 66 }
76 67
77 void CFWL_DateTimePicker::ModifyEditStylesEx(uint32_t dwStylesExAdded, 68 void CFWL_DateTimePicker::ModifyEditStylesEx(uint32_t dwStylesExAdded,
78 uint32_t dwStylesExRemoved) { 69 uint32_t dwStylesExRemoved) {
79 ToDateTimePicker(GetWidget()) 70 ToDateTimePicker(GetWidget())
80 ->ModifyEditStylesEx(dwStylesExAdded, dwStylesExRemoved); 71 ->ModifyEditStylesEx(dwStylesExAdded, dwStylesExRemoved);
81 } 72 }
OLDNEW
« no previous file with comments | « xfa/fwl/core/cfwl_datetimepicker.h ('k') | xfa/fwl/core/ifwl_datetimepicker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698