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

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

Issue 1901183002: Remove CFWL_Note. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 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/basewidget/ifwl_checkbox.h ('k') | xfa/fwl/basewidget/ifwl_datetimepicker.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_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 20 matching lines...) Expand all
31 #define FWL_STYLEEXT_CMB_EditHAlignMask (3L << 4) 31 #define FWL_STYLEEXT_CMB_EditHAlignMask (3L << 4)
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_ListItemText (0L << 12) 37 #define FWL_STYLEEXT_CMB_ListItemText (0L << 12)
38 #define FWL_STYLEEXT_CMB_ListItemIconText (1L << 12) 38 #define FWL_STYLEEXT_CMB_ListItemIconText (1L << 12)
39 #define FWL_STYLEEXT_CMB_ListItemAlignMask (3L << 12) 39 #define FWL_STYLEEXT_CMB_ListItemAlignMask (3L << 12)
40 #define FWL_STYLEEXT_CMB_ReadOnly (1L << 13) 40 #define FWL_STYLEEXT_CMB_ReadOnly (1L << 13)
41 // TODO(dsinclair): Event hash is hash of string, cleanup. pdfium:474
42 #define FWL_EVTHASH_CMB_PreDropDown 1357646798
43 #define FWL_EVTHASH_CMB_PostDropDown 3677010285
44 #define FWL_EVTHASH_CMB_CloseUp 2871271190
45 #define FWL_EVTHASH_CMB_EditChanged 1527034762
46 #define FWL_EVTHASH_CMB_SelChanged 2923227784
47 #define FWL_EVTHASH_CMB_HoverChanged 944325448
48 #define FWL_EVTHASH_CMB_DrawItem 917354551
49 41
50 BEGIN_FWL_EVENT_DEF(CFWL_EvtCmbPreDropDown, FWL_EVTHASH_CMB_PreDropDown) 42 BEGIN_FWL_EVENT_DEF(CFWL_EvtCmbPreDropDown, CFWL_EventType::PreDropDown)
51 END_FWL_EVENT_DEF 43 END_FWL_EVENT_DEF
52 44
53 BEGIN_FWL_EVENT_DEF(CFWL_EvtCmbPostDropDown, FWL_EVTHASH_CMB_PostDropDown) 45 BEGIN_FWL_EVENT_DEF(CFWL_EvtCmbPostDropDown, CFWL_EventType::PostDropDown)
54 END_FWL_EVENT_DEF 46 END_FWL_EVENT_DEF
55 47
56 BEGIN_FWL_EVENT_DEF(CFWL_EvtCmbCloseUp, FWL_EVTHASH_CMB_CloseUp) 48 BEGIN_FWL_EVENT_DEF(CFWL_EvtCmbCloseUp, CFWL_EventType::CloseUp)
57 END_FWL_EVENT_DEF 49 END_FWL_EVENT_DEF
58 50
59 BEGIN_FWL_EVENT_DEF(CFWL_EvtCmbEditChanged, FWL_EVTHASH_CMB_EditChanged) 51 BEGIN_FWL_EVENT_DEF(CFWL_EvtCmbEditChanged, CFWL_EventType::EditChanged)
60 int32_t nChangeType; 52 int32_t nChangeType;
61 CFX_WideString wsInsert; 53 CFX_WideString wsInsert;
62 CFX_WideString wsDelete; 54 CFX_WideString wsDelete;
63 END_FWL_EVENT_DEF 55 END_FWL_EVENT_DEF
64 56
65 BEGIN_FWL_EVENT_DEF(CFWL_EvtCmbSelChanged, FWL_EVTHASH_CMB_SelChanged) 57 BEGIN_FWL_EVENT_DEF(CFWL_EvtCmbSelChanged, CFWL_EventType::SelectChanged)
66 CFX_Int32Array iArraySels; 58 CFX_Int32Array iArraySels;
67 FX_BOOL bLButtonUp; 59 FX_BOOL bLButtonUp;
68 END_FWL_EVENT_DEF 60 END_FWL_EVENT_DEF
69 61
70 BEGIN_FWL_EVENT_DEF(CFWL_EvtCmbHoverChanged, FWL_EVTHASH_CMB_HoverChanged) 62 BEGIN_FWL_EVENT_DEF(CFWL_EvtCmbHoverChanged, CFWL_EventType::HoverChanged)
71 int32_t m_iCurHover; 63 int32_t m_iCurHover;
72 END_FWL_EVENT_DEF 64 END_FWL_EVENT_DEF
73 65
74 BEGIN_FWL_EVENT_DEF(CFWL_EvtCmbDrawItem, FWL_EVTHASH_CMB_DrawItem) 66 BEGIN_FWL_EVENT_DEF(CFWL_EvtCmbDrawItem, CFWL_EventType::DrawItem)
75 CFX_Graphics* m_pGraphics; 67 CFX_Graphics* m_pGraphics;
76 CFX_Matrix m_matrix; 68 CFX_Matrix m_matrix;
77 int32_t m_index; 69 int32_t m_index;
78 CFX_RectF m_rtItem; 70 CFX_RectF m_rtItem;
79 END_FWL_EVENT_DEF 71 END_FWL_EVENT_DEF
80 72
81 class IFWL_ComboBoxDP : public IFWL_ListBoxDP { 73 class IFWL_ComboBoxDP : public IFWL_ListBoxDP {
82 public: 74 public:
83 virtual FX_FLOAT GetListHeight(IFWL_Widget* pWidget) = 0; 75 virtual FX_FLOAT GetListHeight(IFWL_Widget* pWidget) = 0;
84 }; 76 };
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 FX_BOOL EditDeSelect(); 111 FX_BOOL EditDeSelect();
120 FWL_ERR GetBBox(CFX_RectF& rect); 112 FWL_ERR GetBBox(CFX_RectF& rect);
121 FWL_ERR EditModifyStylesEx(uint32_t dwStylesExAdded, 113 FWL_ERR EditModifyStylesEx(uint32_t dwStylesExAdded,
122 uint32_t dwStylesExRemoved); 114 uint32_t dwStylesExRemoved);
123 115
124 protected: 116 protected:
125 IFWL_ComboBox(); 117 IFWL_ComboBox();
126 }; 118 };
127 119
128 #endif // XFA_FWL_BASEWIDGET_IFWL_COMBOBOX_H_ 120 #endif // XFA_FWL_BASEWIDGET_IFWL_COMBOBOX_H_
OLDNEW
« no previous file with comments | « xfa/fwl/basewidget/ifwl_checkbox.h ('k') | xfa/fwl/basewidget/ifwl_datetimepicker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698