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

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

Issue 2559173002: Move xfa/fwl/core to xfa/fwl. (Closed)
Patch Set: 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/cfwl_checkbox.cpp ('k') | xfa/fwl/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_CFWL_COMBOBOX_H_
8 #define XFA_FWL_CORE_CFWL_COMBOBOX_H_ 8 #define XFA_FWL_CFWL_COMBOBOX_H_
9 9
10 #include <memory> 10 #include <memory>
11 11
12 #include "xfa/fwl/core/cfwl_comboboxproxy.h" 12 #include "xfa/fwl/cfwl_comboboxproxy.h"
13 #include "xfa/fwl/core/cfwl_comboedit.h" 13 #include "xfa/fwl/cfwl_comboedit.h"
14 #include "xfa/fwl/core/cfwl_combolist.h" 14 #include "xfa/fwl/cfwl_combolist.h"
15 #include "xfa/fwl/core/cfwl_form.h" 15 #include "xfa/fwl/cfwl_form.h"
16 #include "xfa/fwl/core/cfwl_listbox.h" 16 #include "xfa/fwl/cfwl_listbox.h"
17 #include "xfa/fxgraphics/cfx_graphics.h" 17 #include "xfa/fxgraphics/cfx_graphics.h"
18 18
19 class CFWL_WidgetProperties; 19 class CFWL_WidgetProperties;
20 class CFWL_ComboBox; 20 class CFWL_ComboBox;
21 class CFWL_ComboBoxProxy; 21 class CFWL_ComboBoxProxy;
22 class CFWL_FormProxy; 22 class CFWL_FormProxy;
23 class CFWL_ListBox; 23 class CFWL_ListBox;
24 class CFWL_Widget; 24 class CFWL_Widget;
25 25
26 #define FWL_STYLEEXT_CMB_DropList (0L << 0) 26 #define FWL_STYLEEXT_CMB_DropList (0L << 0)
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 return !!(m_pProperties->m_dwStyleExes & FWL_STYLEEXT_CMB_DropDown); 120 return !!(m_pProperties->m_dwStyleExes & FWL_STYLEEXT_CMB_DropDown);
121 } 121 }
122 void MatchEditText(); 122 void MatchEditText();
123 void SyncEditText(int32_t iListItem); 123 void SyncEditText(int32_t iListItem);
124 void Layout(); 124 void Layout();
125 void ResetTheme(); 125 void ResetTheme();
126 void ResetEditAlignment(); 126 void ResetEditAlignment();
127 void ResetListItemAlignment(); 127 void ResetListItemAlignment();
128 void InitProxyForm(); 128 void InitProxyForm();
129 void OnFocusChanged(CFWL_Message* pMsg, bool bSet); 129 void OnFocusChanged(CFWL_Message* pMsg, bool bSet);
130 void OnLButtonDown(CFWL_MsgMouse* pMsg); 130 void OnLButtonDown(CFWL_MessageMouse* pMsg);
131 void OnLButtonUp(CFWL_MsgMouse* pMsg); 131 void OnLButtonUp(CFWL_MessageMouse* pMsg);
132 void OnMouseMove(CFWL_MsgMouse* pMsg); 132 void OnMouseMove(CFWL_MessageMouse* pMsg);
133 void OnMouseLeave(CFWL_MsgMouse* pMsg); 133 void OnMouseLeave(CFWL_MessageMouse* pMsg);
134 void OnKey(CFWL_MsgKey* pMsg); 134 void OnKey(CFWL_MessageKey* pMsg);
135 void DoSubCtrlKey(CFWL_MsgKey* pMsg); 135 void DoSubCtrlKey(CFWL_MessageKey* pMsg);
136 136
137 void DisForm_InitComboList(); 137 void DisForm_InitComboList();
138 void DisForm_InitComboEdit(); 138 void DisForm_InitComboEdit();
139 void DisForm_ShowDropList(bool bActivate); 139 void DisForm_ShowDropList(bool bActivate);
140 bool DisForm_IsDropListVisible() const { 140 bool DisForm_IsDropListVisible() const {
141 return !(m_pListBox->GetStates() & FWL_WGTSTATE_Invisible); 141 return !(m_pListBox->GetStates() & FWL_WGTSTATE_Invisible);
142 } 142 }
143 void DisForm_ModifyStylesEx(uint32_t dwStylesExAdded, 143 void DisForm_ModifyStylesEx(uint32_t dwStylesExAdded,
144 uint32_t dwStylesExRemoved); 144 uint32_t dwStylesExRemoved);
145 void DisForm_Update(); 145 void DisForm_Update();
146 FWL_WidgetHit DisForm_HitTest(FX_FLOAT fx, FX_FLOAT fy); 146 FWL_WidgetHit DisForm_HitTest(FX_FLOAT fx, FX_FLOAT fy);
147 void DisForm_DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix); 147 void DisForm_DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix);
148 CFX_RectF DisForm_GetBBox() const; 148 CFX_RectF DisForm_GetBBox() const;
149 void DisForm_Layout(); 149 void DisForm_Layout();
150 void DisForm_OnProcessMessage(CFWL_Message* pMessage); 150 void DisForm_OnProcessMessage(CFWL_Message* pMessage);
151 void DisForm_OnLButtonDown(CFWL_MsgMouse* pMsg); 151 void DisForm_OnLButtonDown(CFWL_MessageMouse* pMsg);
152 void DisForm_OnFocusChanged(CFWL_Message* pMsg, bool bSet); 152 void DisForm_OnFocusChanged(CFWL_Message* pMsg, bool bSet);
153 void DisForm_OnKey(CFWL_MsgKey* pMsg); 153 void DisForm_OnKey(CFWL_MessageKey* pMsg);
154 154
155 CFX_RectF m_rtClient; 155 CFX_RectF m_rtClient;
156 CFX_RectF m_rtContent; 156 CFX_RectF m_rtContent;
157 CFX_RectF m_rtBtn; 157 CFX_RectF m_rtBtn;
158 CFX_RectF m_rtList; 158 CFX_RectF m_rtList;
159 CFX_RectF m_rtProxy; 159 CFX_RectF m_rtProxy;
160 CFX_RectF m_rtHandler; 160 CFX_RectF m_rtHandler;
161 std::unique_ptr<CFWL_ComboEdit> m_pEdit; 161 std::unique_ptr<CFWL_ComboEdit> m_pEdit;
162 std::unique_ptr<CFWL_ComboList> m_pListBox; 162 std::unique_ptr<CFWL_ComboList> m_pListBox;
163 CFWL_ComboBoxProxy* m_pComboBoxProxy; // Can this be a unique_ptr? 163 CFWL_ComboBoxProxy* m_pComboBoxProxy; // Can this be a unique_ptr?
164 bool m_bLButtonDown; 164 bool m_bLButtonDown;
165 bool m_bUpFormHandler; 165 bool m_bUpFormHandler;
166 int32_t m_iCurSel; 166 int32_t m_iCurSel;
167 int32_t m_iBtnState; 167 int32_t m_iBtnState;
168 FX_FLOAT m_fComboFormHandler; 168 FX_FLOAT m_fComboFormHandler;
169 FX_FLOAT m_fItemHeight; 169 FX_FLOAT m_fItemHeight;
170 }; 170 };
171 171
172 #endif // XFA_FWL_CORE_CFWL_COMBOBOX_H_ 172 #endif // XFA_FWL_CFWL_COMBOBOX_H_
OLDNEW
« no previous file with comments | « xfa/fwl/cfwl_checkbox.cpp ('k') | xfa/fwl/cfwl_combobox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698