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

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

Issue 2469893004: Unify CFWL_WidgetProperties and CFWL_WidgetImpProperties. (Closed)
Patch Set: review cleanup 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"
11 #include "xfa/fwl/core/ifwl_listbox.h" 11 #include "xfa/fwl/core/ifwl_listbox.h"
12 #include "xfa/fxgraphics/cfx_graphics.h" 12 #include "xfa/fxgraphics/cfx_graphics.h"
13 13
14 class CFWL_WidgetImpProperties; 14 class CFWL_WidgetProperties;
15 class IFWL_ComboBox; 15 class IFWL_ComboBox;
16 class IFWL_ComboBoxProxy; 16 class IFWL_ComboBoxProxy;
17 class IFWL_ComboEdit; 17 class IFWL_ComboEdit;
18 class IFWL_ComboList; 18 class IFWL_ComboList;
19 class IFWL_FormProxy; 19 class IFWL_FormProxy;
20 class IFWL_ListBox; 20 class IFWL_ListBox;
21 class IFWL_Widget; 21 class IFWL_Widget;
22 22
23 #define FWL_STYLEEXT_CMB_DropList (0L << 0) 23 #define FWL_STYLEEXT_CMB_DropList (0L << 0)
24 #define FWL_STYLEEXT_CMB_DropDown (1L << 0) 24 #define FWL_STYLEEXT_CMB_DropDown (1L << 0)
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 CFX_RectF m_rtItem;) 73 CFX_RectF m_rtItem;)
74 74
75 class IFWL_ComboBoxDP : public IFWL_ListBoxDP { 75 class IFWL_ComboBoxDP : public IFWL_ListBoxDP {
76 public: 76 public:
77 virtual FX_FLOAT GetListHeight(IFWL_Widget* pWidget) = 0; 77 virtual FX_FLOAT GetListHeight(IFWL_Widget* pWidget) = 0;
78 }; 78 };
79 79
80 class IFWL_ComboBox : public IFWL_Widget { 80 class IFWL_ComboBox : public IFWL_Widget {
81 public: 81 public:
82 explicit IFWL_ComboBox(const IFWL_App* app, 82 explicit IFWL_ComboBox(const IFWL_App* app,
83 const CFWL_WidgetImpProperties& properties); 83 std::unique_ptr<CFWL_WidgetProperties> properties);
84 ~IFWL_ComboBox() override; 84 ~IFWL_ComboBox() override;
85 85
86 // IFWL_Widget 86 // IFWL_Widget
87 FWL_Type GetClassID() const override; 87 FWL_Type GetClassID() const override;
88 FWL_Error GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override; 88 FWL_Error GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override;
89 FWL_Error ModifyStylesEx(uint32_t dwStylesExAdded, 89 FWL_Error ModifyStylesEx(uint32_t dwStylesExAdded,
90 uint32_t dwStylesExRemoved) override; 90 uint32_t dwStylesExRemoved) override;
91 void SetStates(uint32_t dwStates, bool bSet = true) override; 91 void SetStates(uint32_t dwStates, bool bSet = true) override;
92 FWL_Error Update() override; 92 FWL_Error Update() override;
93 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; 93 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override;
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 void OnKey(CFWL_MsgKey* pMsg); 190 void OnKey(CFWL_MsgKey* pMsg);
191 void DoSubCtrlKey(CFWL_MsgKey* pMsg); 191 void DoSubCtrlKey(CFWL_MsgKey* pMsg);
192 void DisForm_OnProcessMessage(CFWL_Message* pMessage); 192 void DisForm_OnProcessMessage(CFWL_Message* pMessage);
193 void DisForm_OnLButtonDown(CFWL_MsgMouse* pMsg); 193 void DisForm_OnLButtonDown(CFWL_MsgMouse* pMsg);
194 void DisForm_OnFocusChanged(CFWL_Message* pMsg, bool bSet = true); 194 void DisForm_OnFocusChanged(CFWL_Message* pMsg, bool bSet = true);
195 void DisForm_OnKey(CFWL_MsgKey* pMsg); 195 void DisForm_OnKey(CFWL_MsgKey* pMsg);
196 196
197 }; 197 };
198 198
199 #endif // XFA_FWL_CORE_IFWL_COMBOBOX_H_ 199 #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