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

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

Issue 2498163002: Cleanup cfwl_* files. (Closed)
Patch Set: Review feedback 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_ComboBox : public CFWL_Widget, public IFWL_ComboBoxDP { 16 class CFWL_ComboBox : public CFWL_Widget, public IFWL_ComboBoxDP {
17 public: 17 public:
18 CFWL_ComboBox(const IFWL_App*); 18 explicit CFWL_ComboBox(const IFWL_App* pApp);
19 ~CFWL_ComboBox() override; 19 ~CFWL_ComboBox() override;
20 20
21 void Initialize(); 21 void Initialize();
22 22
23 // IFWL_DataProvider 23 // IFWL_DataProvider
24 void GetCaption(IFWL_Widget* pWidget, CFX_WideString& wsCaption) override; 24 void GetCaption(IFWL_Widget* pWidget, CFX_WideString& wsCaption) override;
25 25
26 // IFWL_ListBoxDP 26 // IFWL_ListBoxDP
27 int32_t CountItems(const IFWL_Widget* pWidget) const override; 27 int32_t CountItems(const IFWL_Widget* pWidget) const override;
28 CFWL_ListItem* GetItem(const IFWL_Widget* pWidget, 28 CFWL_ListItem* GetItem(const IFWL_Widget* pWidget,
29 int32_t nIndex) const override; 29 int32_t nIndex) const override;
30 int32_t GetItemIndex(IFWL_Widget* pWidget, CFWL_ListItem* pItem) override; 30 int32_t GetItemIndex(IFWL_Widget* pWidget, CFWL_ListItem* pItem) override;
31 bool SetItemIndex(IFWL_Widget* pWidget,
32 CFWL_ListItem* pItem,
33 int32_t nIndex) override;
34
35 uint32_t GetItemStyles(IFWL_Widget* pWidget, CFWL_ListItem* pItem) override; 31 uint32_t GetItemStyles(IFWL_Widget* pWidget, CFWL_ListItem* pItem) override;
36 void GetItemText(IFWL_Widget* pWidget, 32 void GetItemText(IFWL_Widget* pWidget,
37 CFWL_ListItem* pItem, 33 CFWL_ListItem* pItem,
38 CFX_WideString& wsText) override; 34 CFX_WideString& wsText) override;
39 void GetItemRect(IFWL_Widget* pWidget, 35 void GetItemRect(IFWL_Widget* pWidget,
40 CFWL_ListItem* pItem, 36 CFWL_ListItem* pItem,
41 CFX_RectF& rtItem) override; 37 CFX_RectF& rtItem) override;
42 void* GetItemData(IFWL_Widget* pWidget, CFWL_ListItem* pItem) override; 38 void* GetItemData(IFWL_Widget* pWidget, CFWL_ListItem* pItem) override;
43 void SetItemStyles(IFWL_Widget* pWidget, 39 void SetItemStyles(IFWL_Widget* pWidget,
44 CFWL_ListItem* pItem, 40 CFWL_ListItem* pItem,
45 uint32_t dwStyle) override; 41 uint32_t dwStyle) override;
46 void SetItemText(IFWL_Widget* pWidget,
47 CFWL_ListItem* pItem,
48 const FX_WCHAR* pszText) override;
49 void SetItemRect(IFWL_Widget* pWidget, 42 void SetItemRect(IFWL_Widget* pWidget,
50 CFWL_ListItem* pItem, 43 CFWL_ListItem* pItem,
51 const CFX_RectF& rtItem) override; 44 const CFX_RectF& rtItem) override;
52 FX_FLOAT GetItemHeight(IFWL_Widget* pWidget) override;
53 CFX_DIBitmap* GetItemIcon(IFWL_Widget* pWidget, 45 CFX_DIBitmap* GetItemIcon(IFWL_Widget* pWidget,
54 CFWL_ListItem* pItem) override; 46 CFWL_ListItem* pItem) override;
55 void GetItemCheckRect(IFWL_Widget* pWidget, 47 void GetItemCheckRect(IFWL_Widget* pWidget,
56 CFWL_ListItem* pItem, 48 CFWL_ListItem* pItem,
57 CFX_RectF& rtCheck) override; 49 CFX_RectF& rtCheck) override;
58 void SetItemCheckRect(IFWL_Widget* pWidget, 50 void SetItemCheckRect(IFWL_Widget* pWidget,
59 CFWL_ListItem* pItem, 51 CFWL_ListItem* pItem,
60 const CFX_RectF& rtCheck) override; 52 const CFX_RectF& rtCheck) override;
61 uint32_t GetItemCheckState(IFWL_Widget* pWidget, 53 uint32_t GetItemCheckState(IFWL_Widget* pWidget,
62 CFWL_ListItem* pItem) override; 54 CFWL_ListItem* pItem) override;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 bool EditSelectAll(); 88 bool EditSelectAll();
97 bool EditDelete(); 89 bool EditDelete();
98 bool EditDeSelect(); 90 bool EditDeSelect();
99 91
100 void GetBBox(CFX_RectF& rect); 92 void GetBBox(CFX_RectF& rect);
101 void EditModifyStylesEx(uint32_t dwStylesExAdded, uint32_t dwStylesExRemoved); 93 void EditModifyStylesEx(uint32_t dwStylesExAdded, uint32_t dwStylesExRemoved);
102 94
103 private: 95 private:
104 std::vector<std::unique_ptr<CFWL_ListItem>> m_ItemArray; 96 std::vector<std::unique_ptr<CFWL_ListItem>> m_ItemArray;
105 FX_FLOAT m_fMaxListHeight; 97 FX_FLOAT m_fMaxListHeight;
106 FX_FLOAT m_fItemHeight;
107 }; 98 };
108 99
109 #endif // XFA_FWL_CORE_CFWL_COMBOBOX_H_ 100 #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