Searched refs:thumb_position (Results 1 – 2 of 2) sorted by relevance
90 void BaseScrollBar::ScrollToThumbPosition(int thumb_position, in ScrollToThumbPosition() argument93 CalculateContentsOffset(thumb_position, scroll_to_middle); in ScrollToThumbPosition()405 int thumb_position = CalculateThumbPosition(contents_scroll_offset); in Update() local406 thumb_->SetPosition(thumb_position); in Update()490 int BaseScrollBar::CalculateContentsOffset(int thumb_position, in CalculateContentsOffset() argument493 thumb_position = thumb_position - (thumb_->GetSize() / 2); in CalculateContentsOffset()494 return (thumb_position * contents_size_) / GetTrackSize(); in CalculateContentsOffset()
56 void ScrollToThumbPosition(int thumb_position, bool scroll_to_middle);142 int CalculateContentsOffset(int thumb_position,