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

Side by Side Diff: xfa/fwl/core/ifwl_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 | « xfa/fwl/core/ifwl_listbox.cpp ('k') | xfa/fwl/core/ifwl_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_IFWL_WIDGET_H_ 7 #ifndef XFA_FWL_CORE_IFWL_WIDGET_H_
8 #define XFA_FWL_CORE_IFWL_WIDGET_H_ 8 #define XFA_FWL_CORE_IFWL_WIDGET_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 virtual FWL_Error TransformTo(IFWL_Widget* pWidget, CFX_RectF& rt); 106 virtual FWL_Error TransformTo(IFWL_Widget* pWidget, CFX_RectF& rt);
107 107
108 virtual FWL_Error GetMatrix(CFX_Matrix& matrix, FX_BOOL bGlobal = FALSE); 108 virtual FWL_Error GetMatrix(CFX_Matrix& matrix, FX_BOOL bGlobal = FALSE);
109 virtual FWL_Error SetMatrix(const CFX_Matrix& matrix); 109 virtual FWL_Error SetMatrix(const CFX_Matrix& matrix);
110 110
111 virtual FWL_Error DrawWidget(CFX_Graphics* pGraphics, 111 virtual FWL_Error DrawWidget(CFX_Graphics* pGraphics,
112 const CFX_Matrix* pMatrix = nullptr); 112 const CFX_Matrix* pMatrix = nullptr);
113 113
114 virtual IFWL_ThemeProvider* GetThemeProvider(); 114 virtual IFWL_ThemeProvider* GetThemeProvider();
115 virtual FWL_Error SetThemeProvider(IFWL_ThemeProvider* pThemeProvider); 115 virtual FWL_Error SetThemeProvider(IFWL_ThemeProvider* pThemeProvider);
116 virtual IFWL_WidgetDelegate* SetDelegate(IFWL_WidgetDelegate* pDelegate); 116
117 IFWL_WidgetDelegate* GetCurrentDelegate();
118 void SetCurrentDelegate(IFWL_WidgetDelegate* pDelegate);
117 119
118 const IFWL_App* GetOwnerApp() const; 120 const IFWL_App* GetOwnerApp() const;
119 121
120 CFX_SizeF GetOffsetFromParent(IFWL_Widget* pParent); 122 CFX_SizeF GetOffsetFromParent(IFWL_Widget* pParent);
121 123
122 uint32_t GetEventKey() const; 124 uint32_t GetEventKey() const;
123 void SetEventKey(uint32_t key); 125 void SetEventKey(uint32_t key);
124 126
125 void* GetLayoutItem() const; 127 void* GetLayoutItem() const;
126 void SetLayoutItem(void* pItem); 128 void SetLayoutItem(void* pItem);
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 public: 219 public:
218 CFWL_WidgetImpDelegate(); 220 CFWL_WidgetImpDelegate();
219 ~CFWL_WidgetImpDelegate() override {} 221 ~CFWL_WidgetImpDelegate() override {}
220 void OnProcessMessage(CFWL_Message* pMessage) override; 222 void OnProcessMessage(CFWL_Message* pMessage) override;
221 void OnProcessEvent(CFWL_Event* pEvent) override; 223 void OnProcessEvent(CFWL_Event* pEvent) override;
222 void OnDrawWidget(CFX_Graphics* pGraphics, 224 void OnDrawWidget(CFX_Graphics* pGraphics,
223 const CFX_Matrix* pMatrix = nullptr) override; 225 const CFX_Matrix* pMatrix = nullptr) override;
224 }; 226 };
225 227
226 #endif // XFA_FWL_CORE_IFWL_WIDGET_H_ 228 #endif // XFA_FWL_CORE_IFWL_WIDGET_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_listbox.cpp ('k') | xfa/fwl/core/ifwl_widget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698