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

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

Issue 2488963005: Continue IFWL widget cleanup. (Closed)
Patch Set: Rebase to master 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_combobox.h" 7 #include "xfa/fwl/core/cfwl_combobox.h"
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 } 225 }
226 226
227 void CFWL_ComboBox::EditModifyStylesEx(uint32_t dwStylesExAdded, 227 void CFWL_ComboBox::EditModifyStylesEx(uint32_t dwStylesExAdded,
228 uint32_t dwStylesExRemoved) { 228 uint32_t dwStylesExRemoved) {
229 if (GetWidget()) { 229 if (GetWidget()) {
230 ToComboBox(GetWidget()) 230 ToComboBox(GetWidget())
231 ->EditModifyStylesEx(dwStylesExAdded, dwStylesExRemoved); 231 ->EditModifyStylesEx(dwStylesExAdded, dwStylesExRemoved);
232 } 232 }
233 } 233 }
234 234
235 FWL_Error CFWL_ComboBox::GetCaption(IFWL_Widget* pWidget, 235 void CFWL_ComboBox::GetCaption(IFWL_Widget* pWidget,
236 CFX_WideString& wsCaption) { 236 CFX_WideString& wsCaption) {}
237 return FWL_Error::Succeeded;
238 }
239 237
240 int32_t CFWL_ComboBox::CountItems(const IFWL_Widget* pWidget) { 238 int32_t CFWL_ComboBox::CountItems(const IFWL_Widget* pWidget) {
241 return m_ItemArray.size(); 239 return m_ItemArray.size();
242 } 240 }
243 241
244 CFWL_ListItem* CFWL_ComboBox::GetItem(const IFWL_Widget* pWidget, 242 CFWL_ListItem* CFWL_ComboBox::GetItem(const IFWL_Widget* pWidget,
245 int32_t nIndex) { 243 int32_t nIndex) {
246 if (nIndex < 0 || static_cast<size_t>(nIndex) >= m_ItemArray.size()) 244 if (nIndex < 0 || static_cast<size_t>(nIndex) >= m_ItemArray.size())
247 return nullptr; 245 return nullptr;
248 246
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 344
347 void CFWL_ComboBox::SetItemCheckState(IFWL_Widget* pWidget, 345 void CFWL_ComboBox::SetItemCheckState(IFWL_Widget* pWidget,
348 CFWL_ListItem* pItem, 346 CFWL_ListItem* pItem,
349 uint32_t dwCheckState) { 347 uint32_t dwCheckState) {
350 static_cast<CFWL_ListItem*>(pItem)->m_dwCheckState = dwCheckState; 348 static_cast<CFWL_ListItem*>(pItem)->m_dwCheckState = dwCheckState;
351 } 349 }
352 350
353 FX_FLOAT CFWL_ComboBox::GetListHeight(IFWL_Widget* pWidget) { 351 FX_FLOAT CFWL_ComboBox::GetListHeight(IFWL_Widget* pWidget) {
354 return m_fMaxListHeight; 352 return m_fMaxListHeight;
355 } 353 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698