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

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

Issue 2501743002: Cleaning methods and visibility in cfwl_* files. (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/fwl_noteimp.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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 CFX_SizeF CalcTextSize(const CFX_WideString& wsText, 164 CFX_SizeF CalcTextSize(const CFX_WideString& wsText,
165 IFWL_ThemeProvider* pTheme, 165 IFWL_ThemeProvider* pTheme,
166 bool bMultiLine = false, 166 bool bMultiLine = false,
167 int32_t iLineWidth = -1); 167 int32_t iLineWidth = -1);
168 void CalcTextRect(const CFX_WideString& wsText, 168 void CalcTextRect(const CFX_WideString& wsText,
169 IFWL_ThemeProvider* pTheme, 169 IFWL_ThemeProvider* pTheme,
170 uint32_t dwTTOStyles, 170 uint32_t dwTTOStyles,
171 int32_t iTTOAlign, 171 int32_t iTTOAlign,
172 CFX_RectF& rect); 172 CFX_RectF& rect);
173 void SetGrab(bool bSet); 173 void SetGrab(bool bSet);
174 bool GetPopupPos(FX_FLOAT fMinHeight, 174 void GetPopupPos(FX_FLOAT fMinHeight,
175 FX_FLOAT fMaxHeight, 175 FX_FLOAT fMaxHeight,
176 const CFX_RectF& rtAnchor, 176 const CFX_RectF& rtAnchor,
177 CFX_RectF& rtPopup); 177 CFX_RectF& rtPopup);
178 void RegisterEventTarget(IFWL_Widget* pEventSource = nullptr, 178 void RegisterEventTarget(IFWL_Widget* pEventSource = nullptr,
179 uint32_t dwFilter = FWL_EVENT_ALL_MASK); 179 uint32_t dwFilter = FWL_EVENT_ALL_MASK);
180 void UnregisterEventTarget(); 180 void UnregisterEventTarget();
181 void DispatchKeyEvent(CFWL_MsgKey* pNote); 181 void DispatchKeyEvent(CFWL_MsgKey* pNote);
182 void DispatchEvent(CFWL_Event* pEvent); 182 void DispatchEvent(CFWL_Event* pEvent);
183 void DrawBorder(CFX_Graphics* pGraphics, 183 void DrawBorder(CFX_Graphics* pGraphics,
184 CFWL_Part iPartBorder, 184 CFWL_Part iPartBorder,
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 void NotifyDriver(); 236 void NotifyDriver();
237 bool IsParent(IFWL_Widget* pParent); 237 bool IsParent(IFWL_Widget* pParent);
238 238
239 void* m_pLayoutItem; 239 void* m_pLayoutItem;
240 CFWL_Widget* m_pAssociate; 240 CFWL_Widget* m_pAssociate;
241 uint32_t m_nEventKey; 241 uint32_t m_nEventKey;
242 IFWL_WidgetDelegate* m_pDelegate; // Not owned. 242 IFWL_WidgetDelegate* m_pDelegate; // Not owned.
243 }; 243 };
244 244
245 #endif // XFA_FWL_CORE_IFWL_WIDGET_H_ 245 #endif // XFA_FWL_CORE_IFWL_WIDGET_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/fwl_noteimp.cpp ('k') | xfa/fwl/core/ifwl_widget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698