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

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

Issue 2521303002: Rename IFWL_App to CFWL_App (Closed)
Patch Set: Rebase to master Created 4 years 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_edit.cpp ('k') | xfa/fwl/core/cfwl_listbox.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_LISTBOX_H_ 7 #ifndef XFA_FWL_CORE_CFWL_LISTBOX_H_
8 #define XFA_FWL_CORE_CFWL_LISTBOX_H_ 8 #define XFA_FWL_CORE_CFWL_LISTBOX_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/fwl_error.h" 14 #include "xfa/fwl/core/fwl_error.h"
15 #include "xfa/fwl/core/ifwl_listbox.h" 15 #include "xfa/fwl/core/ifwl_listbox.h"
16 #include "xfa/fwl/core/ifwl_widget.h" 16 #include "xfa/fwl/core/ifwl_widget.h"
17 17
18 class CFWL_ListBox : public CFWL_Widget, public IFWL_ListBox::DataProvider { 18 class CFWL_ListBox : public CFWL_Widget, public IFWL_ListBox::DataProvider {
19 public: 19 public:
20 explicit CFWL_ListBox(const IFWL_App* pApp); 20 explicit CFWL_ListBox(const CFWL_App* pApp);
21 ~CFWL_ListBox() override; 21 ~CFWL_ListBox() override;
22 22
23 void Initialize(); 23 void Initialize();
24 24
25 // IFWL_ListBox::DataProvider: 25 // IFWL_ListBox::DataProvider:
26 int32_t CountItems(const IFWL_Widget* pWidget) const override; 26 int32_t CountItems(const IFWL_Widget* pWidget) const override;
27 CFWL_ListItem* GetItem(const IFWL_Widget* pWidget, 27 CFWL_ListItem* GetItem(const IFWL_Widget* pWidget,
28 int32_t nIndex) const override; 28 int32_t nIndex) const override;
29 int32_t GetItemIndex(IFWL_Widget* pWidget, CFWL_ListItem* pItem) override; 29 int32_t GetItemIndex(IFWL_Widget* pWidget, CFWL_ListItem* pItem) override;
30 uint32_t GetItemStyles(IFWL_Widget* pWidget, CFWL_ListItem* pItem) override; 30 uint32_t GetItemStyles(IFWL_Widget* pWidget, CFWL_ListItem* pItem) override;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 CFWL_ListItem* GetSelItem(int32_t nIndexSel); 64 CFWL_ListItem* GetSelItem(int32_t nIndexSel);
65 int32_t GetSelIndex(int32_t nIndex); 65 int32_t GetSelIndex(int32_t nIndex);
66 66
67 uint32_t GetItemStates(CFWL_ListItem* pItem); 67 uint32_t GetItemStates(CFWL_ListItem* pItem);
68 68
69 private: 69 private:
70 std::vector<std::unique_ptr<CFWL_ListItem>> m_ItemArray; 70 std::vector<std::unique_ptr<CFWL_ListItem>> m_ItemArray;
71 }; 71 };
72 72
73 #endif // XFA_FWL_CORE_CFWL_LISTBOX_H_ 73 #endif // XFA_FWL_CORE_CFWL_LISTBOX_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/cfwl_edit.cpp ('k') | xfa/fwl/core/cfwl_listbox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698