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

Side by Side Diff: ui/native_theme/native_theme_win.h

Issue 2610003002: Remove skia::SupportsPlatformPaint() (Closed)
Patch Set: rebase Created 3 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 unified diff | Download patch
« no previous file with comments | « skia/ext/platform_canvas.cc ('k') | ui/native_theme/native_theme_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « skia/ext/platform_canvas.cc ('k') | ui/native_theme/native_theme_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698