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

Side by Side Diff: xfa/fxfa/include/fxfa_widget.h

Issue 2089443002: Convert XFA_ELEMENT to an enum class (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: More unknown checks Created 4 years, 6 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 | « xfa/fxfa/include/fxfa_basic.h ('k') | xfa/fxfa/include/xfa_ffwidget.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 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 XFA_FXFA_INCLUDE_FXFA_WIDGET_H_ 7 #ifndef XFA_FXFA_INCLUDE_FXFA_WIDGET_H_
8 #define XFA_FXFA_INCLUDE_FXFA_WIDGET_H_ 8 #define XFA_FXFA_INCLUDE_FXFA_WIDGET_H_
9 9
10 #include "core/fxcrt/include/fx_coordinates.h" 10 #include "core/fxcrt/include/fx_coordinates.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 FX_BOOL CalculateCheckButtonAutoSize(CFX_SizeF& size); 102 FX_BOOL CalculateCheckButtonAutoSize(CFX_SizeF& size);
103 FX_BOOL CalculatePushButtonAutoSize(CFX_SizeF& size); 103 FX_BOOL CalculatePushButtonAutoSize(CFX_SizeF& size);
104 FX_BOOL CalculateImageEditAutoSize(CFX_SizeF& size); 104 FX_BOOL CalculateImageEditAutoSize(CFX_SizeF& size);
105 FX_BOOL CalculateImageAutoSize(CFX_SizeF& size); 105 FX_BOOL CalculateImageAutoSize(CFX_SizeF& size);
106 FX_BOOL CalculateTextAutoSize(CFX_SizeF& size); 106 FX_BOOL CalculateTextAutoSize(CFX_SizeF& size);
107 FX_FLOAT CalculateWidgetAutoHeight(FX_FLOAT fHeightCalc); 107 FX_FLOAT CalculateWidgetAutoHeight(FX_FLOAT fHeightCalc);
108 FX_FLOAT CalculateWidgetAutoWidth(FX_FLOAT fWidthCalc); 108 FX_FLOAT CalculateWidgetAutoWidth(FX_FLOAT fWidthCalc);
109 FX_FLOAT GetWidthWithoutMargin(FX_FLOAT fWidthCalc); 109 FX_FLOAT GetWidthWithoutMargin(FX_FLOAT fWidthCalc);
110 FX_FLOAT GetHeightWithoutMargin(FX_FLOAT fHeightCalc); 110 FX_FLOAT GetHeightWithoutMargin(FX_FLOAT fHeightCalc);
111 void CalculateTextContentSize(CFX_SizeF& size); 111 void CalculateTextContentSize(CFX_SizeF& size);
112 void CalculateAccWidthAndHeight(XFA_ELEMENT eUIType, 112 void CalculateAccWidthAndHeight(XFA_Element eUIType,
113 FX_FLOAT& fWidth, 113 FX_FLOAT& fWidth,
114 FX_FLOAT& fCalcHeight); 114 FX_FLOAT& fCalcHeight);
115 void InitLayoutData(); 115 void InitLayoutData();
116 void StartTextLayout(FX_FLOAT& fCalcWidth, FX_FLOAT& fCalcHeight); 116 void StartTextLayout(FX_FLOAT& fCalcWidth, FX_FLOAT& fCalcHeight);
117 117
118 CXFA_FFDocView* m_pDocView; 118 CXFA_FFDocView* m_pDocView;
119 std::unique_ptr<CXFA_WidgetLayoutData> m_pLayoutData; 119 std::unique_ptr<CXFA_WidgetLayoutData> m_pLayoutData;
120 uint32_t m_nRecursionDepth; 120 uint32_t m_nRecursionDepth;
121 }; 121 };
122 122
123 #endif // XFA_FXFA_INCLUDE_FXFA_WIDGET_H_ 123 #endif // XFA_FXFA_INCLUDE_FXFA_WIDGET_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/include/fxfa_basic.h ('k') | xfa/fxfa/include/xfa_ffwidget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698