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

Side by Side Diff: fpdfsdk/include/pdfwindow/PWL_Edit.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_ComboBox.h ('k') | fpdfsdk/include/pdfwindow/PWL_EditCtrl.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_EDIT_H_ 7 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_EDIT_H_
8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_EDIT_H_ 8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_EDIT_H_
9 9
10 #include "core/include/fxcrt/fx_basic.h" 10 #include "core/include/fxcrt/fx_basic.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 CFX_FloatRect GetClientRect() const override; 55 CFX_FloatRect GetClientRect() const override;
56 void GetThisAppearanceStream(CFX_ByteTextBuf& sAppStream) override; 56 void GetThisAppearanceStream(CFX_ByteTextBuf& sAppStream) override;
57 void DrawThisAppearance(CFX_RenderDevice* pDevice, 57 void DrawThisAppearance(CFX_RenderDevice* pDevice,
58 CFX_Matrix* pUser2Device) override; 58 CFX_Matrix* pUser2Device) override;
59 FX_BOOL OnLButtonDown(const CFX_FloatPoint& point, FX_DWORD nFlag) override; 59 FX_BOOL OnLButtonDown(const CFX_FloatPoint& point, FX_DWORD nFlag) override;
60 FX_BOOL OnLButtonDblClk(const CFX_FloatPoint& point, FX_DWORD nFlag) override; 60 FX_BOOL OnLButtonDblClk(const CFX_FloatPoint& point, FX_DWORD nFlag) override;
61 FX_BOOL OnRButtonUp(const CFX_FloatPoint& point, FX_DWORD nFlag) override; 61 FX_BOOL OnRButtonUp(const CFX_FloatPoint& point, FX_DWORD nFlag) override;
62 FX_BOOL OnMouseWheel(short zDelta, 62 FX_BOOL OnMouseWheel(short zDelta,
63 const CFX_FloatPoint& point, 63 const CFX_FloatPoint& point,
64 FX_DWORD nFlag) override; 64 FX_DWORD nFlag) override;
65 FX_BOOL OnKeyDown(FX_WORD nChar, FX_DWORD nFlag) override; 65 FX_BOOL OnKeyDown(uint16_t nChar, FX_DWORD nFlag) override;
66 FX_BOOL OnChar(FX_WORD nChar, FX_DWORD nFlag) override; 66 FX_BOOL OnChar(uint16_t nChar, FX_DWORD nFlag) override;
67 CFX_FloatRect GetFocusRect() const override; 67 CFX_FloatRect GetFocusRect() const override;
68 void OnSetFocus() override; 68 void OnSetFocus() override;
69 void OnKillFocus() override; 69 void OnKillFocus() override;
70 70
71 void SetAlignFormatH(PWL_EDIT_ALIGNFORMAT_H nFormat = PEAH_LEFT, 71 void SetAlignFormatH(PWL_EDIT_ALIGNFORMAT_H nFormat = PEAH_LEFT,
72 FX_BOOL bPaint = TRUE); // 0:left 1:right 2:middle 72 FX_BOOL bPaint = TRUE); // 0:left 1:right 2:middle
73 void SetAlignFormatV(PWL_EDIT_ALIGNFORMAT_V nFormat = PEAV_TOP, 73 void SetAlignFormatV(PWL_EDIT_ALIGNFORMAT_V nFormat = PEAV_TOP,
74 FX_BOOL bPaint = TRUE); // 0:top 1:bottom 2:center 74 FX_BOOL bPaint = TRUE); // 0:top 1:bottom 2:center
75 75
76 void SetCharArray(int32_t nCharArray); 76 void SetCharArray(int32_t nCharArray);
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 CPVT_WordRange CombineWordRange(const CPVT_WordRange& wr1, 147 CPVT_WordRange CombineWordRange(const CPVT_WordRange& wr1,
148 const CPVT_WordRange& wr2); 148 const CPVT_WordRange& wr2);
149 CPVT_WordRange GetLatinWordsRange(const CFX_FloatPoint& point) const; 149 CPVT_WordRange GetLatinWordsRange(const CFX_FloatPoint& point) const;
150 CPVT_WordRange GetLatinWordsRange(const CPVT_WordPlace& place) const; 150 CPVT_WordRange GetLatinWordsRange(const CPVT_WordPlace& place) const;
151 CPVT_WordRange GetArabicWordsRange(const CPVT_WordPlace& place) const; 151 CPVT_WordRange GetArabicWordsRange(const CPVT_WordPlace& place) const;
152 CPVT_WordRange GetSameWordsRange(const CPVT_WordPlace& place, 152 CPVT_WordRange GetSameWordsRange(const CPVT_WordPlace& place,
153 FX_BOOL bLatin, 153 FX_BOOL bLatin,
154 FX_BOOL bArabic) const; 154 FX_BOOL bArabic) const;
155 155
156 public: 156 public:
157 FX_BOOL IsProceedtoOnChar(FX_WORD nKeyCode, FX_DWORD nFlag); 157 FX_BOOL IsProceedtoOnChar(uint16_t nKeyCode, FX_DWORD nFlag);
158 158
159 private: 159 private:
160 IPWL_Filler_Notify* m_pFillerNotify; 160 IPWL_Filler_Notify* m_pFillerNotify;
161 IPWL_SpellCheck* m_pSpellCheck; 161 IPWL_SpellCheck* m_pSpellCheck;
162 FX_BOOL m_bFocus; 162 FX_BOOL m_bFocus;
163 CFX_FloatRect m_rcOldWindow; 163 CFX_FloatRect m_rcOldWindow;
164 164
165 public: 165 public:
166 void AttachFFLData(void* pData) { m_pFormFiller = pData; } 166 void AttachFFLData(void* pData) { m_pFormFiller = pData; }
167 167
168 private: 168 private:
169 void* m_pFormFiller; 169 void* m_pFormFiller;
170 }; 170 };
171 171
172 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_EDIT_H_ 172 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_EDIT_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/pdfwindow/PWL_ComboBox.h ('k') | fpdfsdk/include/pdfwindow/PWL_EditCtrl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698