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

Unified Diff: xfa/fwl/cfwl_widget.h

Issue 2560873005: Cleanup CFWL_Widget code to return CFX_RectFs where appropriate (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « xfa/fwl/cfwl_spinbutton.cpp ('k') | xfa/fwl/cfwl_widget.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/fwl/cfwl_widget.h
diff --git a/xfa/fwl/cfwl_widget.h b/xfa/fwl/cfwl_widget.h
index 53839a761b2c7c2bf9685034d65f3b2722af27e0..64fc526ad6cd114d80c5189cbdc7222d61fde5df 100644
--- a/xfa/fwl/cfwl_widget.h
+++ b/xfa/fwl/cfwl_widget.h
@@ -53,7 +53,7 @@ class CFWL_Widget : public IFWL_WidgetDelegate {
virtual bool IsInstance(const CFX_WideStringC& wsClass) const;
virtual CFX_RectF GetAutosizedWidgetRect();
virtual CFX_RectF GetWidgetRect();
- virtual void GetClientRect(CFX_RectF& rect);
+ virtual CFX_RectF GetClientRect();
virtual void ModifyStylesEx(uint32_t dwStylesExAdded,
uint32_t dwStylesExRemoved);
virtual void SetStates(uint32_t dwStates);
@@ -109,7 +109,8 @@ class CFWL_Widget : public IFWL_WidgetDelegate {
void SetLayoutItem(void* pItem) { m_pLayoutItem = pItem; }
void SetFocus(bool bFocus);
- void Repaint(const CFX_RectF* pRect);
+ void RepaintRect(const CFX_RectF& pRect);
+ void Repaint();
protected:
CFWL_Widget(const CFWL_App* app,
@@ -121,10 +122,10 @@ class CFWL_Widget : public IFWL_WidgetDelegate {
bool IsLocked() const { return m_iLock > 0; }
bool HasBorder() const;
bool HasEdge() const;
- void GetEdgeRect(CFX_RectF& rtEdge);
+ CFX_RectF GetEdgeRect();
FX_FLOAT GetBorderSize(bool bCX);
FX_FLOAT GetEdgeWidth();
- void GetRelativeRect(CFX_RectF& rect);
+ CFX_RectF GetRelativeRect();
void* GetThemeCapacity(CFWL_WidgetCapacity dwCapacity);
IFWL_ThemeProvider* GetAvailableTheme();
CFX_SizeF CalcTextSize(const CFX_WideString& wsText,
« no previous file with comments | « xfa/fwl/cfwl_spinbutton.cpp ('k') | xfa/fwl/cfwl_widget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698