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

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

Issue 2031873003: Get rid of NULLs in xfa/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium@nullptr_fpdfsdk
Patch Set: Created 4 years, 6 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.h ('k') | xfa/fwl/lightwidget/cfwl_listbox.h » ('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/lightwidget/cfwl_widget.h" 12 #include "xfa/fwl/lightwidget/cfwl_widget.h"
13 13
14 class CFWL_WidgetProperties; 14 class CFWL_WidgetProperties;
15 class IFDE_TxtEdtDoRecord; 15 class IFDE_TxtEdtDoRecord;
16 16
17 class CFWL_Edit : public CFWL_Widget { 17 class CFWL_Edit : public CFWL_Widget {
18 public: 18 public:
19 static CFWL_Edit* Create(); 19 static CFWL_Edit* Create();
20 FWL_Error Initialize(const CFWL_WidgetProperties* pProperties = NULL); 20 FWL_Error Initialize(const CFWL_WidgetProperties* pProperties = nullptr);
21 FWL_Error SetText(const CFX_WideString& wsText); 21 FWL_Error SetText(const CFX_WideString& wsText);
22 int32_t GetTextLength() const; 22 int32_t GetTextLength() const;
23 FWL_Error GetText(CFX_WideString& wsText, 23 FWL_Error GetText(CFX_WideString& wsText,
24 int32_t nStart = 0, 24 int32_t nStart = 0,
25 int32_t nCount = -1) const; 25 int32_t nCount = -1) const;
26 FWL_Error ClearText(); 26 FWL_Error ClearText();
27 int32_t GetCaretPos() const; 27 int32_t GetCaretPos() const;
28 int32_t SetCaretPos(int32_t nIndex, FX_BOOL bBefore = TRUE); 28 int32_t SetCaretPos(int32_t nIndex, FX_BOOL bBefore = TRUE);
29 int32_t AddSelRange(int32_t nStart, int32_t nCount = -1); 29 int32_t AddSelRange(int32_t nStart, int32_t nCount = -1);
30 int32_t CountSelRanges(); 30 int32_t CountSelRanges();
(...skipping 27 matching lines...) Expand all
58 void SetScrollOffset(FX_FLOAT fScrollOffset); 58 void SetScrollOffset(FX_FLOAT fScrollOffset);
59 FX_BOOL GetSuggestWords(CFX_PointF pointf, 59 FX_BOOL GetSuggestWords(CFX_PointF pointf,
60 std::vector<CFX_ByteString>& sSuggest); 60 std::vector<CFX_ByteString>& sSuggest);
61 FX_BOOL ReplaceSpellCheckWord(CFX_PointF pointf, 61 FX_BOOL ReplaceSpellCheckWord(CFX_PointF pointf,
62 const CFX_ByteStringC& bsReplace); 62 const CFX_ByteStringC& bsReplace);
63 CFWL_Edit(); 63 CFWL_Edit();
64 virtual ~CFWL_Edit(); 64 virtual ~CFWL_Edit();
65 }; 65 };
66 66
67 #endif // XFA_FWL_LIGHTWIDGET_CFWL_EDIT_H_ 67 #endif // XFA_FWL_LIGHTWIDGET_CFWL_EDIT_H_
OLDNEW
« no previous file with comments | « xfa/fwl/lightwidget/cfwl_datetimepicker.h ('k') | xfa/fwl/lightwidget/cfwl_listbox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698