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

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

Issue 2454323002: MacViews: Reveal scrollbars when resting on the trackpad. (Closed)
Patch Set: respond to comments 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.cc
diff --git a/ui/views/controls/scrollbar/base_scroll_bar.cc b/ui/views/controls/scrollbar/base_scroll_bar.cc
index 82d852944b656dadf77f632a2663201039b3eb64..428ce5ff13013e954485ea3fff59dc41066cbcbc 100644
--- a/ui/views/controls/scrollbar/base_scroll_bar.cc
+++ b/ui/views/controls/scrollbar/base_scroll_bar.cc
@@ -440,6 +440,13 @@ int BaseScrollBar::GetScrollIncrement(bool is_page, bool is_positive) {
///////////////////////////////////////////////////////////////////////////////
// BaseScrollBar, private:
+#if !defined(OS_MACOSX)
+// static
+base::Timer* BaseScrollBar::GetHideTimerForTest(BaseScrollBar* scroll_bar) {
+ return nullptr;
+}
+#endif
+
int BaseScrollBar::GetThumbSizeForTest() {
return thumb_->GetSize();
}

Powered by Google App Engine
This is Rietveld 408576698