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

Side by Side Diff: xfa/fwl/lightwidget/combobox.cpp

Issue 1830323006: Remove FX_DWORD from XFA. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 months 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/lightwidget/caret.cpp ('k') | xfa/fwl/lightwidget/datetimepicker.cpp » ('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/include/fwl/lightwidget/combobox.h" 7 #include "xfa/include/fwl/lightwidget/combobox.h"
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 FX_BOOL CFWL_ComboBox::EditDeSelect() { 223 FX_BOOL CFWL_ComboBox::EditDeSelect() {
224 if (!m_pIface) 224 if (!m_pIface)
225 return FALSE; 225 return FALSE;
226 return static_cast<IFWL_ComboBox*>(m_pIface)->EditDeSelect(); 226 return static_cast<IFWL_ComboBox*>(m_pIface)->EditDeSelect();
227 } 227 }
228 FWL_ERR CFWL_ComboBox::GetBBox(CFX_RectF& rect) { 228 FWL_ERR CFWL_ComboBox::GetBBox(CFX_RectF& rect) {
229 if (!m_pIface) 229 if (!m_pIface)
230 return FALSE; 230 return FALSE;
231 return static_cast<IFWL_ComboBox*>(m_pIface)->GetBBox(rect); 231 return static_cast<IFWL_ComboBox*>(m_pIface)->GetBBox(rect);
232 } 232 }
233 FWL_ERR CFWL_ComboBox::EditModifyStylesEx(FX_DWORD dwStylesExAdded, 233 FWL_ERR CFWL_ComboBox::EditModifyStylesEx(uint32_t dwStylesExAdded,
234 FX_DWORD dwStylesExRemoved) { 234 uint32_t dwStylesExRemoved) {
235 if (!m_pIface) 235 if (!m_pIface)
236 return FALSE; 236 return FALSE;
237 return static_cast<IFWL_ComboBox*>(m_pIface) 237 return static_cast<IFWL_ComboBox*>(m_pIface)
238 ->EditModifyStylesEx(dwStylesExAdded, dwStylesExRemoved); 238 ->EditModifyStylesEx(dwStylesExAdded, dwStylesExRemoved);
239 } 239 }
240 CFWL_ComboBox::CFWL_ComboBox() {} 240 CFWL_ComboBox::CFWL_ComboBox() {}
241 CFWL_ComboBox::~CFWL_ComboBox() {} 241 CFWL_ComboBox::~CFWL_ComboBox() {}
242 CFWL_ComboBox::CFWL_ComboBoxDP::CFWL_ComboBoxDP() { 242 CFWL_ComboBox::CFWL_ComboBoxDP::CFWL_ComboBoxDP() {
243 m_fItemHeight = 0; 243 m_fItemHeight = 0;
244 m_fMaxListHeight = 0; 244 m_fMaxListHeight = 0;
(...skipping 20 matching lines...) Expand all
265 } 265 }
266 FX_BOOL CFWL_ComboBox::CFWL_ComboBoxDP::SetItemIndex(IFWL_Widget* pWidget, 266 FX_BOOL CFWL_ComboBox::CFWL_ComboBoxDP::SetItemIndex(IFWL_Widget* pWidget,
267 FWL_HLISTITEM hItem, 267 FWL_HLISTITEM hItem,
268 int32_t nIndex) { 268 int32_t nIndex) {
269 if (nIndex < 0 || static_cast<size_t>(nIndex) >= m_ItemArray.size()) 269 if (nIndex < 0 || static_cast<size_t>(nIndex) >= m_ItemArray.size())
270 return FALSE; 270 return FALSE;
271 271
272 m_ItemArray[nIndex].reset(reinterpret_cast<CFWL_ComboBoxItem*>(hItem)); 272 m_ItemArray[nIndex].reset(reinterpret_cast<CFWL_ComboBoxItem*>(hItem));
273 return TRUE; 273 return TRUE;
274 } 274 }
275 FX_DWORD CFWL_ComboBox::CFWL_ComboBoxDP::GetItemStyles(IFWL_Widget* pWidget, 275 uint32_t CFWL_ComboBox::CFWL_ComboBoxDP::GetItemStyles(IFWL_Widget* pWidget,
276 FWL_HLISTITEM hItem) { 276 FWL_HLISTITEM hItem) {
277 if (!hItem) 277 if (!hItem)
278 return 0; 278 return 0;
279 return reinterpret_cast<CFWL_ComboBoxItem*>(hItem)->m_dwStyles; 279 return reinterpret_cast<CFWL_ComboBoxItem*>(hItem)->m_dwStyles;
280 } 280 }
281 FWL_ERR CFWL_ComboBox::CFWL_ComboBoxDP::GetItemText(IFWL_Widget* pWidget, 281 FWL_ERR CFWL_ComboBox::CFWL_ComboBoxDP::GetItemText(IFWL_Widget* pWidget,
282 FWL_HLISTITEM hItem, 282 FWL_HLISTITEM hItem,
283 CFX_WideString& wsText) { 283 CFX_WideString& wsText) {
284 if (!hItem) 284 if (!hItem)
285 return FWL_ERR_Indefinite; 285 return FWL_ERR_Indefinite;
(...skipping 12 matching lines...) Expand all
298 } 298 }
299 void* CFWL_ComboBox::CFWL_ComboBoxDP::GetItemData(IFWL_Widget* pWidget, 299 void* CFWL_ComboBox::CFWL_ComboBoxDP::GetItemData(IFWL_Widget* pWidget,
300 FWL_HLISTITEM hItem) { 300 FWL_HLISTITEM hItem) {
301 if (!hItem) 301 if (!hItem)
302 return NULL; 302 return NULL;
303 CFWL_ComboBoxItem* pItem = reinterpret_cast<CFWL_ComboBoxItem*>(hItem); 303 CFWL_ComboBoxItem* pItem = reinterpret_cast<CFWL_ComboBoxItem*>(hItem);
304 return pItem->m_pData; 304 return pItem->m_pData;
305 } 305 }
306 FWL_ERR CFWL_ComboBox::CFWL_ComboBoxDP::SetItemStyles(IFWL_Widget* pWidget, 306 FWL_ERR CFWL_ComboBox::CFWL_ComboBoxDP::SetItemStyles(IFWL_Widget* pWidget,
307 FWL_HLISTITEM hItem, 307 FWL_HLISTITEM hItem,
308 FX_DWORD dwStyle) { 308 uint32_t dwStyle) {
309 if (!hItem) 309 if (!hItem)
310 return FWL_ERR_Indefinite; 310 return FWL_ERR_Indefinite;
311 reinterpret_cast<CFWL_ComboBoxItem*>(hItem)->m_dwStyles = dwStyle; 311 reinterpret_cast<CFWL_ComboBoxItem*>(hItem)->m_dwStyles = dwStyle;
312 return FWL_ERR_Succeeded; 312 return FWL_ERR_Succeeded;
313 } 313 }
314 FWL_ERR CFWL_ComboBox::CFWL_ComboBoxDP::SetItemText(IFWL_Widget* pWidget, 314 FWL_ERR CFWL_ComboBox::CFWL_ComboBoxDP::SetItemText(IFWL_Widget* pWidget,
315 FWL_HLISTITEM hItem, 315 FWL_HLISTITEM hItem,
316 const FX_WCHAR* pszText) { 316 const FX_WCHAR* pszText) {
317 if (!hItem) 317 if (!hItem)
318 return FWL_ERR_Indefinite; 318 return FWL_ERR_Indefinite;
(...skipping 25 matching lines...) Expand all
344 return FWL_ERR_Succeeded; 344 return FWL_ERR_Succeeded;
345 } 345 }
346 FWL_ERR CFWL_ComboBox::CFWL_ComboBoxDP::SetItemCheckRect( 346 FWL_ERR CFWL_ComboBox::CFWL_ComboBoxDP::SetItemCheckRect(
347 IFWL_Widget* pWidget, 347 IFWL_Widget* pWidget,
348 FWL_HLISTITEM hItem, 348 FWL_HLISTITEM hItem,
349 const CFX_RectF& rtCheck) { 349 const CFX_RectF& rtCheck) {
350 CFWL_ComboBoxItem* pItem = reinterpret_cast<CFWL_ComboBoxItem*>(hItem); 350 CFWL_ComboBoxItem* pItem = reinterpret_cast<CFWL_ComboBoxItem*>(hItem);
351 pItem->m_rtCheckBox = rtCheck; 351 pItem->m_rtCheckBox = rtCheck;
352 return FWL_ERR_Succeeded; 352 return FWL_ERR_Succeeded;
353 } 353 }
354 FX_DWORD CFWL_ComboBox::CFWL_ComboBoxDP::GetItemCheckState( 354 uint32_t CFWL_ComboBox::CFWL_ComboBoxDP::GetItemCheckState(
355 IFWL_Widget* pWidget, 355 IFWL_Widget* pWidget,
356 FWL_HLISTITEM hItem) { 356 FWL_HLISTITEM hItem) {
357 CFWL_ComboBoxItem* pItem = reinterpret_cast<CFWL_ComboBoxItem*>(hItem); 357 CFWL_ComboBoxItem* pItem = reinterpret_cast<CFWL_ComboBoxItem*>(hItem);
358 return pItem->m_dwCheckState; 358 return pItem->m_dwCheckState;
359 } 359 }
360 FWL_ERR CFWL_ComboBox::CFWL_ComboBoxDP::SetItemCheckState( 360 FWL_ERR CFWL_ComboBox::CFWL_ComboBoxDP::SetItemCheckState(
361 IFWL_Widget* pWidget, 361 IFWL_Widget* pWidget,
362 FWL_HLISTITEM hItem, 362 FWL_HLISTITEM hItem,
363 FX_DWORD dwCheckState) { 363 uint32_t dwCheckState) {
364 CFWL_ComboBoxItem* pItem = reinterpret_cast<CFWL_ComboBoxItem*>(hItem); 364 CFWL_ComboBoxItem* pItem = reinterpret_cast<CFWL_ComboBoxItem*>(hItem);
365 pItem->m_dwCheckState = dwCheckState; 365 pItem->m_dwCheckState = dwCheckState;
366 return FWL_ERR_Succeeded; 366 return FWL_ERR_Succeeded;
367 } 367 }
368 FX_FLOAT CFWL_ComboBox::CFWL_ComboBoxDP::GetListHeight(IFWL_Widget* pWidget) { 368 FX_FLOAT CFWL_ComboBox::CFWL_ComboBoxDP::GetListHeight(IFWL_Widget* pWidget) {
369 return m_fMaxListHeight; 369 return m_fMaxListHeight;
370 } 370 }
OLDNEW
« no previous file with comments | « xfa/fwl/lightwidget/caret.cpp ('k') | xfa/fwl/lightwidget/datetimepicker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698