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

Unified Diff: ui/native_theme/native_theme_base.cc

Issue 1671313002: MacViews: Overlay Scrollbars with Show/Hide Animations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added comments and fixed nits Created 4 years, 10 months 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/native_theme/native_theme_base.cc
diff --git a/ui/native_theme/native_theme_base.cc b/ui/native_theme/native_theme_base.cc
index 1a7837ef3ebc6161d32094f9b56b21ebf3f759e7..368efeffec42eb4d873f2cd45d763548ae332405 100644
--- a/ui/native_theme/native_theme_base.cc
+++ b/ui/native_theme/native_theme_base.cc
@@ -233,7 +233,7 @@ void NativeThemeBase::Paint(SkCanvas* canvas,
break;
case kScrollbarHorizontalThumb:
case kScrollbarVerticalThumb:
- PaintScrollbarThumb(canvas, part, state, rect);
+ PaintScrollbarThumb(canvas, part, state, extra.scrollbar_thumb, rect);
break;
case kScrollbarHorizontalTrack:
case kScrollbarVerticalTrack:
@@ -432,10 +432,12 @@ void NativeThemeBase::PaintScrollbarTrack(SkCanvas* canvas,
DrawBox(canvas, rect, paint);
}
-void NativeThemeBase::PaintScrollbarThumb(SkCanvas* canvas,
- Part part,
- State state,
- const gfx::Rect& rect) const {
+void NativeThemeBase::PaintScrollbarThumb(
+ SkCanvas* canvas,
+ Part part,
+ State state,
+ const ScrollbarThumbExtraParams& extra_params,
+ const gfx::Rect& rect) const {
const bool hovered = state == kHovered;
const int midx = rect.x() + rect.width() / 2;
const int midy = rect.y() + rect.height() / 2;

Powered by Google App Engine
This is Rietveld 408576698