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

Side by Side Diff: core/fxcrt/fx_ucd.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/fxcrt/fx_stream.h ('k') | core/fxcrt/fx_unicode.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 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 CORE_FXCRT_FX_UCD_H_ 7 #ifndef CORE_FXCRT_FX_UCD_H_
8 #define CORE_FXCRT_FX_UCD_H_ 8 #define CORE_FXCRT_FX_UCD_H_
9 9
10 #include "core/fxcrt/fx_basic.h" 10 #include "core/fxcrt/fx_basic.h"
(...skipping 27 matching lines...) Expand all
38 extern const uint32_t kTextLayoutCodeProperties[]; 38 extern const uint32_t kTextLayoutCodeProperties[];
39 extern const size_t kTextLayoutCodePropertiesSize; 39 extern const size_t kTextLayoutCodePropertiesSize;
40 40
41 extern const uint16_t kFXTextLayoutVerticalMirror[]; 41 extern const uint16_t kFXTextLayoutVerticalMirror[];
42 extern const size_t kFXTextLayoutVerticalMirrorSize; 42 extern const size_t kFXTextLayoutVerticalMirrorSize;
43 43
44 extern const uint16_t kFXTextLayoutBidiMirror[]; 44 extern const uint16_t kFXTextLayoutBidiMirror[];
45 extern const size_t kFXTextLayoutBidiMirrorSize; 45 extern const size_t kFXTextLayoutBidiMirrorSize;
46 46
47 uint32_t FX_GetUnicodeProperties(FX_WCHAR wch); 47 uint32_t FX_GetUnicodeProperties(FX_WCHAR wch);
48 FX_WCHAR FX_GetMirrorChar(FX_WCHAR wch, FX_BOOL bRTL, FX_BOOL bVertical); 48 FX_WCHAR FX_GetMirrorChar(FX_WCHAR wch, bool bRTL, bool bVertical);
49 49
50 #ifdef PDF_ENABLE_XFA 50 #ifdef PDF_ENABLE_XFA
51 enum FX_CHARBREAKPROP { 51 enum FX_CHARBREAKPROP {
52 FX_CBP_OP = 0, 52 FX_CBP_OP = 0,
53 FX_CBP_CL = 1, 53 FX_CBP_CL = 1,
54 FX_CBP_QU = 2, 54 FX_CBP_QU = 2,
55 FX_CBP_GL = 3, 55 FX_CBP_GL = 3,
56 FX_CBP_NS = 4, 56 FX_CBP_NS = 4,
57 FX_CBP_EX = 5, 57 FX_CBP_EX = 5,
58 FX_CBP_SY = 6, 58 FX_CBP_SY = 6,
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 FX_CHARTYPE_ArabicSpecial = (8 << FX_CHARTYPEBITS), 104 FX_CHARTYPE_ArabicSpecial = (8 << FX_CHARTYPEBITS),
105 FX_CHARTYPE_ArabicDistortion = (9 << FX_CHARTYPEBITS), 105 FX_CHARTYPE_ArabicDistortion = (9 << FX_CHARTYPEBITS),
106 FX_CHARTYPE_ArabicNormal = (10 << FX_CHARTYPEBITS), 106 FX_CHARTYPE_ArabicNormal = (10 << FX_CHARTYPEBITS),
107 FX_CHARTYPE_ArabicForm = (11 << FX_CHARTYPEBITS), 107 FX_CHARTYPE_ArabicForm = (11 << FX_CHARTYPEBITS),
108 FX_CHARTYPE_Arabic = (12 << FX_CHARTYPEBITS), 108 FX_CHARTYPE_Arabic = (12 << FX_CHARTYPEBITS),
109 }; 109 };
110 inline FX_CHARTYPE GetCharTypeFromProp(uint32_t prop) { 110 inline FX_CHARTYPE GetCharTypeFromProp(uint32_t prop) {
111 return static_cast<FX_CHARTYPE>(prop & FX_CHARTYPEBITSMASK); 111 return static_cast<FX_CHARTYPE>(prop & FX_CHARTYPEBITSMASK);
112 } 112 }
113 113
114 FX_BOOL FX_IsCtrlCode(FX_WCHAR ch); 114 bool FX_IsCtrlCode(FX_WCHAR ch);
115 FX_WCHAR FX_GetMirrorChar(FX_WCHAR wch, 115 FX_WCHAR FX_GetMirrorChar(FX_WCHAR wch,
116 uint32_t dwProps, 116 uint32_t dwProps,
117 FX_BOOL bRTL, 117 bool bRTL,
118 FX_BOOL bVertical); 118 bool bVertical);
119 class CFX_Char { 119 class CFX_Char {
120 public: 120 public:
121 CFX_Char() 121 CFX_Char()
122 : m_wCharCode(0), 122 : m_wCharCode(0),
123 m_nBreakType(0), 123 m_nBreakType(0),
124 m_nRotation(0), 124 m_nRotation(0),
125 m_dwCharProps(0), 125 m_dwCharProps(0),
126 m_dwCharStyles(0), 126 m_dwCharStyles(0),
127 m_iCharWidth(0), 127 m_iCharWidth(0),
128 m_iHorizontalScale(100), 128 m_iHorizontalScale(100),
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 m_dwLayoutStyles(0), 193 m_dwLayoutStyles(0),
194 m_dwIdentity(0), 194 m_dwIdentity(0),
195 m_pUserData(nullptr) {} 195 m_pUserData(nullptr) {}
196 196
197 inline CFX_RTFChar::CFX_RTFChar(const CFX_RTFChar& other) = default; 197 inline CFX_RTFChar::CFX_RTFChar(const CFX_RTFChar& other) = default;
198 198
199 typedef CFX_ArrayTemplate<CFX_RTFChar> CFX_RTFCharArray; 199 typedef CFX_ArrayTemplate<CFX_RTFChar> CFX_RTFCharArray;
200 #endif // PDF_ENABLE_XFA 200 #endif // PDF_ENABLE_XFA
201 201
202 #endif // CORE_FXCRT_FX_UCD_H_ 202 #endif // CORE_FXCRT_FX_UCD_H_
OLDNEW
« no previous file with comments | « core/fxcrt/fx_stream.h ('k') | core/fxcrt/fx_unicode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698