Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: xfa/fwl/basewidget/fwl_tooltipctrlimp.h

Issue 2207093005: Use smart pointers for class owned pointers (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: small fix Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef XFA_FWL_BASEWIDGET_FWL_TOOLTIPCTRLIMP_H_ 7 #ifndef XFA_FWL_BASEWIDGET_FWL_TOOLTIPCTRLIMP_H_
8 #define XFA_FWL_BASEWIDGET_FWL_TOOLTIPCTRLIMP_H_ 8 #define XFA_FWL_BASEWIDGET_FWL_TOOLTIPCTRLIMP_H_
9 9
10 #include "xfa/fwl/core/fwl_formimp.h" 10 #include "xfa/fwl/core/fwl_formimp.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 void RefreshToolTipPos(); 62 void RefreshToolTipPos();
63 63
64 CFX_RectF m_rtClient; 64 CFX_RectF m_rtClient;
65 CFX_RectF m_rtCaption; 65 CFX_RectF m_rtCaption;
66 FX_BOOL m_bBtnDown; 66 FX_BOOL m_bBtnDown;
67 uint32_t m_dwTTOStyles; 67 uint32_t m_dwTTOStyles;
68 int32_t m_iTTOAlign; 68 int32_t m_iTTOAlign;
69 CFX_RectF m_rtAnchor; 69 CFX_RectF m_rtAnchor;
70 IFWL_TimerInfo* m_pTimerInfoShow; 70 IFWL_TimerInfo* m_pTimerInfoShow;
71 IFWL_TimerInfo* m_pTimerInfoHide; 71 IFWL_TimerInfo* m_pTimerInfoHide;
72 CFWL_ToolTipTimer* m_pTimer;
73 CFWL_ToolTipTimer m_TimerShow; 72 CFWL_ToolTipTimer m_TimerShow;
74 CFWL_ToolTipTimer m_TimerHide; 73 CFWL_ToolTipTimer m_TimerHide;
75 }; 74 };
76 75
77 class CFWL_ToolTipImpDelegate : public CFWL_WidgetImpDelegate { 76 class CFWL_ToolTipImpDelegate : public CFWL_WidgetImpDelegate {
78 public: 77 public:
79 CFWL_ToolTipImpDelegate(CFWL_ToolTipImp* pOwner); 78 CFWL_ToolTipImpDelegate(CFWL_ToolTipImp* pOwner);
80 void OnProcessMessage(CFWL_Message* pMessage) override; 79 void OnProcessMessage(CFWL_Message* pMessage) override;
81 void OnProcessEvent(CFWL_Event* pEvent) override; 80 void OnProcessEvent(CFWL_Event* pEvent) override;
82 void OnDrawWidget(CFX_Graphics* pGraphics, 81 void OnDrawWidget(CFX_Graphics* pGraphics,
83 const CFX_Matrix* pMatrix = nullptr) override; 82 const CFX_Matrix* pMatrix = nullptr) override;
84 83
85 protected: 84 protected:
86 void OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE); 85 void OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE);
87 void OnLButtonDown(CFWL_MsgMouse* pMsg); 86 void OnLButtonDown(CFWL_MsgMouse* pMsg);
88 void OnLButtonUp(CFWL_MsgMouse* pMsg); 87 void OnLButtonUp(CFWL_MsgMouse* pMsg);
89 void OnMouseMove(CFWL_MsgMouse* pMsg); 88 void OnMouseMove(CFWL_MsgMouse* pMsg);
90 void OnMouseLeave(CFWL_MsgMouse* pMsg); 89 void OnMouseLeave(CFWL_MsgMouse* pMsg);
91 void OnKeyDown(CFWL_MsgKey* pMsg); 90 void OnKeyDown(CFWL_MsgKey* pMsg);
92 CFWL_ToolTipImp* m_pOwner; 91 CFWL_ToolTipImp* m_pOwner;
93 }; 92 };
94 93
95 #endif // XFA_FWL_BASEWIDGET_FWL_TOOLTIPCTRLIMP_H_ 94 #endif // XFA_FWL_BASEWIDGET_FWL_TOOLTIPCTRLIMP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698