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

Side by Side Diff: xfa/fwl/core/ifwl_tooltip.h

Issue 2464703006: Fold IFWL*::{Initialize|Finalize} into constructor/destructor (Closed)
Patch Set: Rebase to master Created 4 years, 1 month 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
« no previous file with comments | « xfa/fwl/core/ifwl_spinbutton.cpp ('k') | xfa/fwl/core/ifwl_tooltip.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_CORE_IFWL_TOOLTIP_H_ 7 #ifndef XFA_FWL_CORE_IFWL_TOOLTIP_H_
8 #define XFA_FWL_CORE_IFWL_TOOLTIP_H_ 8 #define XFA_FWL_CORE_IFWL_TOOLTIP_H_
9 9
10 #include "xfa/fwl/core/ifwl_form.h" 10 #include "xfa/fwl/core/ifwl_form.h"
(...skipping 22 matching lines...) Expand all
33 }; 33 };
34 34
35 class IFWL_ToolTip : public IFWL_Form { 35 class IFWL_ToolTip : public IFWL_Form {
36 public: 36 public:
37 IFWL_ToolTip(const IFWL_App* app, 37 IFWL_ToolTip(const IFWL_App* app,
38 const CFWL_WidgetImpProperties& properties, 38 const CFWL_WidgetImpProperties& properties,
39 IFWL_Widget* pOuter); 39 IFWL_Widget* pOuter);
40 ~IFWL_ToolTip() override; 40 ~IFWL_ToolTip() override;
41 41
42 // IFWL_Widget 42 // IFWL_Widget
43 void Initialize() override;
44 void Finalize() override;
45 FWL_Type GetClassID() const override; 43 FWL_Type GetClassID() const override;
46 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; 44 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override;
47 FWL_Error Update() override; 45 FWL_Error Update() override;
48 FWL_Error DrawWidget(CFX_Graphics* pGraphics, 46 FWL_Error DrawWidget(CFX_Graphics* pGraphics,
49 const CFX_Matrix* pMatrix = nullptr) override; 47 const CFX_Matrix* pMatrix = nullptr) override;
50 void SetStates(uint32_t dwStates, FX_BOOL bSet) override; 48 void SetStates(uint32_t dwStates, FX_BOOL bSet) override;
51 FWL_Error GetClientRect(CFX_RectF& rect) override; 49 FWL_Error GetClientRect(CFX_RectF& rect) override;
52 50
53 void SetAnchor(const CFX_RectF& rtAnchor); 51 void SetAnchor(const CFX_RectF& rtAnchor);
54 void Show(); 52 void Show();
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 void OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE); 97 void OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE);
100 void OnLButtonDown(CFWL_MsgMouse* pMsg); 98 void OnLButtonDown(CFWL_MsgMouse* pMsg);
101 void OnLButtonUp(CFWL_MsgMouse* pMsg); 99 void OnLButtonUp(CFWL_MsgMouse* pMsg);
102 void OnMouseMove(CFWL_MsgMouse* pMsg); 100 void OnMouseMove(CFWL_MsgMouse* pMsg);
103 void OnMouseLeave(CFWL_MsgMouse* pMsg); 101 void OnMouseLeave(CFWL_MsgMouse* pMsg);
104 void OnKeyDown(CFWL_MsgKey* pMsg); 102 void OnKeyDown(CFWL_MsgKey* pMsg);
105 IFWL_ToolTip* m_pOwner; 103 IFWL_ToolTip* m_pOwner;
106 }; 104 };
107 105
108 #endif // XFA_FWL_CORE_IFWL_TOOLTIP_H_ 106 #endif // XFA_FWL_CORE_IFWL_TOOLTIP_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_spinbutton.cpp ('k') | xfa/fwl/core/ifwl_tooltip.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698