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

Side by Side Diff: xfa/fwl/basewidget/ifwl_listbox.h

Issue 1835703002: Remove FX_DWORD from XFA, part 2 (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 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/basewidget/ifwl_edit.h ('k') | xfa/fwl/basewidget/ifwl_scrollbar.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 #ifndef XFA_FWL_BASEWIDGET_IFWL_LISTBOX_H_ 7 #ifndef XFA_FWL_BASEWIDGET_IFWL_LISTBOX_H_
8 #define XFA_FWL_BASEWIDGET_IFWL_LISTBOX_H_ 8 #define XFA_FWL_BASEWIDGET_IFWL_LISTBOX_H_
9 9
10 #include "xfa/fwl/core/ifwl_widget.h" 10 #include "xfa/fwl/core/ifwl_widget.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 END_FWL_EVENT_DEF 73 END_FWL_EVENT_DEF
74 74
75 class IFWL_ListBoxDP : public IFWL_DataProvider { 75 class IFWL_ListBoxDP : public IFWL_DataProvider {
76 public: 76 public:
77 virtual int32_t CountItems(IFWL_Widget* pWidget) = 0; 77 virtual int32_t CountItems(IFWL_Widget* pWidget) = 0;
78 virtual FWL_HLISTITEM GetItem(IFWL_Widget* pWidget, int32_t nIndex) = 0; 78 virtual FWL_HLISTITEM GetItem(IFWL_Widget* pWidget, int32_t nIndex) = 0;
79 virtual int32_t GetItemIndex(IFWL_Widget* pWidget, FWL_HLISTITEM hItem) = 0; 79 virtual int32_t GetItemIndex(IFWL_Widget* pWidget, FWL_HLISTITEM hItem) = 0;
80 virtual FX_BOOL SetItemIndex(IFWL_Widget* pWidget, 80 virtual FX_BOOL SetItemIndex(IFWL_Widget* pWidget,
81 FWL_HLISTITEM hItem, 81 FWL_HLISTITEM hItem,
82 int32_t nIndex) = 0; 82 int32_t nIndex) = 0;
83 virtual FX_DWORD GetItemStyles(IFWL_Widget* pWidget, FWL_HLISTITEM hItem) = 0; 83 virtual uint32_t GetItemStyles(IFWL_Widget* pWidget, FWL_HLISTITEM hItem) = 0;
84 virtual FWL_ERR GetItemText(IFWL_Widget* pWidget, 84 virtual FWL_ERR GetItemText(IFWL_Widget* pWidget,
85 FWL_HLISTITEM hItem, 85 FWL_HLISTITEM hItem,
86 CFX_WideString& wsText) = 0; 86 CFX_WideString& wsText) = 0;
87 virtual FWL_ERR GetItemRect(IFWL_Widget* pWidget, 87 virtual FWL_ERR GetItemRect(IFWL_Widget* pWidget,
88 FWL_HLISTITEM hItem, 88 FWL_HLISTITEM hItem,
89 CFX_RectF& rtItem) = 0; 89 CFX_RectF& rtItem) = 0;
90 virtual void* GetItemData(IFWL_Widget* pWidget, FWL_HLISTITEM hItem) = 0; 90 virtual void* GetItemData(IFWL_Widget* pWidget, FWL_HLISTITEM hItem) = 0;
91 virtual FWL_ERR SetItemStyles(IFWL_Widget* pWidget, 91 virtual FWL_ERR SetItemStyles(IFWL_Widget* pWidget,
92 FWL_HLISTITEM hItem, 92 FWL_HLISTITEM hItem,
93 FX_DWORD dwStyle) = 0; 93 uint32_t dwStyle) = 0;
94 virtual FWL_ERR SetItemText(IFWL_Widget* pWidget, 94 virtual FWL_ERR SetItemText(IFWL_Widget* pWidget,
95 FWL_HLISTITEM hItem, 95 FWL_HLISTITEM hItem,
96 const FX_WCHAR* pszText) = 0; 96 const FX_WCHAR* pszText) = 0;
97 virtual FWL_ERR SetItemRect(IFWL_Widget* pWidget, 97 virtual FWL_ERR SetItemRect(IFWL_Widget* pWidget,
98 FWL_HLISTITEM hItem, 98 FWL_HLISTITEM hItem,
99 const CFX_RectF& rtItem) = 0; 99 const CFX_RectF& rtItem) = 0;
100 virtual FX_FLOAT GetItemHeight(IFWL_Widget* pWidget) = 0; 100 virtual FX_FLOAT GetItemHeight(IFWL_Widget* pWidget) = 0;
101 virtual CFX_DIBitmap* GetItemIcon(IFWL_Widget* pWidget, 101 virtual CFX_DIBitmap* GetItemIcon(IFWL_Widget* pWidget,
102 FWL_HLISTITEM hItem) = 0; 102 FWL_HLISTITEM hItem) = 0;
103 virtual FWL_ERR GetItemCheckRect(IFWL_Widget* pWidget, 103 virtual FWL_ERR GetItemCheckRect(IFWL_Widget* pWidget,
104 FWL_HLISTITEM hItem, 104 FWL_HLISTITEM hItem,
105 CFX_RectF& rtCheck) = 0; 105 CFX_RectF& rtCheck) = 0;
106 virtual FWL_ERR SetItemCheckRect(IFWL_Widget* pWidget, 106 virtual FWL_ERR SetItemCheckRect(IFWL_Widget* pWidget,
107 FWL_HLISTITEM hItem, 107 FWL_HLISTITEM hItem,
108 const CFX_RectF& rtCheck) = 0; 108 const CFX_RectF& rtCheck) = 0;
109 virtual FX_DWORD GetItemCheckState(IFWL_Widget* pWidget, 109 virtual uint32_t GetItemCheckState(IFWL_Widget* pWidget,
110 FWL_HLISTITEM hItem) = 0; 110 FWL_HLISTITEM hItem) = 0;
111 virtual FWL_ERR SetItemCheckState(IFWL_Widget* pWidget, 111 virtual FWL_ERR SetItemCheckState(IFWL_Widget* pWidget,
112 FWL_HLISTITEM hItem, 112 FWL_HLISTITEM hItem,
113 FX_DWORD dwCheckState) = 0; 113 uint32_t dwCheckState) = 0;
114 }; 114 };
115 115
116 class IFWL_ListBoxCompare { 116 class IFWL_ListBoxCompare {
117 public: 117 public:
118 virtual ~IFWL_ListBoxCompare() {} 118 virtual ~IFWL_ListBoxCompare() {}
119 virtual int32_t Compare(FWL_HLISTITEM hLeft, FWL_HLISTITEM hRight) = 0; 119 virtual int32_t Compare(FWL_HLISTITEM hLeft, FWL_HLISTITEM hRight) = 0;
120 }; 120 };
121 121
122 class IFWL_ListBox : public IFWL_Widget { 122 class IFWL_ListBox : public IFWL_Widget {
123 public: 123 public:
124 static IFWL_ListBox* Create(const CFWL_WidgetImpProperties& properties, 124 static IFWL_ListBox* Create(const CFWL_WidgetImpProperties& properties,
125 IFWL_Widget* pOuter); 125 IFWL_Widget* pOuter);
126 static IFWL_ListBox* CreateComboList( 126 static IFWL_ListBox* CreateComboList(
127 const CFWL_WidgetImpProperties& properties, 127 const CFWL_WidgetImpProperties& properties,
128 IFWL_Widget* pOuter); 128 IFWL_Widget* pOuter);
129 129
130 int32_t CountSelItems(); 130 int32_t CountSelItems();
131 FWL_HLISTITEM GetSelItem(int32_t nIndexSel); 131 FWL_HLISTITEM GetSelItem(int32_t nIndexSel);
132 int32_t GetSelIndex(int32_t nIndex); 132 int32_t GetSelIndex(int32_t nIndex);
133 FWL_ERR SetSelItem(FWL_HLISTITEM hItem, FX_BOOL bSelect = TRUE); 133 FWL_ERR SetSelItem(FWL_HLISTITEM hItem, FX_BOOL bSelect = TRUE);
134 FWL_ERR GetItemText(FWL_HLISTITEM hItem, CFX_WideString& wsText); 134 FWL_ERR GetItemText(FWL_HLISTITEM hItem, CFX_WideString& wsText);
135 FWL_ERR GetScrollPos(FX_FLOAT& fPos, FX_BOOL bVert = TRUE); 135 FWL_ERR GetScrollPos(FX_FLOAT& fPos, FX_BOOL bVert = TRUE);
136 FWL_ERR* Sort(IFWL_ListBoxCompare* pCom); 136 FWL_ERR* Sort(IFWL_ListBoxCompare* pCom);
137 137
138 protected: 138 protected:
139 IFWL_ListBox(); 139 IFWL_ListBox();
140 }; 140 };
141 141
142 #endif // XFA_FWL_BASEWIDGET_IFWL_LISTBOX_H_ 142 #endif // XFA_FWL_BASEWIDGET_IFWL_LISTBOX_H_
OLDNEW
« no previous file with comments | « xfa/fwl/basewidget/ifwl_edit.h ('k') | xfa/fwl/basewidget/ifwl_scrollbar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698