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

Side by Side Diff: xfa/fwl/core/cfwl_datetimepicker.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/cfwl_datetimepicker.h ('k') | xfa/fwl/core/cfwl_edit.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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 IFWL_Widget* pWidget, 89 IFWL_Widget* pWidget,
90 int32_t& iYear, 90 int32_t& iYear,
91 int32_t& iMonth, 91 int32_t& iMonth,
92 int32_t& iDay) { 92 int32_t& iDay) {
93 iYear = m_iYear; 93 iYear = m_iYear;
94 iMonth = m_iMonth; 94 iMonth = m_iMonth;
95 iDay = m_iDay; 95 iDay = m_iDay;
96 return FWL_Error::Succeeded; 96 return FWL_Error::Succeeded;
97 } 97 }
98 98
99 FX_BOOL CFWL_DateTimePicker::CanUndo() { 99 bool CFWL_DateTimePicker::CanUndo() {
100 return ToDateTimePicker(GetWidget())->CanUndo(); 100 return ToDateTimePicker(GetWidget())->CanUndo();
101 } 101 }
102 102
103 FX_BOOL CFWL_DateTimePicker::CanRedo() { 103 bool CFWL_DateTimePicker::CanRedo() {
104 return ToDateTimePicker(GetWidget())->CanRedo(); 104 return ToDateTimePicker(GetWidget())->CanRedo();
105 } 105 }
106 106
107 FX_BOOL CFWL_DateTimePicker::Undo() { 107 bool CFWL_DateTimePicker::Undo() {
108 return ToDateTimePicker(GetWidget())->Undo(); 108 return ToDateTimePicker(GetWidget())->Undo();
109 } 109 }
110 110
111 FX_BOOL CFWL_DateTimePicker::Redo() { 111 bool CFWL_DateTimePicker::Redo() {
112 return ToDateTimePicker(GetWidget())->Redo(); 112 return ToDateTimePicker(GetWidget())->Redo();
113 } 113 }
114 114
115 FX_BOOL CFWL_DateTimePicker::CanCopy() { 115 bool CFWL_DateTimePicker::CanCopy() {
116 return ToDateTimePicker(GetWidget())->CanCopy(); 116 return ToDateTimePicker(GetWidget())->CanCopy();
117 } 117 }
118 118
119 FX_BOOL CFWL_DateTimePicker::CanCut() { 119 bool CFWL_DateTimePicker::CanCut() {
120 return ToDateTimePicker(GetWidget())->CanCut(); 120 return ToDateTimePicker(GetWidget())->CanCut();
121 } 121 }
122 122
123 FX_BOOL CFWL_DateTimePicker::CanSelectAll() { 123 bool CFWL_DateTimePicker::CanSelectAll() {
124 return ToDateTimePicker(GetWidget())->CanSelectAll(); 124 return ToDateTimePicker(GetWidget())->CanSelectAll();
125 } 125 }
126 126
127 FX_BOOL CFWL_DateTimePicker::Copy(CFX_WideString& wsCopy) { 127 bool CFWL_DateTimePicker::Copy(CFX_WideString& wsCopy) {
128 return ToDateTimePicker(GetWidget())->Copy(wsCopy); 128 return ToDateTimePicker(GetWidget())->Copy(wsCopy);
129 } 129 }
130 130
131 FX_BOOL CFWL_DateTimePicker::Cut(CFX_WideString& wsCut) { 131 bool CFWL_DateTimePicker::Cut(CFX_WideString& wsCut) {
132 return ToDateTimePicker(GetWidget())->Copy(wsCut); 132 return ToDateTimePicker(GetWidget())->Copy(wsCut);
133 } 133 }
134 134
135 FX_BOOL CFWL_DateTimePicker::Paste(const CFX_WideString& wsPaste) { 135 bool CFWL_DateTimePicker::Paste(const CFX_WideString& wsPaste) {
136 return ToDateTimePicker(GetWidget())->Paste(wsPaste); 136 return ToDateTimePicker(GetWidget())->Paste(wsPaste);
137 } 137 }
138 138
139 FX_BOOL CFWL_DateTimePicker::SelectAll() { 139 bool CFWL_DateTimePicker::SelectAll() {
140 return ToDateTimePicker(GetWidget())->SelectAll(); 140 return ToDateTimePicker(GetWidget())->SelectAll();
141 } 141 }
142 142
143 FX_BOOL CFWL_DateTimePicker::Delete() { 143 bool CFWL_DateTimePicker::Delete() {
144 return ToDateTimePicker(GetWidget())->Delete(); 144 return ToDateTimePicker(GetWidget())->Delete();
145 } 145 }
146 146
147 FX_BOOL CFWL_DateTimePicker::DeSelect() { 147 bool CFWL_DateTimePicker::DeSelect() {
148 return ToDateTimePicker(GetWidget())->DeSelect(); 148 return ToDateTimePicker(GetWidget())->DeSelect();
149 } 149 }
150 150
151 FWL_Error CFWL_DateTimePicker::GetBBox(CFX_RectF& rect) { 151 FWL_Error CFWL_DateTimePicker::GetBBox(CFX_RectF& rect) {
152 return ToDateTimePicker(GetWidget())->GetBBox(rect); 152 return ToDateTimePicker(GetWidget())->GetBBox(rect);
153 } 153 }
154 154
155 FWL_Error CFWL_DateTimePicker::SetEditLimit(int32_t nLimit) { 155 FWL_Error CFWL_DateTimePicker::SetEditLimit(int32_t nLimit) {
156 return ToDateTimePicker(GetWidget())->SetEditLimit(nLimit); 156 return ToDateTimePicker(GetWidget())->SetEditLimit(nLimit);
157 } 157 }
158 158
159 FWL_Error CFWL_DateTimePicker::ModifyEditStylesEx(uint32_t dwStylesExAdded, 159 FWL_Error CFWL_DateTimePicker::ModifyEditStylesEx(uint32_t dwStylesExAdded,
160 uint32_t dwStylesExRemoved) { 160 uint32_t dwStylesExRemoved) {
161 return ToDateTimePicker(GetWidget()) 161 return ToDateTimePicker(GetWidget())
162 ->ModifyEditStylesEx(dwStylesExAdded, dwStylesExRemoved); 162 ->ModifyEditStylesEx(dwStylesExAdded, dwStylesExRemoved);
163 } 163 }
OLDNEW
« no previous file with comments | « xfa/fwl/core/cfwl_datetimepicker.h ('k') | xfa/fwl/core/cfwl_edit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698