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

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

Issue 2467503003: Remove GetWidget() overrides (Closed)
Patch Set: 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_checkbox.cpp ('k') | xfa/fwl/core/cfwl_combobox.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 #ifndef XFA_FWL_CORE_CFWL_COMBOBOX_H_ 7 #ifndef XFA_FWL_CORE_CFWL_COMBOBOX_H_
8 #define XFA_FWL_CORE_CFWL_COMBOBOX_H_ 8 #define XFA_FWL_CORE_CFWL_COMBOBOX_H_
9 9
10 #include <memory> 10 #include <memory>
11 #include <vector> 11 #include <vector>
12 12
13 #include "xfa/fwl/core/cfwl_widget.h" 13 #include "xfa/fwl/core/cfwl_widget.h"
14 #include "xfa/fwl/core/ifwl_combobox.h" 14 #include "xfa/fwl/core/ifwl_combobox.h"
15 15
16 class CFWL_WidgetProperties; 16 class CFWL_WidgetProperties;
17 class IFWL_ComboBoxDP; 17 class IFWL_ComboBoxDP;
18 class CFWL_ComboBoxDP; 18 class CFWL_ComboBoxDP;
19 class CFWL_ComboBoxItem; 19 class CFWL_ComboBoxItem;
20 20
21 class CFWL_ComboBox : public CFWL_Widget { 21 class CFWL_ComboBox : public CFWL_Widget {
22 public: 22 public:
23 CFWL_ComboBox(const IFWL_App*); 23 CFWL_ComboBox(const IFWL_App*);
24 ~CFWL_ComboBox() override; 24 ~CFWL_ComboBox() override;
25 25
26 IFWL_ComboBox* GetWidget() override;
27 const IFWL_ComboBox* GetWidget() const override;
28
29 void Initialize(); 26 void Initialize();
30 27
31 int32_t AddString(const CFX_WideStringC& wsText); 28 int32_t AddString(const CFX_WideStringC& wsText);
32 int32_t AddString(const CFX_WideStringC& wsText, CFX_DIBitmap* pIcon); 29 int32_t AddString(const CFX_WideStringC& wsText, CFX_DIBitmap* pIcon);
33 bool RemoveAt(int32_t iIndex); // Returns false iff |iIndex| out of range. 30 bool RemoveAt(int32_t iIndex); // Returns false iff |iIndex| out of range.
34 void RemoveAll(); 31 void RemoveAll();
35 int32_t CountItems(); 32 int32_t CountItems();
36 FWL_Error GetTextByIndex(int32_t iIndex, CFX_WideString& wsText); 33 FWL_Error GetTextByIndex(int32_t iIndex, CFX_WideString& wsText);
37 int32_t GetCurSel(); 34 int32_t GetCurSel();
38 FWL_Error SetCurSel(int32_t iSel); 35 FWL_Error SetCurSel(int32_t iSel);
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 CFX_RectF m_rtItem; 137 CFX_RectF m_rtItem;
141 uint32_t m_dwStyles; 138 uint32_t m_dwStyles;
142 CFX_WideString m_wsText; 139 CFX_WideString m_wsText;
143 CFX_DIBitmap* m_pDIB; 140 CFX_DIBitmap* m_pDIB;
144 uint32_t m_dwCheckState; 141 uint32_t m_dwCheckState;
145 CFX_RectF m_rtCheckBox; 142 CFX_RectF m_rtCheckBox;
146 void* m_pData; 143 void* m_pData;
147 }; 144 };
148 145
149 #endif // XFA_FWL_CORE_CFWL_COMBOBOX_H_ 146 #endif // XFA_FWL_CORE_CFWL_COMBOBOX_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/cfwl_checkbox.cpp ('k') | xfa/fwl/core/cfwl_combobox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698