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

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

Issue 2422303003: Remove FWL Create methods, use new instead (Closed)
Patch Set: Review fixes Created 4 years, 2 months 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/lightwidget/cfwl_datetimepicker.cpp ('k') | xfa/fwl/lightwidget/cfwl_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_LIGHTWIDGET_CFWL_EDIT_H_ 7 #ifndef XFA_FWL_LIGHTWIDGET_CFWL_EDIT_H_
8 #define XFA_FWL_LIGHTWIDGET_CFWL_EDIT_H_ 8 #define XFA_FWL_LIGHTWIDGET_CFWL_EDIT_H_
9 9
10 #include <vector> 10 #include <vector>
11 11
12 #include "xfa/fwl/basewidget/ifwl_edit.h" 12 #include "xfa/fwl/basewidget/ifwl_edit.h"
13 #include "xfa/fwl/lightwidget/cfwl_widget.h" 13 #include "xfa/fwl/lightwidget/cfwl_widget.h"
14 14
15 class CFWL_WidgetProperties; 15 class CFWL_WidgetProperties;
16 class IFDE_TxtEdtDoRecord; 16 class IFDE_TxtEdtDoRecord;
17 17
18 class CFWL_Edit : public CFWL_Widget { 18 class CFWL_Edit : public CFWL_Widget {
19 public: 19 public:
20 CFWL_Edit(); 20 CFWL_Edit();
21 ~CFWL_Edit() override; 21 ~CFWL_Edit() override;
22 22
23 IFWL_Edit* GetWidget() override; 23 IFWL_Edit* GetWidget() override;
24 const IFWL_Edit* GetWidget() const override; 24 const IFWL_Edit* GetWidget() const override;
25 25
26 static CFWL_Edit* Create();
27 FWL_Error Initialize(const CFWL_WidgetProperties* pProperties = nullptr); 26 FWL_Error Initialize(const CFWL_WidgetProperties* pProperties = nullptr);
28 FWL_Error SetText(const CFX_WideString& wsText); 27 FWL_Error SetText(const CFX_WideString& wsText);
29 int32_t GetTextLength() const; 28 int32_t GetTextLength() const;
30 FWL_Error GetText(CFX_WideString& wsText, 29 FWL_Error GetText(CFX_WideString& wsText,
31 int32_t nStart = 0, 30 int32_t nStart = 0,
32 int32_t nCount = -1) const; 31 int32_t nCount = -1) const;
33 FWL_Error ClearText(); 32 FWL_Error ClearText();
34 int32_t GetCaretPos() const; 33 int32_t GetCaretPos() const;
35 int32_t SetCaretPos(int32_t nIndex, FX_BOOL bBefore = TRUE); 34 int32_t SetCaretPos(int32_t nIndex, FX_BOOL bBefore = TRUE);
36 int32_t AddSelRange(int32_t nStart, int32_t nCount = -1); 35 int32_t AddSelRange(int32_t nStart, int32_t nCount = -1);
(...skipping 26 matching lines...) Expand all
63 FX_BOOL Paste(const CFX_WideString& wsPaste); 62 FX_BOOL Paste(const CFX_WideString& wsPaste);
64 FX_BOOL Delete(); 63 FX_BOOL Delete();
65 void SetScrollOffset(FX_FLOAT fScrollOffset); 64 void SetScrollOffset(FX_FLOAT fScrollOffset);
66 FX_BOOL GetSuggestWords(CFX_PointF pointf, 65 FX_BOOL GetSuggestWords(CFX_PointF pointf,
67 std::vector<CFX_ByteString>& sSuggest); 66 std::vector<CFX_ByteString>& sSuggest);
68 FX_BOOL ReplaceSpellCheckWord(CFX_PointF pointf, 67 FX_BOOL ReplaceSpellCheckWord(CFX_PointF pointf,
69 const CFX_ByteStringC& bsReplace); 68 const CFX_ByteStringC& bsReplace);
70 }; 69 };
71 70
72 #endif // XFA_FWL_LIGHTWIDGET_CFWL_EDIT_H_ 71 #endif // XFA_FWL_LIGHTWIDGET_CFWL_EDIT_H_
OLDNEW
« no previous file with comments | « xfa/fwl/lightwidget/cfwl_datetimepicker.cpp ('k') | xfa/fwl/lightwidget/cfwl_edit.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698