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

Unified Diff: ui/views/controls/scroll_view.h

Issue 2555213004: Improving the appearance of overlay scrollbars (Closed)
Patch Set: attempt to fix mac 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
Index: ui/views/controls/scroll_view.h
diff --git a/ui/views/controls/scroll_view.h b/ui/views/controls/scroll_view.h
index 288be675d7ac34a7fd4d7e53af00c3dc83c9733d..6dc43932ee76c365d30c6337d57a9c9cab99fce7 100644
--- a/ui/views/controls/scroll_view.h
+++ b/ui/views/controls/scroll_view.h
@@ -74,10 +74,10 @@ class VIEWS_EXPORT ScrollView : public View, public ScrollBarController {
// Returns whether or not the ScrollView is bounded (as set by ClipHeightTo).
bool is_bounded() const { return max_height_ >= 0 && min_height_ >= 0; }
- // Retrieves the width/height of scrollbars. These return 0 if the scrollbar
- // has not yet been created.
- int GetScrollBarWidth() const;
- int GetScrollBarHeight() const;
+ // Retrieves the width/height reserved for scrollbars. These return 0 if the
+ // scrollbar has not yet been created or in the case of overlay scrollbars.
+ int GetScrollBarLayoutWidth() const;
+ int GetScrollBarLayoutHeight() const;
// Returns the horizontal/vertical scrollbar. This may return NULL.
const ScrollBar* horizontal_scroll_bar() const { return horiz_sb_; }

Powered by Google App Engine
This is Rietveld 408576698