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

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

Issue 1722873002: Remove many _CAPS structure names. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Nits. Created 4 years, 10 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.gyp ('k') | xfa/include/fwl/core/fwl_widget.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 XFA_INCLUDE_FWL_BASEWIDGET_FWL_LISTBOX_H_ 7 #ifndef XFA_INCLUDE_FWL_BASEWIDGET_FWL_LISTBOX_H_
8 #define XFA_INCLUDE_FWL_BASEWIDGET_FWL_LISTBOX_H_ 8 #define XFA_INCLUDE_FWL_BASEWIDGET_FWL_LISTBOX_H_
9 9
10 class CFWL_WidgetImpProperties; 10 class CFWL_WidgetImpProperties;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 BEGIN_FWL_EVENT_DEF(CFWL_EvtLtbSelChanged, FWL_EVTHASH_LTB_SelChanged) 52 BEGIN_FWL_EVENT_DEF(CFWL_EvtLtbSelChanged, FWL_EVTHASH_LTB_SelChanged)
53 CFX_Int32Array iarraySels; 53 CFX_Int32Array iarraySels;
54 END_FWL_EVENT_DEF 54 END_FWL_EVENT_DEF
55 BEGIN_FWL_EVENT_DEF(CFWL_EvtLtbDrawItem, FWL_EVTHASH_LTB_DrawItem) 55 BEGIN_FWL_EVENT_DEF(CFWL_EvtLtbDrawItem, FWL_EVTHASH_LTB_DrawItem)
56 CFX_Graphics* m_pGraphics; 56 CFX_Graphics* m_pGraphics;
57 CFX_Matrix m_matrix; 57 CFX_Matrix m_matrix;
58 int32_t m_index; 58 int32_t m_index;
59 CFX_RectF m_rect; 59 CFX_RectF m_rect;
60 END_FWL_EVENT_DEF 60 END_FWL_EVENT_DEF
61 typedef struct _FWL_HLISTITEM { void* pData; } * FWL_HLISTITEM; 61 typedef struct _FWL_HLISTITEM { void* pData; } * FWL_HLISTITEM;
62 typedef struct _FWL_ListBoxItemData { 62 struct FWL_ListBoxItemData {
63 IFWL_ListBoxDP* pDataProvider; 63 IFWL_ListBoxDP* pDataProvider;
64 int32_t iIndex; 64 int32_t iIndex;
65 } FWL_ListBoxItemData; 65 };
66 class IFWL_ListBoxDP : public IFWL_DataProvider { 66 class IFWL_ListBoxDP : public IFWL_DataProvider {
67 public: 67 public:
68 virtual int32_t CountItems(IFWL_Widget* pWidget) = 0; 68 virtual int32_t CountItems(IFWL_Widget* pWidget) = 0;
69 virtual FWL_HLISTITEM GetItem(IFWL_Widget* pWidget, int32_t nIndex) = 0; 69 virtual FWL_HLISTITEM GetItem(IFWL_Widget* pWidget, int32_t nIndex) = 0;
70 virtual int32_t GetItemIndex(IFWL_Widget* pWidget, FWL_HLISTITEM hItem) = 0; 70 virtual int32_t GetItemIndex(IFWL_Widget* pWidget, FWL_HLISTITEM hItem) = 0;
71 virtual FX_BOOL SetItemIndex(IFWL_Widget* pWidget, 71 virtual FX_BOOL SetItemIndex(IFWL_Widget* pWidget,
72 FWL_HLISTITEM hItem, 72 FWL_HLISTITEM hItem,
73 int32_t nIndex) = 0; 73 int32_t nIndex) = 0;
74 virtual FX_DWORD GetItemStyles(IFWL_Widget* pWidget, FWL_HLISTITEM hItem) = 0; 74 virtual FX_DWORD GetItemStyles(IFWL_Widget* pWidget, FWL_HLISTITEM hItem) = 0;
75 virtual FWL_ERR GetItemText(IFWL_Widget* pWidget, 75 virtual FWL_ERR GetItemText(IFWL_Widget* pWidget,
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 FWL_ERR SetSelItem(FWL_HLISTITEM hItem, FX_BOOL bSelect = TRUE); 122 FWL_ERR SetSelItem(FWL_HLISTITEM hItem, FX_BOOL bSelect = TRUE);
123 FWL_ERR GetItemText(FWL_HLISTITEM hItem, CFX_WideString& wsText); 123 FWL_ERR GetItemText(FWL_HLISTITEM hItem, CFX_WideString& wsText);
124 FWL_ERR GetScrollPos(FX_FLOAT& fPos, FX_BOOL bVert = TRUE); 124 FWL_ERR GetScrollPos(FX_FLOAT& fPos, FX_BOOL bVert = TRUE);
125 FWL_ERR* Sort(IFWL_ListBoxCompare* pCom); 125 FWL_ERR* Sort(IFWL_ListBoxCompare* pCom);
126 126
127 protected: 127 protected:
128 IFWL_ListBox(); 128 IFWL_ListBox();
129 }; 129 };
130 130
131 #endif // XFA_INCLUDE_FWL_BASEWIDGET_FWL_LISTBOX_H_ 131 #endif // XFA_INCLUDE_FWL_BASEWIDGET_FWL_LISTBOX_H_
OLDNEW
« no previous file with comments | « xfa.gyp ('k') | xfa/include/fwl/core/fwl_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698