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

Side by Side Diff: xfa/include/fwl/basewidget/fwl_listbox.h

Issue 1453373006: Kill dead IFWL_*::Initialize() variants dead. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Rebased Created 5 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/include/fwl/basewidget/fwl_edit.h ('k') | xfa/include/fwl/basewidget/fwl_monthcalendar.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 _FWL_LISTBOX_H 7 #ifndef _FWL_LISTBOX_H
8 #define _FWL_LISTBOX_H 8 #define _FWL_LISTBOX_H
9 class CFWL_WidgetImpProperties; 9 class CFWL_WidgetImpProperties;
10 class IFWL_Widget; 10 class IFWL_Widget;
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 FX_DWORD dwCheckState) = 0; 103 FX_DWORD dwCheckState) = 0;
104 }; 104 };
105 class IFWL_ListBoxCompare { 105 class IFWL_ListBoxCompare {
106 public: 106 public:
107 virtual ~IFWL_ListBoxCompare() {} 107 virtual ~IFWL_ListBoxCompare() {}
108 virtual int32_t Compare(FWL_HLISTITEM hLeft, FWL_HLISTITEM hRight) = 0; 108 virtual int32_t Compare(FWL_HLISTITEM hLeft, FWL_HLISTITEM hRight) = 0;
109 }; 109 };
110 class IFWL_ListBox : public IFWL_Widget { 110 class IFWL_ListBox : public IFWL_Widget {
111 public: 111 public:
112 static IFWL_ListBox* Create(); 112 static IFWL_ListBox* Create();
113 FWL_ERR Initialize(IFWL_Widget* pOuter = NULL);
114 FWL_ERR Initialize(const CFWL_WidgetImpProperties& properties, 113 FWL_ERR Initialize(const CFWL_WidgetImpProperties& properties,
115 IFWL_Widget* pOuter = NULL); 114 IFWL_Widget* pOuter);
116 int32_t CountSelItems(); 115 int32_t CountSelItems();
117 FWL_HLISTITEM GetSelItem(int32_t nIndexSel); 116 FWL_HLISTITEM GetSelItem(int32_t nIndexSel);
118 int32_t GetSelIndex(int32_t nIndex); 117 int32_t GetSelIndex(int32_t nIndex);
119 FWL_ERR SetSelItem(FWL_HLISTITEM hItem, FX_BOOL bSelect = TRUE); 118 FWL_ERR SetSelItem(FWL_HLISTITEM hItem, FX_BOOL bSelect = TRUE);
120 FWL_ERR GetItemText(FWL_HLISTITEM hItem, CFX_WideString& wsText); 119 FWL_ERR GetItemText(FWL_HLISTITEM hItem, CFX_WideString& wsText);
121 FWL_ERR GetScrollPos(FX_FLOAT& fPos, FX_BOOL bVert = TRUE); 120 FWL_ERR GetScrollPos(FX_FLOAT& fPos, FX_BOOL bVert = TRUE);
122 FWL_ERR* Sort(IFWL_ListBoxCompare* pCom); 121 FWL_ERR* Sort(IFWL_ListBoxCompare* pCom);
123 122
124 protected: 123 protected:
125 IFWL_ListBox(); 124 IFWL_ListBox();
126 }; 125 };
127 #endif 126 #endif
OLDNEW
« no previous file with comments | « xfa/include/fwl/basewidget/fwl_edit.h ('k') | xfa/include/fwl/basewidget/fwl_monthcalendar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698