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

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

Issue 2432423002: Merge the CFWL_*Imp classes into the IFWL_* classes. (Closed)
Patch Set: Review feedback Created 4 years, 2 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/lightwidget/cfwl_edit.cpp ('k') | xfa/fwl/lightwidget/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_LIGHTWIDGET_CFWL_LISTBOX_H_ 7 #ifndef XFA_FWL_LIGHTWIDGET_CFWL_LISTBOX_H_
8 #define XFA_FWL_LIGHTWIDGET_CFWL_LISTBOX_H_ 8 #define XFA_FWL_LIGHTWIDGET_CFWL_LISTBOX_H_
9 9
10 #include <memory> 10 #include <memory>
11 #include <vector> 11 #include <vector>
12 12
13 #include "xfa/fwl/basewidget/ifwl_listbox.h"
14 #include "xfa/fwl/core/fwl_error.h" 13 #include "xfa/fwl/core/fwl_error.h"
14 #include "xfa/fwl/core/ifwl_listbox.h"
15 #include "xfa/fwl/core/ifwl_widget.h" 15 #include "xfa/fwl/core/ifwl_widget.h"
16 #include "xfa/fwl/lightwidget/cfwl_widget.h" 16 #include "xfa/fwl/lightwidget/cfwl_widget.h"
17 17
18 class CFWL_ListItem; 18 class CFWL_ListItem;
19 19
20 class CFWL_ListBox : public CFWL_Widget { 20 class CFWL_ListBox : public CFWL_Widget {
21 public: 21 public:
22 CFWL_ListBox(); 22 CFWL_ListBox();
23 ~CFWL_ListBox() override; 23 ~CFWL_ListBox() override;
24 24
(...skipping 28 matching lines...) Expand all
53 class CFWL_ListBoxDP : public IFWL_ListBoxDP { 53 class CFWL_ListBoxDP : public IFWL_ListBoxDP {
54 public: 54 public:
55 CFWL_ListBoxDP(); 55 CFWL_ListBoxDP();
56 ~CFWL_ListBoxDP() override; 56 ~CFWL_ListBoxDP() override;
57 57
58 // IFWL_DataProvider: 58 // IFWL_DataProvider:
59 FWL_Error GetCaption(IFWL_Widget* pWidget, 59 FWL_Error GetCaption(IFWL_Widget* pWidget,
60 CFX_WideString& wsCaption) override; 60 CFX_WideString& wsCaption) override;
61 61
62 // IFWL_ListBoxDP: 62 // IFWL_ListBoxDP:
63 int32_t CountItems(IFWL_Widget* pWidget) override; 63 int32_t CountItems(const IFWL_Widget* pWidget) override;
64 IFWL_ListItem* GetItem(IFWL_Widget* pWidget, int32_t nIndex) override; 64 IFWL_ListItem* GetItem(const IFWL_Widget* pWidget, int32_t nIndex) override;
65 int32_t GetItemIndex(IFWL_Widget* pWidget, IFWL_ListItem* pItem) override; 65 int32_t GetItemIndex(IFWL_Widget* pWidget, IFWL_ListItem* pItem) override;
66 FX_BOOL SetItemIndex(IFWL_Widget* pWidget, 66 FX_BOOL SetItemIndex(IFWL_Widget* pWidget,
67 IFWL_ListItem* pItem, 67 IFWL_ListItem* pItem,
68 int32_t nIndex) override; 68 int32_t nIndex) override;
69 uint32_t GetItemStyles(IFWL_Widget* pWidget, IFWL_ListItem* pItem) override; 69 uint32_t GetItemStyles(IFWL_Widget* pWidget, IFWL_ListItem* pItem) override;
70 FWL_Error GetItemText(IFWL_Widget* pWidget, 70 FWL_Error GetItemText(IFWL_Widget* pWidget,
71 IFWL_ListItem* pItem, 71 IFWL_ListItem* pItem,
72 CFX_WideString& wsText) override; 72 CFX_WideString& wsText) override;
73 FWL_Error GetItemRect(IFWL_Widget* pWidget, 73 FWL_Error GetItemRect(IFWL_Widget* pWidget,
74 IFWL_ListItem* pItem, 74 IFWL_ListItem* pItem,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 CFX_RectF m_rtItem; 114 CFX_RectF m_rtItem;
115 uint32_t m_dwStates; 115 uint32_t m_dwStates;
116 CFX_WideString m_wsText; 116 CFX_WideString m_wsText;
117 CFX_DIBitmap* m_pDIB; 117 CFX_DIBitmap* m_pDIB;
118 void* m_pData; 118 void* m_pData;
119 uint32_t m_dwCheckState; 119 uint32_t m_dwCheckState;
120 CFX_RectF m_rtCheckBox; 120 CFX_RectF m_rtCheckBox;
121 }; 121 };
122 122
123 #endif // XFA_FWL_LIGHTWIDGET_CFWL_LISTBOX_H_ 123 #endif // XFA_FWL_LIGHTWIDGET_CFWL_LISTBOX_H_
OLDNEW
« no previous file with comments | « xfa/fwl/lightwidget/cfwl_edit.cpp ('k') | xfa/fwl/lightwidget/cfwl_listbox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698