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

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

Issue 2533623002: Cleanup default FWL params part I (Closed)
Patch Set: Rebase to master Created 4 years 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_checkbox.cpp ('k') | xfa/fwl/core/cfwl_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_CFWL_COMBOBOX_H_ 7 #ifndef XFA_FWL_CORE_CFWL_COMBOBOX_H_
8 #define XFA_FWL_CORE_CFWL_COMBOBOX_H_ 8 #define XFA_FWL_CORE_CFWL_COMBOBOX_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 #define FWL_STYLEEXT_CMB_ListItemIconText (1L << 12) 47 #define FWL_STYLEEXT_CMB_ListItemIconText (1L << 12)
48 #define FWL_STYLEEXT_CMB_ReadOnly (1L << 13) 48 #define FWL_STYLEEXT_CMB_ReadOnly (1L << 13)
49 49
50 class CFWL_ComboBox : public CFWL_Widget { 50 class CFWL_ComboBox : public CFWL_Widget {
51 public: 51 public:
52 explicit CFWL_ComboBox(const CFWL_App* pApp); 52 explicit CFWL_ComboBox(const CFWL_App* pApp);
53 ~CFWL_ComboBox() override; 53 ~CFWL_ComboBox() override;
54 54
55 // CFWL_Widget 55 // CFWL_Widget
56 FWL_Type GetClassID() const override; 56 FWL_Type GetClassID() const override;
57 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override; 57 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize) override;
58 void ModifyStylesEx(uint32_t dwStylesExAdded, 58 void ModifyStylesEx(uint32_t dwStylesExAdded,
59 uint32_t dwStylesExRemoved) override; 59 uint32_t dwStylesExRemoved) override;
60 void SetStates(uint32_t dwStates, bool bSet = true) override; 60 void SetStates(uint32_t dwStates) override;
61 void RemoveStates(uint32_t dwStates) override;
61 void Update() override; 62 void Update() override;
62 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; 63 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override;
63 void DrawWidget(CFX_Graphics* pGraphics, 64 void DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix) override;
64 const CFX_Matrix* pMatrix = nullptr) override;
65 void SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) override; 65 void SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) override;
66 void OnProcessMessage(CFWL_Message* pMessage) override; 66 void OnProcessMessage(CFWL_Message* pMessage) override;
67 void OnProcessEvent(CFWL_Event* pEvent) override; 67 void OnProcessEvent(CFWL_Event* pEvent) override;
68 void OnDrawWidget(CFX_Graphics* pGraphics, 68 void OnDrawWidget(CFX_Graphics* pGraphics,
69 const CFX_Matrix* pMatrix) override; 69 const CFX_Matrix* pMatrix) override;
70 70
71 void GetTextByIndex(int32_t iIndex, CFX_WideString& wsText) const; 71 void GetTextByIndex(int32_t iIndex, CFX_WideString& wsText) const;
72 int32_t GetCurSel() const { return m_iCurSel; } 72 int32_t GetCurSel() const { return m_iCurSel; }
73 void SetCurSel(int32_t iSel); 73 void SetCurSel(int32_t iSel);
74 74
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 CFWL_ComboBoxProxy* m_pComboBoxProxy; // Can this be a unique_ptr? 164 CFWL_ComboBoxProxy* m_pComboBoxProxy; // Can this be a unique_ptr?
165 bool m_bLButtonDown; 165 bool m_bLButtonDown;
166 bool m_bUpFormHandler; 166 bool m_bUpFormHandler;
167 int32_t m_iCurSel; 167 int32_t m_iCurSel;
168 int32_t m_iBtnState; 168 int32_t m_iBtnState;
169 FX_FLOAT m_fComboFormHandler; 169 FX_FLOAT m_fComboFormHandler;
170 FX_FLOAT m_fItemHeight; 170 FX_FLOAT m_fItemHeight;
171 }; 171 };
172 172
173 #endif // XFA_FWL_CORE_CFWL_COMBOBOX_H_ 173 #endif // XFA_FWL_CORE_CFWL_COMBOBOX_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/cfwl_checkbox.cpp ('k') | xfa/fwl/core/cfwl_combobox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698