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

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

Issue 2505703003: Cleaning up nits in fwl/core files. (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
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
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::GetCaption(IFWL_Widget* pWidget, 60 void CFWL_DateTimePicker::GetCaption(IFWL_Widget* pWidget,
61 CFX_WideString& wsCaption) { 61 CFX_WideString& wsCaption) {
62 wsCaption = m_wsData; 62 wsCaption = L"";
63 } 63 }
64 64
65 void CFWL_DateTimePicker::GetToday(IFWL_Widget* pWidget, 65 void CFWL_DateTimePicker::GetToday(IFWL_Widget* pWidget,
66 int32_t& iYear, 66 int32_t& iYear,
67 int32_t& iMonth, 67 int32_t& iMonth,
68 int32_t& iDay) { 68 int32_t& iDay) {
69 iYear = 2011; 69 iYear = 2011;
70 iMonth = 1; 70 iMonth = 1;
71 iDay = 1; 71 iDay = 1;
72 } 72 }
73 73
74 void CFWL_DateTimePicker::GetBBox(CFX_RectF& rect) { 74 void CFWL_DateTimePicker::GetBBox(CFX_RectF& rect) {
75 ToDateTimePicker(GetWidget())->GetBBox(rect); 75 ToDateTimePicker(GetWidget())->GetBBox(rect);
76 } 76 }
77 77
78 void CFWL_DateTimePicker::SetEditLimit(int32_t nLimit) { 78 void CFWL_DateTimePicker::SetEditLimit(int32_t nLimit) {
79 ToDateTimePicker(GetWidget())->SetEditLimit(nLimit); 79 ToDateTimePicker(GetWidget())->SetEditLimit(nLimit);
80 } 80 }
81 81
82 void CFWL_DateTimePicker::ModifyEditStylesEx(uint32_t dwStylesExAdded, 82 void CFWL_DateTimePicker::ModifyEditStylesEx(uint32_t dwStylesExAdded,
83 uint32_t dwStylesExRemoved) { 83 uint32_t dwStylesExRemoved) {
84 ToDateTimePicker(GetWidget()) 84 ToDateTimePicker(GetWidget())
85 ->ModifyEditStylesEx(dwStylesExAdded, dwStylesExRemoved); 85 ->ModifyEditStylesEx(dwStylesExAdded, dwStylesExRemoved);
86 } 86 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698