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

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

Issue 2012143003: Remove one (of several) usages of SetPrivateData from IFWL_Widget (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Remove casts Created 4 years, 7 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
« no previous file with comments | « xfa/fwl/core/fwl_noteimp.cpp ('k') | xfa/fwl/core/fwl_widgetimp.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_FWL_WIDGETIMP_H_ 7 #ifndef XFA_FWL_CORE_FWL_WIDGETIMP_H_
8 #define XFA_FWL_CORE_FWL_WIDGETIMP_H_ 8 #define XFA_FWL_CORE_FWL_WIDGETIMP_H_
9 9
10 #include "core/fxcrt/include/fx_coordinates.h" 10 #include "core/fxcrt/include/fx_coordinates.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 virtual FWL_Error TransformTo(IFWL_Widget* pWidget, CFX_RectF& rt); 66 virtual FWL_Error TransformTo(IFWL_Widget* pWidget, CFX_RectF& rt);
67 virtual FWL_Error GetMatrix(CFX_Matrix& matrix, FX_BOOL bGlobal = FALSE); 67 virtual FWL_Error GetMatrix(CFX_Matrix& matrix, FX_BOOL bGlobal = FALSE);
68 virtual FWL_Error SetMatrix(const CFX_Matrix& matrix); 68 virtual FWL_Error SetMatrix(const CFX_Matrix& matrix);
69 virtual FWL_Error DrawWidget(CFX_Graphics* pGraphics, 69 virtual FWL_Error DrawWidget(CFX_Graphics* pGraphics,
70 const CFX_Matrix* pMatrix = NULL); 70 const CFX_Matrix* pMatrix = NULL);
71 virtual IFWL_ThemeProvider* GetThemeProvider(); 71 virtual IFWL_ThemeProvider* GetThemeProvider();
72 virtual FWL_Error SetThemeProvider(IFWL_ThemeProvider* pThemeProvider); 72 virtual FWL_Error SetThemeProvider(IFWL_ThemeProvider* pThemeProvider);
73 virtual FWL_Error SetDataProvider(IFWL_DataProvider* pDataProvider); 73 virtual FWL_Error SetDataProvider(IFWL_DataProvider* pDataProvider);
74 virtual IFWL_WidgetDelegate* SetDelegate(IFWL_WidgetDelegate* pDelegate); 74 virtual IFWL_WidgetDelegate* SetDelegate(IFWL_WidgetDelegate* pDelegate);
75 virtual IFWL_App* GetOwnerApp() const; 75 virtual IFWL_App* GetOwnerApp() const;
76
76 FWL_Error SetOwnerApp(CFWL_AppImp* pOwnerApp); 77 FWL_Error SetOwnerApp(CFWL_AppImp* pOwnerApp);
77 IFWL_Widget* GetInterface() const; 78 IFWL_Widget* GetInterface() const;
78 void SetInterface(IFWL_Widget* pInterface); 79 void SetInterface(IFWL_Widget* pInterface);
79 CFX_SizeF GetOffsetFromParent(IFWL_Widget* pParent); 80 CFX_SizeF GetOffsetFromParent(IFWL_Widget* pParent);
81 uint32_t GetEventKey() const;
82 void SetEventKey(uint32_t key);
80 83
81 protected: 84 protected:
82 friend class CFWL_WidgetImpDelegate; 85 friend class CFWL_WidgetImpDelegate;
83 86
84 CFWL_WidgetImp(const CFWL_WidgetImpProperties& properties, 87 CFWL_WidgetImp(const CFWL_WidgetImpProperties& properties,
85 IFWL_Widget* pOuter); 88 IFWL_Widget* pOuter);
86 89
87 FX_BOOL IsEnabled() const; 90 FX_BOOL IsEnabled() const;
88 FX_BOOL IsVisible() const; 91 FX_BOOL IsVisible() const;
89 FX_BOOL IsActive() const; 92 FX_BOOL IsActive() const;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 156
154 CFWL_WidgetMgr* m_pWidgetMgr; 157 CFWL_WidgetMgr* m_pWidgetMgr;
155 CFWL_AppImp* m_pOwnerApp; 158 CFWL_AppImp* m_pOwnerApp;
156 CFWL_WidgetImpProperties* m_pProperties; 159 CFWL_WidgetImpProperties* m_pProperties;
157 CFX_PrivateData* m_pPrivateData; 160 CFX_PrivateData* m_pPrivateData;
158 IFWL_WidgetDelegate* m_pDelegate; 161 IFWL_WidgetDelegate* m_pDelegate;
159 IFWL_WidgetDelegate* m_pCurDelegate; 162 IFWL_WidgetDelegate* m_pCurDelegate;
160 IFWL_Widget* m_pOuter; 163 IFWL_Widget* m_pOuter;
161 IFWL_Widget* m_pInterface; 164 IFWL_Widget* m_pInterface;
162 int32_t m_iLock; 165 int32_t m_iLock;
166 uint32_t m_nEventKey;
163 }; 167 };
164 168
165 class CFWL_WidgetImpDelegate : public IFWL_WidgetDelegate { 169 class CFWL_WidgetImpDelegate : public IFWL_WidgetDelegate {
166 public: 170 public:
167 CFWL_WidgetImpDelegate(); 171 CFWL_WidgetImpDelegate();
168 ~CFWL_WidgetImpDelegate() override {} 172 ~CFWL_WidgetImpDelegate() override {}
169 void OnProcessMessage(CFWL_Message* pMessage) override; 173 void OnProcessMessage(CFWL_Message* pMessage) override;
170 void OnProcessEvent(CFWL_Event* pEvent) override; 174 void OnProcessEvent(CFWL_Event* pEvent) override;
171 void OnDrawWidget(CFX_Graphics* pGraphics, 175 void OnDrawWidget(CFX_Graphics* pGraphics,
172 const CFX_Matrix* pMatrix = NULL) override; 176 const CFX_Matrix* pMatrix = NULL) override;
173 }; 177 };
174 178
175 #endif // XFA_FWL_CORE_FWL_WIDGETIMP_H_ 179 #endif // XFA_FWL_CORE_FWL_WIDGETIMP_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/fwl_noteimp.cpp ('k') | xfa/fwl/core/fwl_widgetimp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698