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

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

Issue 2459423003: Rename IFWL_Widget::SetDelegate (Closed)
Patch Set: Review feedback 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 | « no previous file | xfa/fwl/core/cfwl_widget.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_CFWL_WIDGET_H_ 7 #ifndef XFA_FWL_CORE_CFWL_WIDGET_H_
8 #define XFA_FWL_CORE_CFWL_WIDGET_H_ 8 #define XFA_FWL_CORE_CFWL_WIDGET_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 void Update(); 45 void Update();
46 void LockUpdate(); 46 void LockUpdate();
47 void UnlockUpdate(); 47 void UnlockUpdate();
48 48
49 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy); 49 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy);
50 50
51 FWL_Error DrawWidget(CFX_Graphics* pGraphics, 51 FWL_Error DrawWidget(CFX_Graphics* pGraphics,
52 const CFX_Matrix* pMatrix = nullptr); 52 const CFX_Matrix* pMatrix = nullptr);
53 53
54 IFWL_WidgetDelegate* SetDelegate(IFWL_WidgetDelegate* pDelegate); 54 IFWL_WidgetDelegate* GetCurrentDelegate();
55 void SetCurrentDelegate(IFWL_WidgetDelegate*);
55 56
56 protected: 57 protected:
57 void Initialize(); 58 void Initialize();
58 59
59 const IFWL_App* m_pApp; 60 const IFWL_App* m_pApp;
60 std::unique_ptr<IFWL_Widget> m_pIface; 61 std::unique_ptr<IFWL_Widget> m_pIface;
61 IFWL_WidgetDelegate* m_pDelegate;
62 CFWL_WidgetMgr* const m_pWidgetMgr; 62 CFWL_WidgetMgr* const m_pWidgetMgr;
63 std::unique_ptr<CFWL_WidgetProperties> m_pProperties; 63 std::unique_ptr<CFWL_WidgetProperties> m_pProperties;
64 }; 64 };
65 65
66 #endif // XFA_FWL_CORE_CFWL_WIDGET_H_ 66 #endif // XFA_FWL_CORE_CFWL_WIDGET_H_
OLDNEW
« no previous file with comments | « no previous file | xfa/fwl/core/cfwl_widget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698