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

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

Issue 2530993002: Cleanup FWL Event and Message code. (Closed)
Patch Set: Review feedback Created 4 years 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_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 #include <memory> 9 #include <memory>
10 10
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 uint32_t dwTTOStyles, 133 uint32_t dwTTOStyles,
134 int32_t iTTOAlign, 134 int32_t iTTOAlign,
135 CFX_RectF& rect); 135 CFX_RectF& rect);
136 void SetGrab(bool bSet); 136 void SetGrab(bool bSet);
137 void GetPopupPos(FX_FLOAT fMinHeight, 137 void GetPopupPos(FX_FLOAT fMinHeight,
138 FX_FLOAT fMaxHeight, 138 FX_FLOAT fMaxHeight,
139 const CFX_RectF& rtAnchor, 139 const CFX_RectF& rtAnchor,
140 CFX_RectF& rtPopup); 140 CFX_RectF& rtPopup);
141 void RegisterEventTarget(CFWL_Widget* pEventSource); 141 void RegisterEventTarget(CFWL_Widget* pEventSource);
142 void UnregisterEventTarget(); 142 void UnregisterEventTarget();
143 void DispatchKeyEvent(CFWL_MsgKey* pNote);
144 void DispatchEvent(CFWL_Event* pEvent); 143 void DispatchEvent(CFWL_Event* pEvent);
145 void DrawBorder(CFX_Graphics* pGraphics, 144 void DrawBorder(CFX_Graphics* pGraphics,
146 CFWL_Part iPartBorder, 145 CFWL_Part iPartBorder,
147 IFWL_ThemeProvider* pTheme, 146 IFWL_ThemeProvider* pTheme,
148 const CFX_Matrix* pMatrix = nullptr); 147 const CFX_Matrix* pMatrix = nullptr);
149 void DrawEdge(CFX_Graphics* pGraphics, 148 void DrawEdge(CFX_Graphics* pGraphics,
150 CFWL_Part iPartEdge, 149 CFWL_Part iPartEdge,
151 IFWL_ThemeProvider* pTheme, 150 IFWL_ThemeProvider* pTheme,
152 const CFX_Matrix* pMatrix = nullptr); 151 const CFX_Matrix* pMatrix = nullptr);
153 152
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 const CFX_Matrix* pMatrix = nullptr); 185 const CFX_Matrix* pMatrix = nullptr);
187 void NotifyDriver(); 186 void NotifyDriver();
188 bool IsParent(CFWL_Widget* pParent); 187 bool IsParent(CFWL_Widget* pParent);
189 188
190 void* m_pLayoutItem; 189 void* m_pLayoutItem;
191 uint32_t m_nEventKey; 190 uint32_t m_nEventKey;
192 IFWL_WidgetDelegate* m_pDelegate; // Not owned. 191 IFWL_WidgetDelegate* m_pDelegate; // Not owned.
193 }; 192 };
194 193
195 #endif // XFA_FWL_CORE_CFWL_WIDGET_H_ 194 #endif // XFA_FWL_CORE_CFWL_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698