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

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

Issue 2511813002: Create CFWL_EvtEditChanged (Closed)
Patch Set: fixed Created 4 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/fwl/core/cfwl_evteditchanged.cpp ('k') | xfa/fwl/core/ifwl_combobox.cpp » ('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_CORE_IFWL_COMBOBOX_H_ 7 #ifndef XFA_FWL_CORE_IFWL_COMBOBOX_H_
8 #define XFA_FWL_CORE_IFWL_COMBOBOX_H_ 8 #define XFA_FWL_CORE_IFWL_COMBOBOX_H_
9 9
10 #include "xfa/fwl/core/ifwl_comboboxproxy.h" 10 #include "xfa/fwl/core/ifwl_comboboxproxy.h"
(...skipping 27 matching lines...) Expand all
38 #define FWL_STYLEEXT_CMB_EditVAlignMask (3L << 6) 38 #define FWL_STYLEEXT_CMB_EditVAlignMask (3L << 6)
39 #define FWL_STYLEEXT_CMB_EditHAlignModeMask (3L << 8) 39 #define FWL_STYLEEXT_CMB_EditHAlignModeMask (3L << 8)
40 #define FWL_STYLEEXT_CMB_ListItemLeftAlign (0L << 10) 40 #define FWL_STYLEEXT_CMB_ListItemLeftAlign (0L << 10)
41 #define FWL_STYLEEXT_CMB_ListItemCenterAlign (1L << 10) 41 #define FWL_STYLEEXT_CMB_ListItemCenterAlign (1L << 10)
42 #define FWL_STYLEEXT_CMB_ListItemRightAlign (2L << 10) 42 #define FWL_STYLEEXT_CMB_ListItemRightAlign (2L << 10)
43 #define FWL_STYLEEXT_CMB_ListItemAlignMask (3L << 10) 43 #define FWL_STYLEEXT_CMB_ListItemAlignMask (3L << 10)
44 #define FWL_STYLEEXT_CMB_ListItemText (0L << 12) 44 #define FWL_STYLEEXT_CMB_ListItemText (0L << 12)
45 #define FWL_STYLEEXT_CMB_ListItemIconText (1L << 12) 45 #define FWL_STYLEEXT_CMB_ListItemIconText (1L << 12)
46 #define FWL_STYLEEXT_CMB_ReadOnly (1L << 13) 46 #define FWL_STYLEEXT_CMB_ReadOnly (1L << 13)
47 47
48 FWL_EVENT_DEF(CFWL_EvtCmbEditChanged,
49 CFWL_EventType::EditChanged,
50 int32_t nChangeType;
51 CFX_WideString wsInsert;
52 CFX_WideString wsDelete;)
53
54 FWL_EVENT_DEF(CFWL_EvtCmbSelChanged, 48 FWL_EVENT_DEF(CFWL_EvtCmbSelChanged,
55 CFWL_EventType::SelectChanged, 49 CFWL_EventType::SelectChanged,
56 CFX_Int32Array iArraySels; 50 CFX_Int32Array iArraySels;
57 bool bLButtonUp;) 51 bool bLButtonUp;)
58 52
59 class IFWL_ComboBoxDP : public IFWL_ListBoxDP { 53 class IFWL_ComboBoxDP : public IFWL_ListBoxDP {
60 public: 54 public:
61 virtual FX_FLOAT GetListHeight(IFWL_Widget* pWidget) = 0; 55 virtual FX_FLOAT GetListHeight(IFWL_Widget* pWidget) = 0;
62 }; 56 };
63 57
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 IFWL_ComboBoxProxy* m_pComboBoxProxy; // Can this be a unique_ptr? 171 IFWL_ComboBoxProxy* m_pComboBoxProxy; // Can this be a unique_ptr?
178 bool m_bLButtonDown; 172 bool m_bLButtonDown;
179 bool m_bUpFormHandler; 173 bool m_bUpFormHandler;
180 int32_t m_iCurSel; 174 int32_t m_iCurSel;
181 int32_t m_iBtnState; 175 int32_t m_iBtnState;
182 FX_FLOAT m_fComboFormHandler; 176 FX_FLOAT m_fComboFormHandler;
183 FX_FLOAT m_fItemHeight; 177 FX_FLOAT m_fItemHeight;
184 }; 178 };
185 179
186 #endif // XFA_FWL_CORE_IFWL_COMBOBOX_H_ 180 #endif // XFA_FWL_CORE_IFWL_COMBOBOX_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/cfwl_evteditchanged.cpp ('k') | xfa/fwl/core/ifwl_combobox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698