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

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

Issue 2515463002: Move the IFWL_Edit Events out of ifwl_edit.h (Closed)
Patch Set: 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_combobox.cpp ('k') | xfa/fwl/core/ifwl_edit.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_EDIT_H_ 7 #ifndef XFA_FWL_CORE_IFWL_EDIT_H_
8 #define XFA_FWL_CORE_IFWL_EDIT_H_ 8 #define XFA_FWL_CORE_IFWL_EDIT_H_
9 9
10 #include <deque> 10 #include <deque>
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 #define FWL_STYLEEXT_EDT_Justified (1L << 22) 43 #define FWL_STYLEEXT_EDT_Justified (1L << 22)
44 #define FWL_STYLEEXT_EDT_Distributed (2L << 22) 44 #define FWL_STYLEEXT_EDT_Distributed (2L << 22)
45 #define FWL_STYLEEXT_EDT_HAlignMask (3L << 18) 45 #define FWL_STYLEEXT_EDT_HAlignMask (3L << 18)
46 #define FWL_STYLEEXT_EDT_VAlignMask (3L << 20) 46 #define FWL_STYLEEXT_EDT_VAlignMask (3L << 20)
47 #define FWL_STYLEEXT_EDT_HAlignModeMask (3L << 22) 47 #define FWL_STYLEEXT_EDT_HAlignModeMask (3L << 22)
48 #define FWL_STYLEEXT_EDT_InnerCaret (1L << 24) 48 #define FWL_STYLEEXT_EDT_InnerCaret (1L << 24)
49 #define FWL_STYLEEXT_EDT_ShowScrollbarFocus (1L << 25) 49 #define FWL_STYLEEXT_EDT_ShowScrollbarFocus (1L << 25)
50 #define FWL_STYLEEXT_EDT_OuterScrollbar (1L << 26) 50 #define FWL_STYLEEXT_EDT_OuterScrollbar (1L << 26)
51 #define FWL_STYLEEXT_EDT_LastLineHeight (1L << 27) 51 #define FWL_STYLEEXT_EDT_LastLineHeight (1L << 27)
52 52
53 enum FWL_EDT_TEXTCHANGED {
54 FWL_EDT_TEXTCHANGED_Insert = 0,
55 FWL_EDT_TEXTCHANGED_Delete,
56 FWL_EDT_TEXTCHANGED_Replace,
57 };
58
59 FWL_EVENT_DEF(CFWL_EvtEdtTextChanged,
60 CFWL_EventType::TextChanged,
61 int32_t nChangeType;
62 CFX_WideString wsInsert;
63 CFX_WideString wsDelete;
64 CFX_WideString wsPrevText;)
65
66 FWL_EVENT_DEF(CFWL_EvtEdtTextFull, CFWL_EventType::TextFull)
67
68 FWL_EVENT_DEF(CFWL_EvtEdtValidate,
69 CFWL_EventType::Validate,
70 IFWL_Widget* pDstWidget;
71 CFX_WideString wsInsert;
72 bool bValidate;)
73
74 FWL_EVENT_DEF(CFWL_EvtEdtCheckWord,
75 CFWL_EventType::CheckWord,
76 CFX_ByteString bsWord;
77 bool bCheckWord;)
78
79 class IFDE_TxtEdtDoRecord; 53 class IFDE_TxtEdtDoRecord;
80 class IFWL_Edit; 54 class IFWL_Edit;
81 class CFWL_MsgMouse; 55 class CFWL_MsgMouse;
82 class CFWL_WidgetProperties; 56 class CFWL_WidgetProperties;
83 class IFWL_Caret; 57 class IFWL_Caret;
84 58
85 class IFWL_Edit : public IFWL_Widget { 59 class IFWL_Edit : public IFWL_Widget {
86 public: 60 public:
87 IFWL_Edit(const IFWL_App* app, 61 IFWL_Edit(const IFWL_App* app,
88 std::unique_ptr<CFWL_WidgetProperties> properties, 62 std::unique_ptr<CFWL_WidgetProperties> properties,
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 std::unique_ptr<IFWL_ScrollBar> m_pHorzScrollBar; 187 std::unique_ptr<IFWL_ScrollBar> m_pHorzScrollBar;
214 std::unique_ptr<IFWL_Caret> m_pCaret; 188 std::unique_ptr<IFWL_Caret> m_pCaret;
215 CFX_WideString m_wsCache; 189 CFX_WideString m_wsCache;
216 CFX_WideString m_wsFont; 190 CFX_WideString m_wsFont;
217 std::deque<std::unique_ptr<IFDE_TxtEdtDoRecord>> m_DoRecords; 191 std::deque<std::unique_ptr<IFDE_TxtEdtDoRecord>> m_DoRecords;
218 int32_t m_iCurRecord; 192 int32_t m_iCurRecord;
219 int32_t m_iMaxRecord; 193 int32_t m_iMaxRecord;
220 }; 194 };
221 195
222 #endif // XFA_FWL_CORE_IFWL_EDIT_H_ 196 #endif // XFA_FWL_CORE_IFWL_EDIT_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_combobox.cpp ('k') | xfa/fwl/core/ifwl_edit.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698