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

Side by Side Diff: core/fpdfdoc/include/cpdf_variabletext.h

Issue 1960043003: Fix some misc nits. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: Created 4 years, 7 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
OLDNEW
1 // Copyright 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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 CORE_FPDFDOC_INCLUDE_CPDF_VARIABLETEXT_H_ 7 #ifndef CORE_FPDFDOC_INCLUDE_CPDF_VARIABLETEXT_H_
8 #define CORE_FPDFDOC_INCLUDE_CPDF_VARIABLETEXT_H_ 8 #define CORE_FPDFDOC_INCLUDE_CPDF_VARIABLETEXT_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 int32_t nWordStyle); 70 int32_t nWordStyle);
71 virtual int32_t GetTypeAscent(int32_t nFontIndex); 71 virtual int32_t GetTypeAscent(int32_t nFontIndex);
72 virtual int32_t GetTypeDescent(int32_t nFontIndex); 72 virtual int32_t GetTypeDescent(int32_t nFontIndex);
73 virtual int32_t GetWordFontIndex(uint16_t word, 73 virtual int32_t GetWordFontIndex(uint16_t word,
74 int32_t charset, 74 int32_t charset,
75 int32_t nFontIndex); 75 int32_t nFontIndex);
76 virtual FX_BOOL IsLatinWord(uint16_t word); 76 virtual FX_BOOL IsLatinWord(uint16_t word);
77 virtual int32_t GetDefaultFontIndex(); 77 virtual int32_t GetDefaultFontIndex();
78 78
79 private: 79 private:
80 IPVT_FontMap* m_pFontMap; 80 IPVT_FontMap* const m_pFontMap;
81 }; 81 };
82 82
83 CPDF_VariableText(); 83 CPDF_VariableText();
84 ~CPDF_VariableText() override; 84 ~CPDF_VariableText() override;
85 85
86 void SetProvider(CPDF_VariableText::Provider* pProvider); 86 void SetProvider(CPDF_VariableText::Provider* pProvider);
87 CPDF_VariableText::Iterator* GetIterator(); 87 CPDF_VariableText::Iterator* GetIterator();
88 88
89 // CPDF_EditContainer. 89 // CPDF_EditContainer.
90 void SetPlateRect(const CFX_FloatRect& rect) override { 90 void SetPlateRect(const CFX_FloatRect& rect) override {
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 int32_t m_nHorzScale; 245 int32_t m_nHorzScale;
246 uint16_t m_wSubWord; 246 uint16_t m_wSubWord;
247 FX_FLOAT m_fFontSize; 247 FX_FLOAT m_fFontSize;
248 FX_BOOL m_bInitial; 248 FX_BOOL m_bInitial;
249 FX_BOOL m_bRichText; 249 FX_BOOL m_bRichText;
250 CPDF_VariableText::Provider* m_pVTProvider; 250 CPDF_VariableText::Provider* m_pVTProvider;
251 std::unique_ptr<CPDF_VariableText::Iterator> m_pVTIterator; 251 std::unique_ptr<CPDF_VariableText::Iterator> m_pVTIterator;
252 }; 252 };
253 253
254 #endif // CORE_FPDFDOC_INCLUDE_CPDF_VARIABLETEXT_H_ 254 #endif // CORE_FPDFDOC_INCLUDE_CPDF_VARIABLETEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698