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

Side by Side Diff: core/fpdfapi/page/cpdf_textstate.h

Issue 2426673002: Rename CFX_CountRef to CFX_SharedCopyOnWrite (Closed)
Patch Set: fix filenames Created 4 years, 2 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 | « core/fpdfapi/page/cpdf_path.h ('k') | core/fxcrt/cfx_count_ref.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 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_FPDFAPI_PAGE_CPDF_TEXTSTATE_H_ 7 #ifndef CORE_FPDFAPI_PAGE_CPDF_TEXTSTATE_H_
8 #define CORE_FPDFAPI_PAGE_CPDF_TEXTSTATE_H_ 8 #define CORE_FPDFAPI_PAGE_CPDF_TEXTSTATE_H_
9 9
10 #include "core/fxcrt/cfx_count_ref.h" 10 #include "core/fxcrt/cfx_shared_copy_on_write.h"
11 #include "core/fxcrt/fx_basic.h" 11 #include "core/fxcrt/fx_basic.h"
12 12
13 class CPDF_Document; 13 class CPDF_Document;
14 class CPDF_Font; 14 class CPDF_Font;
15 15
16 // See PDF Reference 1.7, page 402, table 5.3. 16 // See PDF Reference 1.7, page 402, table 5.3.
17 enum class TextRenderingMode { 17 enum class TextRenderingMode {
18 MODE_FILL = 0, 18 MODE_FILL = 0,
19 MODE_STROKE = 1, 19 MODE_STROKE = 1,
20 MODE_FILL_STROKE = 2, 20 MODE_FILL_STROKE = 2,
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 CPDF_Font* m_pFont; 74 CPDF_Font* m_pFont;
75 CPDF_Document* m_pDocument; 75 CPDF_Document* m_pDocument;
76 FX_FLOAT m_FontSize; 76 FX_FLOAT m_FontSize;
77 FX_FLOAT m_CharSpace; 77 FX_FLOAT m_CharSpace;
78 FX_FLOAT m_WordSpace; 78 FX_FLOAT m_WordSpace;
79 TextRenderingMode m_TextMode; 79 TextRenderingMode m_TextMode;
80 FX_FLOAT m_Matrix[4]; 80 FX_FLOAT m_Matrix[4];
81 FX_FLOAT m_CTM[4]; 81 FX_FLOAT m_CTM[4];
82 }; 82 };
83 83
84 CFX_CountRef<TextData> m_Ref; 84 CFX_SharedCopyOnWrite<TextData> m_Ref;
85 }; 85 };
86 86
87 bool SetTextRenderingModeFromInt(int iMode, TextRenderingMode* mode); 87 bool SetTextRenderingModeFromInt(int iMode, TextRenderingMode* mode);
88 bool TextRenderingModeIsClipMode(const TextRenderingMode& mode); 88 bool TextRenderingModeIsClipMode(const TextRenderingMode& mode);
89 bool TextRenderingModeIsStrokeMode(const TextRenderingMode& mode); 89 bool TextRenderingModeIsStrokeMode(const TextRenderingMode& mode);
90 90
91 #endif // CORE_FPDFAPI_PAGE_CPDF_TEXTSTATE_H_ 91 #endif // CORE_FPDFAPI_PAGE_CPDF_TEXTSTATE_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/page/cpdf_path.h ('k') | core/fxcrt/cfx_count_ref.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698