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

Side by Side Diff: xfa/fwl/basewidget/ifwl_combobox.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_COMBOBOX_H_ 7 #ifndef XFA_FWL_BASEWIDGET_IFWL_COMBOBOX_H_
8 #define XFA_FWL_BASEWIDGET_IFWL_COMBOBOX_H_ 8 #define XFA_FWL_BASEWIDGET_IFWL_COMBOBOX_H_
9 9
10 #include "xfa/fwl/basewidget/ifwl_listbox.h" 10 #include "xfa/fwl/basewidget/ifwl_listbox.h"
(...skipping 21 matching lines...) Expand all
32 #define FWL_STYLEEXT_CMB_EditVAlignMask (3L << 6) 32 #define FWL_STYLEEXT_CMB_EditVAlignMask (3L << 6)
33 #define FWL_STYLEEXT_CMB_EditHAlignModeMask (3L << 8) 33 #define FWL_STYLEEXT_CMB_EditHAlignModeMask (3L << 8)
34 #define FWL_STYLEEXT_CMB_ListItemLeftAlign (0L << 10) 34 #define FWL_STYLEEXT_CMB_ListItemLeftAlign (0L << 10)
35 #define FWL_STYLEEXT_CMB_ListItemCenterAlign (1L << 10) 35 #define FWL_STYLEEXT_CMB_ListItemCenterAlign (1L << 10)
36 #define FWL_STYLEEXT_CMB_ListItemRightAlign (2L << 10) 36 #define FWL_STYLEEXT_CMB_ListItemRightAlign (2L << 10)
37 #define FWL_STYLEEXT_CMB_ListItemAlignMask (3L << 10) 37 #define FWL_STYLEEXT_CMB_ListItemAlignMask (3L << 10)
38 #define FWL_STYLEEXT_CMB_ListItemText (0L << 12) 38 #define FWL_STYLEEXT_CMB_ListItemText (0L << 12)
39 #define FWL_STYLEEXT_CMB_ListItemIconText (1L << 12) 39 #define FWL_STYLEEXT_CMB_ListItemIconText (1L << 12)
40 #define FWL_STYLEEXT_CMB_ReadOnly (1L << 13) 40 #define FWL_STYLEEXT_CMB_ReadOnly (1L << 13)
41 41
42 BEGIN_FWL_EVENT_DEF(CFWL_EvtCmbPreDropDown, CFWL_EventType::PreDropDown) 42 FWL_EVENT_DEF(CFWL_EvtCmbPreDropDown, CFWL_EventType::PreDropDown)
43 END_FWL_EVENT_DEF 43 FWL_EVENT_FUNCTION_DEF(CFWL_EvtCmbPreDropDown, CFWL_EventType::PreDropDown)
44 44
45 BEGIN_FWL_EVENT_DEF(CFWL_EvtCmbPostDropDown, CFWL_EventType::PostDropDown) 45 FWL_EVENT_DEF(CFWL_EvtCmbPostDropDown, CFWL_EventType::PostDropDown)
46 END_FWL_EVENT_DEF 46 FWL_EVENT_FUNCTION_DEF(CFWL_EvtCmbPostDropDown, CFWL_EventType::PostDropDown)
47 47
48 BEGIN_FWL_EVENT_DEF(CFWL_EvtCmbCloseUp, CFWL_EventType::CloseUp) 48 FWL_EVENT_DEF(CFWL_EvtCmbCloseUp, CFWL_EventType::CloseUp)
49 END_FWL_EVENT_DEF 49 FWL_EVENT_FUNCTION_DEF(CFWL_EvtCmbCloseUp, CFWL_EventType::CloseUp)
50 50
51 BEGIN_FWL_EVENT_DEF(CFWL_EvtCmbEditChanged, CFWL_EventType::EditChanged) 51 FWL_EVENT_DEF(CFWL_EvtCmbEditChanged,
52 int32_t nChangeType; 52 CFWL_EventType::EditChanged,
53 CFX_WideString wsInsert; 53 int32_t nChangeType;
54 CFX_WideString wsDelete; 54 CFX_WideString wsInsert;
55 END_FWL_EVENT_DEF 55 CFX_WideString wsDelete;)
56 FWL_EVENT_FUNCTION_DEF(CFWL_EvtCmbEditChanged, CFWL_EventType::EditChanged)
56 57
57 BEGIN_FWL_EVENT_DEF(CFWL_EvtCmbSelChanged, CFWL_EventType::SelectChanged) 58 FWL_EVENT_DEF(CFWL_EvtCmbSelChanged,
58 CFX_Int32Array iArraySels; 59 CFWL_EventType::SelectChanged,
59 FX_BOOL bLButtonUp; 60 CFX_Int32Array iArraySels;
60 END_FWL_EVENT_DEF 61 FX_BOOL bLButtonUp;)
62 FWL_EVENT_FUNCTION_DEF(CFWL_EvtCmbSelChanged, CFWL_EventType::SelectChanged)
61 63
62 BEGIN_FWL_EVENT_DEF(CFWL_EvtCmbHoverChanged, CFWL_EventType::HoverChanged) 64 FWL_EVENT_DEF(CFWL_EvtCmbHoverChanged,
63 int32_t m_iCurHover; 65 CFWL_EventType::HoverChanged,
64 END_FWL_EVENT_DEF 66 int32_t m_iCurHover;)
67 FWL_EVENT_FUNCTION_DEF(CFWL_EvtCmbHoverChanged, CFWL_EventType::HoverChanged)
65 68
66 BEGIN_FWL_EVENT_DEF(CFWL_EvtCmbDrawItem, CFWL_EventType::DrawItem) 69 FWL_EVENT_DEF(CFWL_EvtCmbDrawItem,
67 CFX_Graphics* m_pGraphics; 70 CFWL_EventType::DrawItem,
68 CFX_Matrix m_matrix; 71 CFX_Graphics* m_pGraphics;
69 int32_t m_index; 72 CFX_Matrix m_matrix;
70 CFX_RectF m_rtItem; 73 int32_t m_index;
71 END_FWL_EVENT_DEF 74 CFX_RectF m_rtItem;)
75 FWL_EVENT_FUNCTION_DEF(CFWL_EvtCmbDrawItem, CFWL_EventType::DrawItem)
72 76
73 class IFWL_ComboBoxDP : public IFWL_ListBoxDP { 77 class IFWL_ComboBoxDP : public IFWL_ListBoxDP {
74 public: 78 public:
75 virtual FX_FLOAT GetListHeight(IFWL_Widget* pWidget) = 0; 79 virtual FX_FLOAT GetListHeight(IFWL_Widget* pWidget) = 0;
76 }; 80 };
77 81
78 class IFWL_ComboBox : public IFWL_Widget { 82 class IFWL_ComboBox : public IFWL_Widget {
79 public: 83 public:
80 static IFWL_ComboBox* Create(const CFWL_WidgetImpProperties& properties); 84 static IFWL_ComboBox* Create(const CFWL_WidgetImpProperties& properties);
81 85
(...skipping 29 matching lines...) Expand all
111 FX_BOOL EditDeSelect(); 115 FX_BOOL EditDeSelect();
112 FWL_Error GetBBox(CFX_RectF& rect); 116 FWL_Error GetBBox(CFX_RectF& rect);
113 FWL_Error EditModifyStylesEx(uint32_t dwStylesExAdded, 117 FWL_Error EditModifyStylesEx(uint32_t dwStylesExAdded,
114 uint32_t dwStylesExRemoved); 118 uint32_t dwStylesExRemoved);
115 119
116 protected: 120 protected:
117 IFWL_ComboBox(); 121 IFWL_ComboBox();
118 }; 122 };
119 123
120 #endif // XFA_FWL_BASEWIDGET_IFWL_COMBOBOX_H_ 124 #endif // XFA_FWL_BASEWIDGET_IFWL_COMBOBOX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698