summaryrefslogtreecommitdiff
path: root/xfa/fxfa/cxfa_widgetacc.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-11-21 16:32:30 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-21 16:32:30 +0000
commit0d54f09ae49c0cf85de5fe2bd3da885c16523018 (patch)
treea94e3738194f4ba944229a6eef55218c3b35df80 /xfa/fxfa/cxfa_widgetacc.h
parent4debddffd0c4cad48ecf153e2584b311b0a16791 (diff)
downloadpdfium-0d54f09ae49c0cf85de5fe2bd3da885c16523018.tar.xz
Convert CXFA_WidgetData methods to Optional
This CL converts the CXFA_WidgetData size methods to return Optionals instead of boolean with an out parameter. Change-Id: Ibf2fef5a58896abfea9865e086029377c051bdb6 Reviewed-on: https://pdfium-review.googlesource.com/18892 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_widgetacc.h')
-rw-r--r--xfa/fxfa/cxfa_widgetacc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/xfa/fxfa/cxfa_widgetacc.h b/xfa/fxfa/cxfa_widgetacc.h
index 6cb2e7f01d..e12954c19e 100644
--- a/xfa/fxfa/cxfa_widgetacc.h
+++ b/xfa/fxfa/cxfa_widgetacc.h
@@ -103,6 +103,10 @@ class CXFA_WidgetAcc : public CXFA_WidgetData {
bool CalculateTextEditAutoSize(CFX_SizeF& size);
bool CalculateCheckButtonAutoSize(CFX_SizeF& size);
bool CalculatePushButtonAutoSize(CFX_SizeF& size);
+ CFX_SizeF CalculateImageSize(float img_width,
+ float img_height,
+ float dpi_x,
+ float dpi_y);
bool CalculateImageEditAutoSize(CFX_SizeF& size);
bool CalculateImageAutoSize(CFX_SizeF& size);
bool CalculateTextAutoSize(CFX_SizeF& size);