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

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

Issue 2182083002: Remove BitmapPlatformDevice from NativeThemeWin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Switch back to initialization-via-construction once Created 4 years, 4 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/skia_utils_win.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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 // Update the locally cached set of system colors. 125 // Update the locally cached set of system colors.
126 void UpdateSystemColors(); 126 void UpdateSystemColors();
127 127
128 // Painting functions that paint to SkCanvas. 128 // Painting functions that paint to SkCanvas.
129 void PaintMenuSeparator(SkCanvas* canvas, const gfx::Rect& rect) const; 129 void PaintMenuSeparator(SkCanvas* canvas, const gfx::Rect& rect) const;
130 void PaintMenuGutter(SkCanvas* canvas, const gfx::Rect& rect) const; 130 void PaintMenuGutter(SkCanvas* canvas, const gfx::Rect& rect) const;
131 void PaintMenuBackground(SkCanvas* canvas, const gfx::Rect& rect) const; 131 void PaintMenuBackground(SkCanvas* canvas, const gfx::Rect& rect) const;
132 132
133 // Paint directly to canvas' HDC. 133 // Paint directly to canvas' HDC.
134 void PaintDirect(SkCanvas* canvas, 134 void PaintDirect(SkCanvas* destination_canvas,
135 HDC hdc,
135 Part part, 136 Part part,
136 State state, 137 State state,
137 const gfx::Rect& rect, 138 const gfx::Rect& rect,
138 const ExtraParams& extra) const; 139 const ExtraParams& extra) const;
139 140
140 // Create a temporary HDC, paint to that, clean up the alpha values in the 141 // Create a temporary HDC, paint to that, clean up the alpha values in the
141 // temporary HDC, and then blit the result to canvas. This is to work around 142 // temporary HDC, and then blit the result to canvas. This is to work around
142 // the fact that Windows XP and some classic themes give bogus alpha values. 143 // the fact that Windows XP and some classic themes give bogus alpha values.
143 void PaintIndirect(SkCanvas* canvas, 144 void PaintIndirect(SkCanvas* destination_canvas,
145 HDC destination_hdc,
144 Part part, 146 Part part,
145 State state, 147 State state,
146 const gfx::Rect& rect, 148 const gfx::Rect& rect,
147 const ExtraParams& extra) const; 149 const ExtraParams& extra) const;
148 150
149 HRESULT GetThemePartSize(ThemeName themeName, 151 HRESULT GetThemePartSize(ThemeName themeName,
150 HDC hdc, 152 HDC hdc,
151 int part_id, 153 int part_id,
152 int state_id, 154 int state_id,
153 RECT* rect, 155 RECT* rect,
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 371
370 // Is |is_using_high_contrast_| valid? 372 // Is |is_using_high_contrast_| valid?
371 mutable bool is_using_high_contrast_valid_; 373 mutable bool is_using_high_contrast_valid_;
372 374
373 DISALLOW_COPY_AND_ASSIGN(NativeThemeWin); 375 DISALLOW_COPY_AND_ASSIGN(NativeThemeWin);
374 }; 376 };
375 377
376 } // namespace ui 378 } // namespace ui
377 379
378 #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/skia_utils_win.cc ('k') | ui/native_theme/native_theme_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698