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

Side by Side Diff: xfa/include/fwl/lightwidget/combobox.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, 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/include/fwl/lightwidget/caret.h ('k') | xfa/include/fwl/lightwidget/datetimepicker.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_INCLUDE_FWL_LIGHTWIDGET_COMBOBOX_H_ 7 #ifndef XFA_INCLUDE_FWL_LIGHTWIDGET_COMBOBOX_H_
8 #define XFA_INCLUDE_FWL_LIGHTWIDGET_COMBOBOX_H_ 8 #define XFA_INCLUDE_FWL_LIGHTWIDGET_COMBOBOX_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 FX_BOOL EditCanCopy(); 57 FX_BOOL EditCanCopy();
58 FX_BOOL EditCanCut(); 58 FX_BOOL EditCanCut();
59 FX_BOOL EditCanSelectAll(); 59 FX_BOOL EditCanSelectAll();
60 FX_BOOL EditCopy(CFX_WideString& wsCopy); 60 FX_BOOL EditCopy(CFX_WideString& wsCopy);
61 FX_BOOL EditCut(CFX_WideString& wsCut); 61 FX_BOOL EditCut(CFX_WideString& wsCut);
62 FX_BOOL EditPaste(const CFX_WideString& wsPaste); 62 FX_BOOL EditPaste(const CFX_WideString& wsPaste);
63 FX_BOOL EditSelectAll(); 63 FX_BOOL EditSelectAll();
64 FX_BOOL EditDelete(); 64 FX_BOOL EditDelete();
65 FX_BOOL EditDeSelect(); 65 FX_BOOL EditDeSelect();
66 FWL_ERR GetBBox(CFX_RectF& rect); 66 FWL_ERR GetBBox(CFX_RectF& rect);
67 FWL_ERR EditModifyStylesEx(FX_DWORD dwStylesExAdded, 67 FWL_ERR EditModifyStylesEx(uint32_t dwStylesExAdded,
68 FX_DWORD dwStylesExRemoved); 68 uint32_t dwStylesExRemoved);
69 CFWL_ComboBox(); 69 CFWL_ComboBox();
70 virtual ~CFWL_ComboBox(); 70 virtual ~CFWL_ComboBox();
71 71
72 protected: 72 protected:
73 class CFWL_ComboBoxDP : public IFWL_ComboBoxDP { 73 class CFWL_ComboBoxDP : public IFWL_ComboBoxDP {
74 public: 74 public:
75 CFWL_ComboBoxDP(); 75 CFWL_ComboBoxDP();
76 ~CFWL_ComboBoxDP(); 76 ~CFWL_ComboBoxDP();
77 virtual FWL_ERR GetCaption(IFWL_Widget* pWidget, 77 virtual FWL_ERR GetCaption(IFWL_Widget* pWidget,
78 CFX_WideString& wsCaption) { 78 CFX_WideString& wsCaption) {
79 return FWL_ERR_Succeeded; 79 return FWL_ERR_Succeeded;
80 } 80 }
81 81
82 virtual int32_t CountItems(IFWL_Widget* pWidget); 82 virtual int32_t CountItems(IFWL_Widget* pWidget);
83 virtual FWL_HLISTITEM GetItem(IFWL_Widget* pWidget, int32_t nIndex); 83 virtual FWL_HLISTITEM GetItem(IFWL_Widget* pWidget, int32_t nIndex);
84 virtual int32_t GetItemIndex(IFWL_Widget* pWidget, FWL_HLISTITEM hItem); 84 virtual int32_t GetItemIndex(IFWL_Widget* pWidget, FWL_HLISTITEM hItem);
85 virtual FX_BOOL SetItemIndex(IFWL_Widget* pWidget, 85 virtual FX_BOOL SetItemIndex(IFWL_Widget* pWidget,
86 FWL_HLISTITEM hItem, 86 FWL_HLISTITEM hItem,
87 int32_t nIndex); 87 int32_t nIndex);
88 88
89 virtual FX_DWORD GetItemStyles(IFWL_Widget* pWidget, FWL_HLISTITEM hItem); 89 virtual uint32_t GetItemStyles(IFWL_Widget* pWidget, FWL_HLISTITEM hItem);
90 virtual FWL_ERR GetItemText(IFWL_Widget* pWidget, 90 virtual FWL_ERR GetItemText(IFWL_Widget* pWidget,
91 FWL_HLISTITEM hItem, 91 FWL_HLISTITEM hItem,
92 CFX_WideString& wsText); 92 CFX_WideString& wsText);
93 virtual FWL_ERR GetItemRect(IFWL_Widget* pWidget, 93 virtual FWL_ERR GetItemRect(IFWL_Widget* pWidget,
94 FWL_HLISTITEM hItem, 94 FWL_HLISTITEM hItem,
95 CFX_RectF& rtItem); 95 CFX_RectF& rtItem);
96 virtual void* GetItemData(IFWL_Widget* pWidget, FWL_HLISTITEM hItem); 96 virtual void* GetItemData(IFWL_Widget* pWidget, FWL_HLISTITEM hItem);
97 virtual FWL_ERR SetItemStyles(IFWL_Widget* pWidget, 97 virtual FWL_ERR SetItemStyles(IFWL_Widget* pWidget,
98 FWL_HLISTITEM hItem, 98 FWL_HLISTITEM hItem,
99 FX_DWORD dwStyle); 99 uint32_t dwStyle);
100 virtual FWL_ERR SetItemText(IFWL_Widget* pWidget, 100 virtual FWL_ERR SetItemText(IFWL_Widget* pWidget,
101 FWL_HLISTITEM hItem, 101 FWL_HLISTITEM hItem,
102 const FX_WCHAR* pszText); 102 const FX_WCHAR* pszText);
103 virtual FWL_ERR SetItemRect(IFWL_Widget* pWidget, 103 virtual FWL_ERR SetItemRect(IFWL_Widget* pWidget,
104 FWL_HLISTITEM hItem, 104 FWL_HLISTITEM hItem,
105 const CFX_RectF& rtItem); 105 const CFX_RectF& rtItem);
106 virtual FX_FLOAT GetItemHeight(IFWL_Widget* pWidget); 106 virtual FX_FLOAT GetItemHeight(IFWL_Widget* pWidget);
107 virtual CFX_DIBitmap* GetItemIcon(IFWL_Widget* pWidget, 107 virtual CFX_DIBitmap* GetItemIcon(IFWL_Widget* pWidget,
108 FWL_HLISTITEM hItem); 108 FWL_HLISTITEM hItem);
109 virtual FWL_ERR GetItemCheckRect(IFWL_Widget* pWidget, 109 virtual FWL_ERR GetItemCheckRect(IFWL_Widget* pWidget,
110 FWL_HLISTITEM hItem, 110 FWL_HLISTITEM hItem,
111 CFX_RectF& rtCheck); 111 CFX_RectF& rtCheck);
112 virtual FWL_ERR SetItemCheckRect(IFWL_Widget* pWidget, 112 virtual FWL_ERR SetItemCheckRect(IFWL_Widget* pWidget,
113 FWL_HLISTITEM hItem, 113 FWL_HLISTITEM hItem,
114 const CFX_RectF& rtCheck); 114 const CFX_RectF& rtCheck);
115 virtual FX_DWORD GetItemCheckState(IFWL_Widget* pWidget, 115 virtual uint32_t GetItemCheckState(IFWL_Widget* pWidget,
116 FWL_HLISTITEM hItem); 116 FWL_HLISTITEM hItem);
117 virtual FWL_ERR SetItemCheckState(IFWL_Widget* pWidget, 117 virtual FWL_ERR SetItemCheckState(IFWL_Widget* pWidget,
118 FWL_HLISTITEM hItem, 118 FWL_HLISTITEM hItem,
119 FX_DWORD dwCheckState); 119 uint32_t dwCheckState);
120 virtual FX_FLOAT GetListHeight(IFWL_Widget* pWidget); 120 virtual FX_FLOAT GetListHeight(IFWL_Widget* pWidget);
121 121
122 std::vector<std::unique_ptr<CFWL_ComboBoxItem>> m_ItemArray; 122 std::vector<std::unique_ptr<CFWL_ComboBoxItem>> m_ItemArray;
123 FX_FLOAT m_fMaxListHeight; 123 FX_FLOAT m_fMaxListHeight;
124 FX_FLOAT m_fItemHeight; 124 FX_FLOAT m_fItemHeight;
125 }; 125 };
126 CFWL_ComboBoxDP m_comboBoxData; 126 CFWL_ComboBoxDP m_comboBoxData;
127 }; 127 };
128 128
129 class CFWL_ComboBoxItem { 129 class CFWL_ComboBoxItem {
130 public: 130 public:
131 CFWL_ComboBoxItem() { 131 CFWL_ComboBoxItem() {
132 m_pDIB = NULL; 132 m_pDIB = NULL;
133 m_pData = NULL; 133 m_pData = NULL;
134 } 134 }
135 CFX_RectF m_rtItem; 135 CFX_RectF m_rtItem;
136 FX_DWORD m_dwStyles; 136 uint32_t m_dwStyles;
137 CFX_WideString m_wsText; 137 CFX_WideString m_wsText;
138 CFX_DIBitmap* m_pDIB; 138 CFX_DIBitmap* m_pDIB;
139 FX_DWORD m_dwCheckState; 139 uint32_t m_dwCheckState;
140 CFX_RectF m_rtCheckBox; 140 CFX_RectF m_rtCheckBox;
141 void* m_pData; 141 void* m_pData;
142 }; 142 };
143 143
144 #endif // XFA_INCLUDE_FWL_LIGHTWIDGET_COMBOBOX_H_ 144 #endif // XFA_INCLUDE_FWL_LIGHTWIDGET_COMBOBOX_H_
OLDNEW
« no previous file with comments | « xfa/include/fwl/lightwidget/caret.h ('k') | xfa/include/fwl/lightwidget/datetimepicker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698