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

Unified Diff: ui/native_theme/native_theme_base.cc

Issue 146693015: Plumbs through support for painting the scrollbarcorner (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: bad upload Created 6 years, 11 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
« no previous file with comments | « ui/native_theme/native_theme_base.h ('k') | ui/native_theme/native_theme_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 cc0bacbadf26c894938f01601b3bebd20e20eaa2..79cfc151abc24f7680bbe2ca6255f045155b9f76 100644
--- a/ui/native_theme/native_theme_base.cc
+++ b/ui/native_theme/native_theme_base.cc
@@ -216,6 +216,9 @@ void NativeThemeBase::Paint(SkCanvas* canvas,
// Invoked by views scrollbar code, don't care about for non-win
// implementations, so no NOTIMPLEMENTED.
break;
+ case kScrollbarCorner:
+ PaintScrollbarCorner(canvas, state, rect);
+ break;
case kSliderTrack:
PaintSliderTrack(canvas, state, rect, extra.slider);
break;
@@ -488,6 +491,12 @@ void NativeThemeBase::PaintScrollbarThumb(SkCanvas* canvas,
}
}
+void NativeThemeBase::PaintScrollbarCorner(SkCanvas* canvas,
+ State state,
+ const gfx::Rect& rect) const {
+ canvas->drawColor(SK_ColorWHITE, SkXfermode::kSrc_Mode);
+}
+
void NativeThemeBase::PaintCheckbox(SkCanvas* canvas,
State state,
const gfx::Rect& rect,
« no previous file with comments | « ui/native_theme/native_theme_base.h ('k') | ui/native_theme/native_theme_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698