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

Side by Side Diff: xfa/fxfa/parser/cxfa_data.h

Issue 2467203003: Remove FX_BOOL from xfa. (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 | « xfa/fxfa/parser/cxfa_contentlayoutitem.cpp ('k') | xfa/fxfa/parser/cxfa_data.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 XFA_FXFA_PARSER_CXFA_DATA_H_ 7 #ifndef XFA_FXFA_PARSER_CXFA_DATA_H_
8 #define XFA_FXFA_PARSER_CXFA_DATA_H_ 8 #define XFA_FXFA_PARSER_CXFA_DATA_H_
9 9
10 #include "core/fxcrt/fx_system.h" 10 #include "core/fxcrt/fx_system.h"
11 #include "core/fxge/fx_dib.h" 11 #include "core/fxge/fx_dib.h"
12 #include "xfa/fxfa/fxfa_basic.h" 12 #include "xfa/fxfa/fxfa_basic.h"
13 13
14 class CXFA_Node; 14 class CXFA_Node;
15 15
16 class CXFA_Data { 16 class CXFA_Data {
17 public: 17 public:
18 static FX_ARGB ToColor(const CFX_WideStringC& wsValue); 18 static FX_ARGB ToColor(const CFX_WideStringC& wsValue);
19 19
20 explicit CXFA_Data(CXFA_Node* pNode) : m_pNode(pNode) {} 20 explicit CXFA_Data(CXFA_Node* pNode) : m_pNode(pNode) {}
21 21
22 operator bool() const { return !!m_pNode; } 22 operator bool() const { return !!m_pNode; }
23 CXFA_Node* GetNode() const { return m_pNode; } 23 CXFA_Node* GetNode() const { return m_pNode; }
24 XFA_Element GetElementType() const; 24 XFA_Element GetElementType() const;
25 25
26 protected: 26 protected:
27 FX_BOOL TryMeasure(XFA_ATTRIBUTE eAttr, 27 bool TryMeasure(XFA_ATTRIBUTE eAttr,
28 FX_FLOAT& fValue, 28 FX_FLOAT& fValue,
29 FX_BOOL bUseDefault = FALSE) const; 29 bool bUseDefault = false) const;
30 FX_BOOL SetMeasure(XFA_ATTRIBUTE eAttr, FX_FLOAT fValue); 30 bool SetMeasure(XFA_ATTRIBUTE eAttr, FX_FLOAT fValue);
31 31
32 CXFA_Node* m_pNode; 32 CXFA_Node* m_pNode;
33 }; 33 };
34 34
35 #endif // XFA_FXFA_PARSER_CXFA_DATA_H_ 35 #endif // XFA_FXFA_PARSER_CXFA_DATA_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/parser/cxfa_contentlayoutitem.cpp ('k') | xfa/fxfa/parser/cxfa_data.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698