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

Side by Side Diff: core/fpdfdoc/cpdf_defaultappearance.h

Issue 2477443002: Remove FX_BOOL from core (Closed)
Patch Set: Created 4 years, 1 month 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/fpdfdoc/cpdf_annotlist.cpp ('k') | core/fpdfdoc/cpdf_defaultappearance.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 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_CPDF_DEFAULTAPPEARANCE_H_ 7 #ifndef CORE_FPDFDOC_CPDF_DEFAULTAPPEARANCE_H_
8 #define CORE_FPDFDOC_CPDF_DEFAULTAPPEARANCE_H_ 8 #define CORE_FPDFDOC_CPDF_DEFAULTAPPEARANCE_H_
9 9
10 #include "core/fpdfdoc/cpdf_defaultappearance.h" 10 #include "core/fpdfdoc/cpdf_defaultappearance.h"
11 #include "core/fxcrt/fx_coordinates.h" 11 #include "core/fxcrt/fx_coordinates.h"
12 #include "core/fxcrt/fx_string.h" 12 #include "core/fxcrt/fx_string.h"
13 #include "core/fxcrt/fx_system.h" 13 #include "core/fxcrt/fx_system.h"
14 #include "core/fxge/fx_dib.h" 14 #include "core/fxge/fx_dib.h"
15 15
16 enum class BorderStyle { SOLID, DASH, BEVELED, INSET, UNDERLINE }; 16 enum class BorderStyle { SOLID, DASH, BEVELED, INSET, UNDERLINE };
17 enum class PaintOperation { STROKE, FILL }; 17 enum class PaintOperation { STROKE, FILL };
18 18
19 class CPDF_DefaultAppearance { 19 class CPDF_DefaultAppearance {
20 public: 20 public:
21 CPDF_DefaultAppearance() {} 21 CPDF_DefaultAppearance() {}
22 explicit CPDF_DefaultAppearance(const CFX_ByteString& csDA) : m_csDA(csDA) {} 22 explicit CPDF_DefaultAppearance(const CFX_ByteString& csDA) : m_csDA(csDA) {}
23 23
24 CPDF_DefaultAppearance(const CPDF_DefaultAppearance& cDA) { 24 CPDF_DefaultAppearance(const CPDF_DefaultAppearance& cDA) {
25 m_csDA = cDA.GetStr(); 25 m_csDA = cDA.GetStr();
26 } 26 }
27 27
28 CFX_ByteString GetStr() const { return m_csDA; } 28 CFX_ByteString GetStr() const { return m_csDA; }
29 29
30 FX_BOOL HasFont(); 30 bool HasFont();
31 CFX_ByteString GetFontString(); 31 CFX_ByteString GetFontString();
32 void GetFont(CFX_ByteString& csFontNameTag, FX_FLOAT& fFontSize); 32 void GetFont(CFX_ByteString& csFontNameTag, FX_FLOAT& fFontSize);
33 33
34 FX_BOOL HasColor(PaintOperation nOperation = PaintOperation::FILL); 34 bool HasColor(PaintOperation nOperation = PaintOperation::FILL);
35 CFX_ByteString GetColorString( 35 CFX_ByteString GetColorString(
36 PaintOperation nOperation = PaintOperation::FILL); 36 PaintOperation nOperation = PaintOperation::FILL);
37 void GetColor(int& iColorType, 37 void GetColor(int& iColorType,
38 FX_FLOAT fc[4], 38 FX_FLOAT fc[4],
39 PaintOperation nOperation = PaintOperation::FILL); 39 PaintOperation nOperation = PaintOperation::FILL);
40 void GetColor(FX_ARGB& color, 40 void GetColor(FX_ARGB& color,
41 int& iColorType, 41 int& iColorType,
42 PaintOperation nOperation = PaintOperation::FILL); 42 PaintOperation nOperation = PaintOperation::FILL);
43 43
44 FX_BOOL HasTextMatrix(); 44 bool HasTextMatrix();
45 CFX_ByteString GetTextMatrixString(); 45 CFX_ByteString GetTextMatrixString();
46 CFX_Matrix GetTextMatrix(); 46 CFX_Matrix GetTextMatrix();
47 47
48 private: 48 private:
49 CFX_ByteString m_csDA; 49 CFX_ByteString m_csDA;
50 }; 50 };
51 51
52 #endif // CORE_FPDFDOC_CPDF_DEFAULTAPPEARANCE_H_ 52 #endif // CORE_FPDFDOC_CPDF_DEFAULTAPPEARANCE_H_
OLDNEW
« no previous file with comments | « core/fpdfdoc/cpdf_annotlist.cpp ('k') | core/fpdfdoc/cpdf_defaultappearance.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698