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

Side by Side Diff: fpdfsdk/pdfwindow/PWL_ListBox.h

Issue 2338553002: Stop converting widestring -> c_str -> widestring in several places. (Closed)
Patch Set: Created 4 years, 3 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 | « fpdfsdk/pdfwindow/PWL_EditCtrl.cpp ('k') | fpdfsdk/pdfwindow/PWL_ListBox.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 FPDFSDK_PDFWINDOW_PWL_LISTBOX_H_ 7 #ifndef FPDFSDK_PDFWINDOW_PWL_LISTBOX_H_
8 #define FPDFSDK_PDFWINDOW_PWL_LISTBOX_H_ 8 #define FPDFSDK_PDFWINDOW_PWL_LISTBOX_H_
9 9
10 #include "fpdfsdk/fxedit/include/fx_edit.h" 10 #include "fpdfsdk/fxedit/include/fx_edit.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 intptr_t lParam = 0) override; 68 intptr_t lParam = 0) override;
69 void RePosChildWnd() override; 69 void RePosChildWnd() override;
70 CFX_FloatRect GetFocusRect() const override; 70 CFX_FloatRect GetFocusRect() const override;
71 void SetFontSize(FX_FLOAT fFontSize) override; 71 void SetFontSize(FX_FLOAT fFontSize) override;
72 FX_FLOAT GetFontSize() const override; 72 FX_FLOAT GetFontSize() const override;
73 73
74 virtual CFX_WideString GetText() const; 74 virtual CFX_WideString GetText() const;
75 75
76 void OnNotifySelChanged(FX_BOOL bKeyDown, FX_BOOL& bExit, uint32_t nFlag); 76 void OnNotifySelChanged(FX_BOOL bKeyDown, FX_BOOL& bExit, uint32_t nFlag);
77 77
78 void AddString(const FX_WCHAR* str); 78 void AddString(const CFX_WideString& str);
79 void SetTopVisibleIndex(int32_t nItemIndex); 79 void SetTopVisibleIndex(int32_t nItemIndex);
80 void ScrollToListItem(int32_t nItemIndex); 80 void ScrollToListItem(int32_t nItemIndex);
81 void ResetContent(); 81 void ResetContent();
82 void Reset(); 82 void Reset();
83 void Select(int32_t nItemIndex); 83 void Select(int32_t nItemIndex);
84 void SetCaret(int32_t nItemIndex); 84 void SetCaret(int32_t nItemIndex);
85 void SetHoverSel(FX_BOOL bHoverSel); 85 void SetHoverSel(FX_BOOL bHoverSel);
86 86
87 int32_t GetCount() const; 87 int32_t GetCount() const;
88 FX_BOOL IsMultipleSel() const; 88 FX_BOOL IsMultipleSel() const;
(...skipping 18 matching lines...) Expand all
107 IPWL_Filler_Notify* m_pFillerNotify; 107 IPWL_Filler_Notify* m_pFillerNotify;
108 108
109 public: 109 public:
110 void AttachFFLData(void* pData) { m_pFormFiller = pData; } 110 void AttachFFLData(void* pData) { m_pFormFiller = pData; }
111 111
112 private: 112 private:
113 void* m_pFormFiller; 113 void* m_pFormFiller;
114 }; 114 };
115 115
116 #endif // FPDFSDK_PDFWINDOW_PWL_LISTBOX_H_ 116 #endif // FPDFSDK_PDFWINDOW_PWL_LISTBOX_H_
OLDNEW
« no previous file with comments | « fpdfsdk/pdfwindow/PWL_EditCtrl.cpp ('k') | fpdfsdk/pdfwindow/PWL_ListBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698