From 919c0842b74d382e7ae60c85ff16642b646afbb9 Mon Sep 17 00:00:00 2001 From: dsinclair Date: Wed, 7 Dec 2016 17:12:59 -0800 Subject: Cleanup caret show/hide code This CL splits the cursor code into specific show/hide methods to make it clearer what is happening at each point. Review-Url: https://codereview.chromium.org/2535623002 --- xfa/fwl/core/cfwl_caret.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xfa/fwl/core/cfwl_caret.h') diff --git a/xfa/fwl/core/cfwl_caret.h b/xfa/fwl/core/cfwl_caret.h index ad38f7a3ed..ada0405748 100644 --- a/xfa/fwl/core/cfwl_caret.h +++ b/xfa/fwl/core/cfwl_caret.h @@ -34,7 +34,8 @@ class CFWL_Caret : public CFWL_Widget { const CFX_Matrix* pMatrix) override; void Update() override; - void ShowCaret(bool bFlag = true); + void ShowCaret(); + void HideCaret(); private: class Timer : public CFWL_Timer { -- cgit v1.2.3