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

Side by Side Diff: fpdfsdk/include/pdfwindow/PWL_EditCtrl.h

Issue 1821043003: Remove FX_WORD in favor of uint16_t. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Use stdint.h directly, bitfield minefield. Created 4 years, 9 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/include/pdfwindow/PWL_Edit.h ('k') | fpdfsdk/include/pdfwindow/PWL_FontMap.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 FPDFSDK_INCLUDE_PDFWINDOW_PWL_EDITCTRL_H_ 7 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_EDITCTRL_H_
8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_EDITCTRL_H_ 8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_EDITCTRL_H_
9 9
10 #include "core/include/fxcrt/fx_string.h" 10 #include "core/include/fxcrt/fx_string.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 FX_BOOL CanUndo() const; 96 FX_BOOL CanUndo() const;
97 FX_BOOL CanRedo() const; 97 FX_BOOL CanRedo() const;
98 void Redo(); 98 void Redo();
99 void Undo(); 99 void Undo();
100 100
101 void SetReadyToInput(); 101 void SetReadyToInput();
102 102
103 // CPWL_Wnd 103 // CPWL_Wnd
104 void OnCreate(PWL_CREATEPARAM& cp) override; 104 void OnCreate(PWL_CREATEPARAM& cp) override;
105 void OnCreated() override; 105 void OnCreated() override;
106 FX_BOOL OnKeyDown(FX_WORD nChar, FX_DWORD nFlag) override; 106 FX_BOOL OnKeyDown(uint16_t nChar, FX_DWORD nFlag) override;
107 FX_BOOL OnChar(FX_WORD nChar, FX_DWORD nFlag) override; 107 FX_BOOL OnChar(uint16_t nChar, FX_DWORD nFlag) override;
108 FX_BOOL OnLButtonDown(const CFX_FloatPoint& point, FX_DWORD nFlag) override; 108 FX_BOOL OnLButtonDown(const CFX_FloatPoint& point, FX_DWORD nFlag) override;
109 FX_BOOL OnLButtonUp(const CFX_FloatPoint& point, FX_DWORD nFlag) override; 109 FX_BOOL OnLButtonUp(const CFX_FloatPoint& point, FX_DWORD nFlag) override;
110 FX_BOOL OnMouseMove(const CFX_FloatPoint& point, FX_DWORD nFlag) override; 110 FX_BOOL OnMouseMove(const CFX_FloatPoint& point, FX_DWORD nFlag) override;
111 void OnNotify(CPWL_Wnd* pWnd, 111 void OnNotify(CPWL_Wnd* pWnd,
112 FX_DWORD msg, 112 FX_DWORD msg,
113 intptr_t wParam = 0, 113 intptr_t wParam = 0,
114 intptr_t lParam = 0) override; 114 intptr_t lParam = 0) override;
115 void CreateChildWnd(const PWL_CREATEPARAM& cp) override; 115 void CreateChildWnd(const PWL_CREATEPARAM& cp) override;
116 void RePosChildWnd() override; 116 void RePosChildWnd() override;
117 void SetFontSize(FX_FLOAT fFontSize) override; 117 void SetFontSize(FX_FLOAT fFontSize) override;
(...skipping 24 matching lines...) Expand all
142 const CPVT_WordProps& wordProps) override; 142 const CPVT_WordProps& wordProps) override;
143 void IOnContentChange(const CFX_FloatRect& rcContent) override; 143 void IOnContentChange(const CFX_FloatRect& rcContent) override;
144 void IOnInvalidateRect(CFX_FloatRect* pRect) override; 144 void IOnInvalidateRect(CFX_FloatRect* pRect) override;
145 145
146 void InsertText(const FX_WCHAR* csText); 146 void InsertText(const FX_WCHAR* csText);
147 void SetText(const FX_WCHAR* csText); 147 void SetText(const FX_WCHAR* csText);
148 void CopyText(); 148 void CopyText();
149 void PasteText(); 149 void PasteText();
150 void CutText(); 150 void CutText();
151 void ShowVScrollBar(FX_BOOL bShow); 151 void ShowVScrollBar(FX_BOOL bShow);
152 void InsertWord(FX_WORD word, int32_t nCharset); 152 void InsertWord(uint16_t word, int32_t nCharset);
153 void InsertReturn(); 153 void InsertReturn();
154 154
155 FX_BOOL IsWndHorV(); 155 FX_BOOL IsWndHorV();
156 156
157 void Delete(); 157 void Delete();
158 void Backspace(); 158 void Backspace();
159 159
160 void GetCaretInfo(CFX_FloatPoint& ptHead, CFX_FloatPoint& ptFoot) const; 160 void GetCaretInfo(CFX_FloatPoint& ptHead, CFX_FloatPoint& ptFoot) const;
161 void SetCaret(FX_BOOL bVisible, 161 void SetCaret(FX_BOOL bVisible,
162 const CFX_FloatPoint& ptHead, 162 const CFX_FloatPoint& ptHead,
163 const CFX_FloatPoint& ptFoot); 163 const CFX_FloatPoint& ptFoot);
164 164
165 void SetEditCaret(FX_BOOL bVisible); 165 void SetEditCaret(FX_BOOL bVisible);
166 166
167 private: 167 private:
168 void CreateEditCaret(const PWL_CREATEPARAM& cp); 168 void CreateEditCaret(const PWL_CREATEPARAM& cp);
169 169
170 protected: 170 protected:
171 IFX_Edit* m_pEdit; 171 IFX_Edit* m_pEdit;
172 CPWL_Caret* m_pEditCaret; 172 CPWL_Caret* m_pEditCaret;
173 FX_BOOL m_bMouseDown; 173 FX_BOOL m_bMouseDown;
174 IPWL_Edit_Notify* m_pEditNotify; 174 IPWL_Edit_Notify* m_pEditNotify;
175 175
176 private: 176 private:
177 int32_t m_nCharSet; 177 int32_t m_nCharSet;
178 int32_t m_nCodePage; 178 int32_t m_nCodePage;
179 }; 179 };
180 180
181 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_EDITCTRL_H_ 181 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_EDITCTRL_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/pdfwindow/PWL_Edit.h ('k') | fpdfsdk/include/pdfwindow/PWL_FontMap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698