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

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

Issue 2506253004: Split fwl/core class pt I. (Closed)
Patch Set: Rebase to master 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
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 class IFWL_ComboBoxDP : public IFWL_ListBoxDP {
49 public:
50 virtual FX_FLOAT GetListHeight(IFWL_Widget* pWidget) = 0;
51 };
52
53 class IFWL_ComboBox : public IFWL_Widget { 48 class IFWL_ComboBox : public IFWL_Widget {
54 public: 49 public:
55 explicit IFWL_ComboBox(const IFWL_App* app, 50 explicit IFWL_ComboBox(const IFWL_App* app,
56 std::unique_ptr<CFWL_WidgetProperties> properties); 51 std::unique_ptr<CFWL_WidgetProperties> properties);
57 ~IFWL_ComboBox() override; 52 ~IFWL_ComboBox() override;
58 53
59 // IFWL_Widget 54 // IFWL_Widget
60 FWL_Type GetClassID() const override; 55 FWL_Type GetClassID() const override;
61 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override; 56 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override;
62 void ModifyStylesEx(uint32_t dwStylesExAdded, 57 void ModifyStylesEx(uint32_t dwStylesExAdded,
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 IFWL_ComboBoxProxy* m_pComboBoxProxy; // Can this be a unique_ptr? 161 IFWL_ComboBoxProxy* m_pComboBoxProxy; // Can this be a unique_ptr?
167 bool m_bLButtonDown; 162 bool m_bLButtonDown;
168 bool m_bUpFormHandler; 163 bool m_bUpFormHandler;
169 int32_t m_iCurSel; 164 int32_t m_iCurSel;
170 int32_t m_iBtnState; 165 int32_t m_iBtnState;
171 FX_FLOAT m_fComboFormHandler; 166 FX_FLOAT m_fComboFormHandler;
172 FX_FLOAT m_fItemHeight; 167 FX_FLOAT m_fItemHeight;
173 }; 168 };
174 169
175 #endif // XFA_FWL_CORE_IFWL_COMBOBOX_H_ 170 #endif // XFA_FWL_CORE_IFWL_COMBOBOX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698