summaryrefslogtreecommitdiffstats
path: root/chrome/views/scroll_view.h
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-16 18:17:47 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-16 18:17:47 +0000
commit80f8b9f5cf620c37e9d1408a114dc90699584d89 (patch)
tree9e2f5fcacbb18cd86690bc47e0d22ea8f10ac317 /chrome/views/scroll_view.h
parentf377cebc8bb25bb9f6708adbfda567a95c296642 (diff)
downloadchromium_src-80f8b9f5cf620c37e9d1408a114dc90699584d89.zip
chromium_src-80f8b9f5cf620c37e9d1408a114dc90699584d89.tar.gz
chromium_src-80f8b9f5cf620c37e9d1408a114dc90699584d89.tar.bz2
Make View::SetBounds take a const gfx::Rect& instead of a const CRect&
Make View::DidChangeBounds call Layout by default, eliminating this function from most places. http://crbug.com/2186 Review URL: http://codereview.chromium.org/7429 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3471 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views/scroll_view.h')
-rw-r--r--chrome/views/scroll_view.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/chrome/views/scroll_view.h b/chrome/views/scroll_view.h
index e855da4..c41ad87 100644
--- a/chrome/views/scroll_view.h
+++ b/chrome/views/scroll_view.h
@@ -42,8 +42,7 @@ class ScrollView : public View,
// Overridden to layout the viewport and scrollbars.
virtual void Layout();
- virtual void DidChangeBounds(const CRect& previous, const CRect& current);
-
+
// Returns the visible region of the content View.
gfx::Rect GetVisibleRect() const;
@@ -87,8 +86,8 @@ class ScrollView : public View,
// Computes the visibility of both scrollbars, taking in account the view port
// and content sizes.
- void ComputeScrollBarsVisibility(const CSize& viewport_size,
- const CSize& content_size,
+ void ComputeScrollBarsVisibility(const gfx::Size& viewport_size,
+ const gfx::Size& content_size,
bool* horiz_is_shown,
bool* vert_is_shown) const;