From 6dc4fb899acfee6261a44cde8015b5c8f3eb75a3 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Tue, 17 Oct 2017 09:08:26 -0400 Subject: Remove friends from PWL classes This CL removes the friend entries from the various pwl/ classes. Change-Id: Ib93a2bedcde521eb92e53580b5d7cd9bca08902f Reviewed-on: https://pdfium-review.googlesource.com/16150 Reviewed-by: Ryan Harrison Commit-Queue: dsinclair --- fpdfsdk/pwl/cpwl_wnd.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'fpdfsdk/pwl/cpwl_wnd.h') diff --git a/fpdfsdk/pwl/cpwl_wnd.h b/fpdfsdk/pwl/cpwl_wnd.h index a9a434dbd1..ba52420ade 100644 --- a/fpdfsdk/pwl/cpwl_wnd.h +++ b/fpdfsdk/pwl/cpwl_wnd.h @@ -249,9 +249,10 @@ class CPWL_Wnd : public CPWL_TimerHandler, public Observable { void SetChildMatrix(const CFX_Matrix& mt); CFX_Matrix GetWindowMatrix() const; - protected: - friend class CPWL_MsgControl; + virtual void OnSetFocus(); + virtual void OnKillFocus(); + protected: // CPWL_TimerHandler CFX_SystemHandler* GetSystemHandler() const override; @@ -267,9 +268,6 @@ class CPWL_Wnd : public CPWL_TimerHandler, public Observable { virtual void OnCreated(); virtual void OnDestroy(); - virtual void OnSetFocus(); - virtual void OnKillFocus(); - void SetNotifyFlag(bool bNotifying = true) { m_bNotifying = bNotifying; } bool IsNotifying() const { return m_bNotifying; } bool IsValid() const { return m_bCreated; } -- cgit v1.2.3