diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-08-16 21:22:42 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-08-16 21:22:42 +0000 |
commit | aa5769a417251214d1a8b3ebb5153a9251f50448 (patch) | |
tree | 683409eb8a036de68e0934ef540ee7baf2e41620 /xfa/fxfa/cxfa_ffdatetimeedit.cpp | |
parent | df4e68c5eb293c9929c7d66e59d08afc21b04c86 (diff) | |
download | pdfium-aa5769a417251214d1a8b3ebb5153a9251f50448.tar.xz |
Replace optional bool bDrawFocus with enum type.
Change-Id: Ide4a972337afaf346e46edc4ede48140cd4544c1
Reviewed-on: https://pdfium-review.googlesource.com/40390
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_ffdatetimeedit.cpp')
-rw-r--r-- | xfa/fxfa/cxfa_ffdatetimeedit.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xfa/fxfa/cxfa_ffdatetimeedit.cpp b/xfa/fxfa/cxfa_ffdatetimeedit.cpp index c1bea362b5..35ec007d30 100644 --- a/xfa/fxfa/cxfa_ffdatetimeedit.cpp +++ b/xfa/fxfa/cxfa_ffdatetimeedit.cpp @@ -28,10 +28,10 @@ CFWL_DateTimePicker* CXFA_FFDateTimeEdit::GetPickerWidget() { return static_cast<CFWL_DateTimePicker*>(m_pNormalWidget.get()); } -CFX_RectF CXFA_FFDateTimeEdit::GetBBox(uint32_t dwStatus, bool bDrawFocus) { - if (bDrawFocus) +CFX_RectF CXFA_FFDateTimeEdit::GetBBox(uint32_t dwStatus, FocusOption focus) { + if (focus == kDrawFocus) return CFX_RectF(); - return CXFA_FFWidget::GetBBox(dwStatus); + return CXFA_FFWidget::GetBBox(dwStatus, kDoNotDrawFocus); } bool CXFA_FFDateTimeEdit::PtInActiveRect(const CFX_PointF& point) { |