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

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

Issue 2530993002: Cleanup FWL Event and Message code. (Closed)
Patch Set: Review feedback 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
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_EDIT_H_ 7 #ifndef XFA_FWL_CORE_CFWL_EDIT_H_
8 #define XFA_FWL_CORE_CFWL_EDIT_H_ 8 #define XFA_FWL_CORE_CFWL_EDIT_H_
9 9
10 #include <deque> 10 #include <deque>
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 FX_FLOAT fOffSetX, 159 FX_FLOAT fOffSetX,
160 FX_FLOAT fOffSetY); 160 FX_FLOAT fOffSetY);
161 void DoButtonDown(CFWL_MsgMouse* pMsg); 161 void DoButtonDown(CFWL_MsgMouse* pMsg);
162 void OnFocusChanged(CFWL_Message* pMsg, bool bSet); 162 void OnFocusChanged(CFWL_Message* pMsg, bool bSet);
163 void OnLButtonDown(CFWL_MsgMouse* pMsg); 163 void OnLButtonDown(CFWL_MsgMouse* pMsg);
164 void OnLButtonUp(CFWL_MsgMouse* pMsg); 164 void OnLButtonUp(CFWL_MsgMouse* pMsg);
165 void OnButtonDblClk(CFWL_MsgMouse* pMsg); 165 void OnButtonDblClk(CFWL_MsgMouse* pMsg);
166 void OnMouseMove(CFWL_MsgMouse* pMsg); 166 void OnMouseMove(CFWL_MsgMouse* pMsg);
167 void OnKeyDown(CFWL_MsgKey* pMsg); 167 void OnKeyDown(CFWL_MsgKey* pMsg);
168 void OnChar(CFWL_MsgKey* pMsg); 168 void OnChar(CFWL_MsgKey* pMsg);
169 bool OnScroll(CFWL_ScrollBar* pScrollBar, FWL_SCBCODE dwCode, FX_FLOAT fPos); 169 bool OnScroll(CFWL_ScrollBar* pScrollBar,
170 CFWL_EvtScroll::Code dwCode,
171 FX_FLOAT fPos);
170 172
171 CFX_RectF m_rtClient; 173 CFX_RectF m_rtClient;
172 CFX_RectF m_rtEngine; 174 CFX_RectF m_rtEngine;
173 CFX_RectF m_rtStatic; 175 CFX_RectF m_rtStatic;
174 FX_FLOAT m_fVAlignOffset; 176 FX_FLOAT m_fVAlignOffset;
175 FX_FLOAT m_fScrollOffsetX; 177 FX_FLOAT m_fScrollOffsetX;
176 FX_FLOAT m_fScrollOffsetY; 178 FX_FLOAT m_fScrollOffsetY;
177 CFDE_TxtEdtEngine m_EdtEngine; 179 CFDE_TxtEdtEngine m_EdtEngine;
178 bool m_bLButtonDown; 180 bool m_bLButtonDown;
179 int32_t m_nSelStart; 181 int32_t m_nSelStart;
180 int32_t m_nLimit; 182 int32_t m_nLimit;
181 FX_FLOAT m_fFontSize; 183 FX_FLOAT m_fFontSize;
182 bool m_bSetRange; 184 bool m_bSetRange;
183 int32_t m_iMax; 185 int32_t m_iMax;
184 std::unique_ptr<CFWL_ScrollBar> m_pVertScrollBar; 186 std::unique_ptr<CFWL_ScrollBar> m_pVertScrollBar;
185 std::unique_ptr<CFWL_ScrollBar> m_pHorzScrollBar; 187 std::unique_ptr<CFWL_ScrollBar> m_pHorzScrollBar;
186 std::unique_ptr<CFWL_Caret> m_pCaret; 188 std::unique_ptr<CFWL_Caret> m_pCaret;
187 CFX_WideString m_wsCache; 189 CFX_WideString m_wsCache;
188 CFX_WideString m_wsFont; 190 CFX_WideString m_wsFont;
189 std::deque<std::unique_ptr<IFDE_TxtEdtDoRecord>> m_DoRecords; 191 std::deque<std::unique_ptr<IFDE_TxtEdtDoRecord>> m_DoRecords;
190 int32_t m_iCurRecord; 192 int32_t m_iCurRecord;
191 int32_t m_iMaxRecord; 193 int32_t m_iMaxRecord;
192 }; 194 };
193 195
194 #endif // XFA_FWL_CORE_CFWL_EDIT_H_ 196 #endif // XFA_FWL_CORE_CFWL_EDIT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698