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

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

Issue 2436103002: Remove FWL globals. (Closed)
Patch Set: Review feedback 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/ifwl_checkbox.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_form.h" 10 #include "xfa/fwl/core/ifwl_form.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 int32_t m_index; 77 int32_t m_index;
78 CFX_RectF m_rtItem;) 78 CFX_RectF m_rtItem;)
79 79
80 class IFWL_ComboBoxDP : public IFWL_ListBoxDP { 80 class IFWL_ComboBoxDP : public IFWL_ListBoxDP {
81 public: 81 public:
82 virtual FX_FLOAT GetListHeight(IFWL_Widget* pWidget) = 0; 82 virtual FX_FLOAT GetListHeight(IFWL_Widget* pWidget) = 0;
83 }; 83 };
84 84
85 class IFWL_ComboBox : public IFWL_Widget { 85 class IFWL_ComboBox : public IFWL_Widget {
86 public: 86 public:
87 explicit IFWL_ComboBox(const CFWL_WidgetImpProperties& properties); 87 explicit IFWL_ComboBox(const IFWL_App* app,
88 const CFWL_WidgetImpProperties& properties);
88 ~IFWL_ComboBox() override; 89 ~IFWL_ComboBox() override;
89 90
90 // IFWL_Widget 91 // IFWL_Widget
92 void Initialize() override;
93 void Finalize() override;
91 FWL_Type GetClassID() const override; 94 FWL_Type GetClassID() const override;
92 FWL_Error Initialize() override;
93 void Finalize() override;
94 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; 95 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override;
95 FWL_Error ModifyStylesEx(uint32_t dwStylesExAdded, 96 FWL_Error ModifyStylesEx(uint32_t dwStylesExAdded,
96 uint32_t dwStylesExRemoved) override; 97 uint32_t dwStylesExRemoved) override;
97 void SetStates(uint32_t dwStates, FX_BOOL bSet = TRUE) override; 98 void SetStates(uint32_t dwStates, FX_BOOL bSet = TRUE) override;
98 FWL_Error Update() override; 99 FWL_Error Update() override;
99 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; 100 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override;
100 FWL_Error DrawWidget(CFX_Graphics* pGraphics, 101 FWL_Error DrawWidget(CFX_Graphics* pGraphics,
101 const CFX_Matrix* pMatrix = nullptr) override; 102 const CFX_Matrix* pMatrix = nullptr) override;
102 FWL_Error SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) override; 103 FWL_Error SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) override;
103 104
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 FX_BOOL IsDropListShowed(); 150 FX_BOOL IsDropListShowed();
150 FX_BOOL IsDropDownStyle() const; 151 FX_BOOL IsDropDownStyle() const;
151 void MatchEditText(); 152 void MatchEditText();
152 void SynchrEditText(int32_t iListItem); 153 void SynchrEditText(int32_t iListItem);
153 void Layout(); 154 void Layout();
154 void ReSetTheme(); 155 void ReSetTheme();
155 void ReSetEditAlignment(); 156 void ReSetEditAlignment();
156 void ReSetListItemAlignment(); 157 void ReSetListItemAlignment();
157 void ProcessSelChanged(FX_BOOL bLButtonUp); 158 void ProcessSelChanged(FX_BOOL bLButtonUp);
158 void InitProxyForm(); 159 void InitProxyForm();
159 FWL_Error DisForm_Initialize();
160 void DisForm_InitComboList(); 160 void DisForm_InitComboList();
161 void DisForm_InitComboEdit(); 161 void DisForm_InitComboEdit();
162 void DisForm_ShowDropList(FX_BOOL bActivate); 162 void DisForm_ShowDropList(FX_BOOL bActivate);
163 FX_BOOL DisForm_IsDropListShowed(); 163 FX_BOOL DisForm_IsDropListShowed();
164 FWL_Error DisForm_ModifyStylesEx(uint32_t dwStylesExAdded, 164 FWL_Error DisForm_ModifyStylesEx(uint32_t dwStylesExAdded,
165 uint32_t dwStylesExRemoved); 165 uint32_t dwStylesExRemoved);
166 FWL_Error DisForm_Update(); 166 FWL_Error DisForm_Update();
167 FWL_WidgetHit DisForm_HitTest(FX_FLOAT fx, FX_FLOAT fy); 167 FWL_WidgetHit DisForm_HitTest(FX_FLOAT fx, FX_FLOAT fy);
168 FWL_Error DisForm_DrawWidget(CFX_Graphics* pGraphics, 168 FWL_Error DisForm_DrawWidget(CFX_Graphics* pGraphics,
169 const CFX_Matrix* pMatrix = nullptr); 169 const CFX_Matrix* pMatrix = nullptr);
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 void OnDeactive(CFWL_MsgDeactivate* pMsg); 230 void OnDeactive(CFWL_MsgDeactivate* pMsg);
231 void OnFocusChanged(CFWL_MsgKillFocus* pMsg, FX_BOOL bSet); 231 void OnFocusChanged(CFWL_MsgKillFocus* pMsg, FX_BOOL bSet);
232 FX_BOOL m_bLButtonDown; 232 FX_BOOL m_bLButtonDown;
233 FX_BOOL m_bLButtonUpSelf; 233 FX_BOOL m_bLButtonUpSelf;
234 FX_FLOAT m_fStartPos; 234 FX_FLOAT m_fStartPos;
235 IFWL_Form* m_pForm; 235 IFWL_Form* m_pForm;
236 IFWL_ComboBox* m_pComboBox; 236 IFWL_ComboBox* m_pComboBox;
237 }; 237 };
238 238
239 #endif // XFA_FWL_CORE_IFWL_COMBOBOX_H_ 239 #endif // XFA_FWL_CORE_IFWL_COMBOBOX_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_checkbox.cpp ('k') | xfa/fwl/core/ifwl_combobox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698