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

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

Issue 2535943002: Fix event targeting for overlay scrollbar thumbs (in native UI). (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
« no previous file with comments | « ui/views/controls/scrollbar/overlay_scroll_bar.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/scrollbar/scroll_bar_views.cc
diff --git a/ui/views/controls/scrollbar/scroll_bar_views.cc b/ui/views/controls/scrollbar/scroll_bar_views.cc
index ee975749ba2f431f5f90c7fa998158eb81a85428..066a56c5ca61d20e3cd571f149657333d6e9dae0 100644
--- a/ui/views/controls/scrollbar/scroll_bar_views.cc
+++ b/ui/views/controls/scrollbar/scroll_bar_views.cc
@@ -202,7 +202,8 @@ ui::NativeTheme::State ScrollBarThumb::GetNativeThemeState() const {
const char ScrollBarViews::kViewClassName[] = "ScrollBarViews";
ScrollBarViews::ScrollBarViews(bool horizontal)
- : BaseScrollBar(horizontal, new ScrollBarThumb(this)) {
+ : BaseScrollBar(horizontal) {
+ SetThumb(new ScrollBarThumb(this));
if (horizontal) {
prev_button_ = new ScrollBarButton(this, ScrollBarButton::LEFT);
next_button_ = new ScrollBarButton(this, ScrollBarButton::RIGHT);
« no previous file with comments | « ui/views/controls/scrollbar/overlay_scroll_bar.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698