| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_NATIVE_THEME_NATIVE_THEME_WIN_H_ | 5 #ifndef UI_NATIVE_THEME_NATIVE_THEME_WIN_H_ |
| 6 #define UI_NATIVE_THEME_NATIVE_THEME_WIN_H_ | 6 #define UI_NATIVE_THEME_NATIVE_THEME_WIN_H_ |
| 7 | 7 |
| 8 // A wrapper class for working with custom XP/Vista themes provided in | 8 // A wrapper class for working with custom XP/Vista themes provided in |
| 9 // uxtheme.dll. This is a singleton class that can be grabbed using | 9 // uxtheme.dll. This is a singleton class that can be grabbed using |
| 10 // NativeThemeWin::instance(). | 10 // NativeThemeWin::instance(). |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 HDC hdc, | 137 HDC hdc, |
| 138 Part part, | 138 Part part, |
| 139 State state, | 139 State state, |
| 140 const gfx::Rect& rect, | 140 const gfx::Rect& rect, |
| 141 const ExtraParams& extra) const; | 141 const ExtraParams& extra) const; |
| 142 | 142 |
| 143 // Create a temporary HDC, paint to that, clean up the alpha values in the | 143 // Create a temporary HDC, paint to that, clean up the alpha values in the |
| 144 // temporary HDC, and then blit the result to canvas. This is to work around | 144 // temporary HDC, and then blit the result to canvas. This is to work around |
| 145 // the fact that Windows XP and some classic themes give bogus alpha values. | 145 // the fact that Windows XP and some classic themes give bogus alpha values. |
| 146 void PaintIndirect(SkCanvas* destination_canvas, | 146 void PaintIndirect(SkCanvas* destination_canvas, |
| 147 HDC destination_hdc, | |
| 148 Part part, | 147 Part part, |
| 149 State state, | 148 State state, |
| 150 const gfx::Rect& rect, | 149 const gfx::Rect& rect, |
| 151 const ExtraParams& extra) const; | 150 const ExtraParams& extra) const; |
| 152 | 151 |
| 153 HRESULT GetThemePartSize(ThemeName themeName, | 152 HRESULT GetThemePartSize(ThemeName themeName, |
| 154 HDC hdc, | 153 HDC hdc, |
| 155 int part_id, | 154 int part_id, |
| 156 int state_id, | 155 int state_id, |
| 157 RECT* rect, | 156 RECT* rect, |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 | 371 |
| 373 // Is |is_using_high_contrast_| valid? | 372 // Is |is_using_high_contrast_| valid? |
| 374 mutable bool is_using_high_contrast_valid_; | 373 mutable bool is_using_high_contrast_valid_; |
| 375 | 374 |
| 376 DISALLOW_COPY_AND_ASSIGN(NativeThemeWin); | 375 DISALLOW_COPY_AND_ASSIGN(NativeThemeWin); |
| 377 }; | 376 }; |
| 378 | 377 |
| 379 } // namespace ui | 378 } // namespace ui |
| 380 | 379 |
| 381 #endif // UI_NATIVE_THEME_NATIVE_THEME_WIN_H_ | 380 #endif // UI_NATIVE_THEME_NATIVE_THEME_WIN_H_ |
| OLD | NEW |