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

Unified Diff: xfa/fwl/core/cfwl_spinbutton.cpp

Issue 2556873004: Convert GetWidgetRect to return rect. (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/core/cfwl_spinbutton.h ('k') | xfa/fwl/core/cfwl_widget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/fwl/core/cfwl_spinbutton.cpp
diff --git a/xfa/fwl/core/cfwl_spinbutton.cpp b/xfa/fwl/core/cfwl_spinbutton.cpp
index 03ec5afdf8a5e8727f76d79ac9044a815ff3801d..68844f99000ad478e1fdf83948edc44afc5d684b 100644
--- a/xfa/fwl/core/cfwl_spinbutton.cpp
+++ b/xfa/fwl/core/cfwl_spinbutton.cpp
@@ -20,9 +20,6 @@
#include "xfa/fwl/core/ifwl_themeprovider.h"
namespace {
-
-const int kMinWidth = 18;
-const int kMinHeight = 32;
const int kElapseTime = 200;
} // namespace
@@ -49,16 +46,6 @@ FWL_Type CFWL_SpinButton::GetClassID() const {
return FWL_Type::SpinButton;
}
-void CFWL_SpinButton::GetWidgetRect(CFX_RectF& rect, bool bAutoSize) {
- if (!bAutoSize) {
- rect = m_pProperties->m_rtWidget;
- return;
- }
-
- rect.Set(0, 0, kMinWidth, kMinHeight);
- InflateWidgetRect(rect);
-}
-
void CFWL_SpinButton::Update() {
if (IsLocked())
return;
« no previous file with comments | « xfa/fwl/core/cfwl_spinbutton.h ('k') | xfa/fwl/core/cfwl_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698