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

Side by Side Diff: xfa/fwl/basewidget/ifwl_listbox.h

Issue 2070583003: Make code compile with clang_use_chrome_plugin (part VI) (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: clean up Created 4 years, 6 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
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_BASEWIDGET_IFWL_LISTBOX_H_ 7 #ifndef XFA_FWL_BASEWIDGET_IFWL_LISTBOX_H_
8 #define XFA_FWL_BASEWIDGET_IFWL_LISTBOX_H_ 8 #define XFA_FWL_BASEWIDGET_IFWL_LISTBOX_H_
9 9
10 #include "xfa/fwl/core/ifwl_widget.h" 10 #include "xfa/fwl/core/ifwl_widget.h"
(...skipping 13 matching lines...) Expand all
24 #define FWL_STYLEEXT_LTB_Icon (1L << 8) 24 #define FWL_STYLEEXT_LTB_Icon (1L << 8)
25 #define FWL_STYLEEXT_LTB_Check (1L << 9) 25 #define FWL_STYLEEXT_LTB_Check (1L << 9)
26 #define FWL_STYLEEXT_LTB_AlignMask (3L << 4) 26 #define FWL_STYLEEXT_LTB_AlignMask (3L << 4)
27 #define FWL_STYLEEXT_LTB_ShowScrollBarFocus (1L << 10) 27 #define FWL_STYLEEXT_LTB_ShowScrollBarFocus (1L << 10)
28 #define FWL_ITEMSTATE_LTB_Selected (1L << 0) 28 #define FWL_ITEMSTATE_LTB_Selected (1L << 0)
29 #define FWL_ITEMSTATE_LTB_Focused (1L << 1) 29 #define FWL_ITEMSTATE_LTB_Focused (1L << 1)
30 #define FWL_ITEMSTATE_LTB_Checked (1L << 2) 30 #define FWL_ITEMSTATE_LTB_Checked (1L << 2)
31 31
32 class CFX_DIBitmap; 32 class CFX_DIBitmap;
33 33
34 BEGIN_FWL_EVENT_DEF(CFWL_EvtLtbSelChanged, CFWL_EventType::SelectChanged) 34 FWL_EVENT_DEF(CFWL_EvtLtbSelChanged,
35 CFX_Int32Array iarraySels; 35 CFWL_EventType::SelectChanged,
36 END_FWL_EVENT_DEF 36 CFX_Int32Array iarraySels;)
37 FWL_EVENT_FUNCTION_DEF(CFWL_EvtLtbSelChanged, CFWL_EventType::SelectChanged)
37 38
38 BEGIN_FWL_EVENT_DEF(CFWL_EvtLtbDrawItem, CFWL_EventType::DrawItem) 39 FWL_EVENT_DEF(CFWL_EvtLtbDrawItem,
39 CFX_Graphics* m_pGraphics; 40 CFWL_EventType::DrawItem,
40 CFX_Matrix m_matrix; 41 CFX_Graphics* m_pGraphics;
41 int32_t m_index; 42 CFX_Matrix m_matrix;
42 CFX_RectF m_rect; 43 int32_t m_index;
43 END_FWL_EVENT_DEF 44 CFX_RectF m_rect;)
45 FWL_EVENT_FUNCTION_DEF(CFWL_EvtLtbDrawItem, CFWL_EventType::DrawItem)
44 46
45 class IFWL_ListItem {}; 47 class IFWL_ListItem {};
46 48
47 class IFWL_ListBoxDP : public IFWL_DataProvider { 49 class IFWL_ListBoxDP : public IFWL_DataProvider {
48 public: 50 public:
49 virtual int32_t CountItems(IFWL_Widget* pWidget) = 0; 51 virtual int32_t CountItems(IFWL_Widget* pWidget) = 0;
50 virtual IFWL_ListItem* GetItem(IFWL_Widget* pWidget, int32_t nIndex) = 0; 52 virtual IFWL_ListItem* GetItem(IFWL_Widget* pWidget, int32_t nIndex) = 0;
51 virtual int32_t GetItemIndex(IFWL_Widget* pWidget, IFWL_ListItem* pItem) = 0; 53 virtual int32_t GetItemIndex(IFWL_Widget* pWidget, IFWL_ListItem* pItem) = 0;
52 virtual FX_BOOL SetItemIndex(IFWL_Widget* pWidget, 54 virtual FX_BOOL SetItemIndex(IFWL_Widget* pWidget,
53 IFWL_ListItem* pItem, 55 IFWL_ListItem* pItem,
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 int32_t GetSelIndex(int32_t nIndex); 107 int32_t GetSelIndex(int32_t nIndex);
106 FWL_Error SetSelItem(IFWL_ListItem* pItem, FX_BOOL bSelect = TRUE); 108 FWL_Error SetSelItem(IFWL_ListItem* pItem, FX_BOOL bSelect = TRUE);
107 FWL_Error GetItemText(IFWL_ListItem* pItem, CFX_WideString& wsText); 109 FWL_Error GetItemText(IFWL_ListItem* pItem, CFX_WideString& wsText);
108 FWL_Error GetScrollPos(FX_FLOAT& fPos, FX_BOOL bVert = TRUE); 110 FWL_Error GetScrollPos(FX_FLOAT& fPos, FX_BOOL bVert = TRUE);
109 111
110 protected: 112 protected:
111 IFWL_ListBox(); 113 IFWL_ListBox();
112 }; 114 };
113 115
114 #endif // XFA_FWL_BASEWIDGET_IFWL_LISTBOX_H_ 116 #endif // XFA_FWL_BASEWIDGET_IFWL_LISTBOX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698