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

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

Issue 2491103002: IFWL method and param cleanup (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/cfwl_combobox.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_combobox.h" 7 #include "xfa/fwl/core/cfwl_combobox.h"
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 120
121 int32_t CFWL_ComboBox::GetEditLimit() { 121 int32_t CFWL_ComboBox::GetEditLimit() {
122 return GetWidget() ? ToComboBox(GetWidget())->GetEditLimit() : 0; 122 return GetWidget() ? ToComboBox(GetWidget())->GetEditLimit() : 0;
123 } 123 }
124 124
125 FWL_Error CFWL_ComboBox::SetEditLimit(int32_t nLimit) { 125 FWL_Error CFWL_ComboBox::SetEditLimit(int32_t nLimit) {
126 return GetWidget() ? ToComboBox(GetWidget())->SetEditLimit(nLimit) 126 return GetWidget() ? ToComboBox(GetWidget())->SetEditLimit(nLimit)
127 : FWL_Error::Indefinite; 127 : FWL_Error::Indefinite;
128 } 128 }
129 129
130 FWL_Error CFWL_ComboBox::EditDoClipboard(int32_t iCmd) {
131 return GetWidget() ? ToComboBox(GetWidget())->EditDoClipboard(iCmd)
132 : FWL_Error::Indefinite;
133 }
134
135 bool CFWL_ComboBox::EditRedo(const IFDE_TxtEdtDoRecord* pRecord) { 130 bool CFWL_ComboBox::EditRedo(const IFDE_TxtEdtDoRecord* pRecord) {
136 return GetWidget() ? ToComboBox(GetWidget())->EditRedo(pRecord) : false; 131 return GetWidget() ? ToComboBox(GetWidget())->EditRedo(pRecord) : false;
137 } 132 }
138 133
139 bool CFWL_ComboBox::EditUndo(const IFDE_TxtEdtDoRecord* pRecord) { 134 bool CFWL_ComboBox::EditUndo(const IFDE_TxtEdtDoRecord* pRecord) {
140 return GetWidget() ? ToComboBox(GetWidget())->EditUndo(pRecord) : false; 135 return GetWidget() ? ToComboBox(GetWidget())->EditUndo(pRecord) : false;
141 } 136 }
142 137
143 FWL_Error CFWL_ComboBox::SetMaxListHeight(FX_FLOAT fMaxHeight) { 138 FWL_Error CFWL_ComboBox::SetMaxListHeight(FX_FLOAT fMaxHeight) {
144 m_fMaxListHeight = fMaxHeight; 139 m_fMaxListHeight = fMaxHeight;
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 346
352 void CFWL_ComboBox::SetItemCheckState(IFWL_Widget* pWidget, 347 void CFWL_ComboBox::SetItemCheckState(IFWL_Widget* pWidget,
353 CFWL_ListItem* pItem, 348 CFWL_ListItem* pItem,
354 uint32_t dwCheckState) { 349 uint32_t dwCheckState) {
355 static_cast<CFWL_ListItem*>(pItem)->m_dwCheckState = dwCheckState; 350 static_cast<CFWL_ListItem*>(pItem)->m_dwCheckState = dwCheckState;
356 } 351 }
357 352
358 FX_FLOAT CFWL_ComboBox::GetListHeight(IFWL_Widget* pWidget) { 353 FX_FLOAT CFWL_ComboBox::GetListHeight(IFWL_Widget* pWidget) {
359 return m_fMaxListHeight; 354 return m_fMaxListHeight;
360 } 355 }
OLDNEW
« no previous file with comments | « xfa/fwl/core/cfwl_combobox.h ('k') | xfa/fwl/core/cfwl_edit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698