From 4183f201c5155717762df48e5d68330b754070f3 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Fri, 7 Jul 2017 16:10:06 -0700 Subject: Change parameter type to IPWL_FocusHandler::OnSetFocus(). The parameter is a CPWL_Wnd* but the only caller passes in a CPWL_Edit*, so change it to CPWL_Edit* and remove the type checks / casting. Change-Id: Ic2c85427bea5bf3d257b63c1e2ce9db5bee22136 Reviewed-on: https://pdfium-review.googlesource.com/7430 Commit-Queue: dsinclair Reviewed-by: dsinclair --- fpdfsdk/pdfwindow/cpwl_wnd.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'fpdfsdk/pdfwindow') diff --git a/fpdfsdk/pdfwindow/cpwl_wnd.h b/fpdfsdk/pdfwindow/cpwl_wnd.h index a3c4cbbb42..2689a10393 100644 --- a/fpdfsdk/pdfwindow/cpwl_wnd.h +++ b/fpdfsdk/pdfwindow/cpwl_wnd.h @@ -19,6 +19,7 @@ #include "fpdfsdk/pdfwindow/cpwl_timer.h" #include "fpdfsdk/pdfwindow/cpwl_timer_handler.h" +class CPWL_Edit; class CPWL_MsgControl; class CPWL_ScrollBar; class CPWL_Wnd; @@ -114,7 +115,7 @@ class IPWL_Provider : public CFX_Observable { class IPWL_FocusHandler { public: virtual ~IPWL_FocusHandler() {} - virtual void OnSetFocus(CPWL_Wnd* pWnd) = 0; + virtual void OnSetFocus(CPWL_Edit* pEdit) = 0; }; struct PWL_CREATEPARAM { -- cgit v1.2.3