diff options
author | Lei Zhang <thestig@chromium.org> | 2017-07-07 16:10:06 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-07-10 13:23:13 +0000 |
commit | 4183f201c5155717762df48e5d68330b754070f3 (patch) | |
tree | 49a3ce27be46ee5898c94e91034bcbe560e18caa /fpdfsdk/pdfwindow | |
parent | b46ce4172ee8282a39997c175dff2bd8f187208f (diff) | |
download | pdfium-4183f201c5155717762df48e5d68330b754070f3.tar.xz |
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 <dsinclair@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/pdfwindow')
-rw-r--r-- | fpdfsdk/pdfwindow/cpwl_wnd.h | 3 |
1 files changed, 2 insertions, 1 deletions
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<IPWL_Provider> { class IPWL_FocusHandler { public: virtual ~IPWL_FocusHandler() {} - virtual void OnSetFocus(CPWL_Wnd* pWnd) = 0; + virtual void OnSetFocus(CPWL_Edit* pEdit) = 0; }; struct PWL_CREATEPARAM { |