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

Unified Diff: ui/base/native_theme/native_theme_win.h

Issue 10807023: Fix scrollbar transparency / opacity issues on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 | « no previous file | ui/base/native_theme/native_theme_win.cc » ('j') | ui/base/native_theme/native_theme_win.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/native_theme/native_theme_win.h
diff --git a/ui/base/native_theme/native_theme_win.h b/ui/base/native_theme/native_theme_win.h
index 260de8d08e0b5264850274c9c92c9bb863b6cba1..dbc950b5589d1ab2eee9af5820301731f6d573cb 100644
--- a/ui/base/native_theme/native_theme_win.h
+++ b/ui/base/native_theme/native_theme_win.h
@@ -112,11 +112,21 @@ class UI_EXPORT NativeThemeWin : public NativeTheme {
const ExtraParams& extra) const OVERRIDE;
virtual SkColor GetSystemColor(ColorId color_id) const OVERRIDE;
- void PaintToNonPlatformCanvas(SkCanvas* canvas,
- Part part,
- State state,
- const gfx::Rect& rect,
- const ExtraParams& extra) const;
+ // Paint directly to canvas' HDC.
+ void PaintDirect(SkCanvas* canvas,
+ Part part,
+ State state,
+ const gfx::Rect& rect,
+ const ExtraParams& extra) const;
+
+ // Create a temporary HDC, paint to that, clean up the alpha values in the
+ // temporary HDC, and then blit the result to canvas. This is to work around
+ // the fact that Windows XP and some classic themes give bogus alpha values.
+ void PaintIndirect(SkCanvas* canvas,
+ Part part,
+ State state,
+ const gfx::Rect& rect,
+ const ExtraParams& extra) const;
HRESULT GetThemePartSize(ThemeName themeName,
HDC hdc,
« no previous file with comments | « no previous file | ui/base/native_theme/native_theme_win.cc » ('j') | ui/base/native_theme/native_theme_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698