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

Unified Diff: ui/views/controls/scrollbar/base_scroll_bar.h

Issue 2496643002: Implement Sebastien's overlay scrollbars for native UI (Views). (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: ui/views/controls/scrollbar/base_scroll_bar.h
diff --git a/ui/views/controls/scrollbar/base_scroll_bar.h b/ui/views/controls/scrollbar/base_scroll_bar.h
index c8ede5bcb99e0621fdc64bf6848004fa67b46aa2..fcd38b46c80a39e7fe559b46051ea53899784b98 100644
--- a/ui/views/controls/scrollbar/base_scroll_bar.h
+++ b/ui/views/controls/scrollbar/base_scroll_bar.h
@@ -111,6 +111,10 @@ class VIEWS_EXPORT BaseScrollBar : public ScrollBar,
virtual void ScrollToPosition(int position);
virtual int GetScrollIncrement(bool is_page, bool is_positive);
+ int contents_size() const { return contents_size_; }
+ int contents_scroll_offset() const { return contents_scroll_offset_; }
+ int viewport_size() const { return viewport_size_; }
+
private:
friend class test::ScrollViewTestApi;

Powered by Google App Engine
This is Rietveld 408576698