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

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

Issue 1482863002: Add support for drawing window caption buttons on windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 8 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 | « ui/native_theme/native_theme_base.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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 const TrackbarExtraParams& extra) const; 252 const TrackbarExtraParams& extra) const;
253 253
254 HRESULT PaintProgressBar(HDC hdc, 254 HRESULT PaintProgressBar(HDC hdc,
255 const gfx::Rect& rect, 255 const gfx::Rect& rect,
256 const ProgressBarExtraParams& extra) const; 256 const ProgressBarExtraParams& extra) const;
257 257
258 HRESULT PaintWindowResizeGripper(HDC hdc, const gfx::Rect& rect) const; 258 HRESULT PaintWindowResizeGripper(HDC hdc, const gfx::Rect& rect) const;
259 259
260 HRESULT PaintTabPanelBackground(HDC hdc, const gfx::Rect& rect) const; 260 HRESULT PaintTabPanelBackground(HDC hdc, const gfx::Rect& rect) const;
261 261
262 HRESULT PaintCaptionButton(HDC hdc,
263 Part part,
264 State state,
265 const gfx::Rect&rect,
266 const ExtraParams& extra) const;
267
262 HRESULT PaintTextField(HDC hdc, 268 HRESULT PaintTextField(HDC hdc,
263 Part part, 269 Part part,
264 State state, 270 State state,
265 const gfx::Rect& rect, 271 const gfx::Rect& rect,
266 const TextFieldExtraParams& extra) const; 272 const TextFieldExtraParams& extra) const;
267 273
268 // Paints a theme part, with support for scene scaling in high-DPI mode. 274 // Paints a theme part, with support for scene scaling in high-DPI mode.
269 // |theme| is the theme handle. |hdc| is the handle for the device context. 275 // |theme| is the theme handle. |hdc| is the handle for the device context.
270 // |part_id| is the identifier for the part (e.g. thumb gripper). |state_id| 276 // |part_id| is the identifier for the part (e.g. thumb gripper). |state_id|
271 // is the identifier for the rendering state of the part (e.g. hover). |rect| 277 // is the identifier for the rendering state of the part (e.g. hover). |rect|
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 375
370 // Is |is_using_high_contrast_| valid? 376 // Is |is_using_high_contrast_| valid?
371 mutable bool is_using_high_contrast_valid_; 377 mutable bool is_using_high_contrast_valid_;
372 378
373 DISALLOW_COPY_AND_ASSIGN(NativeThemeWin); 379 DISALLOW_COPY_AND_ASSIGN(NativeThemeWin);
374 }; 380 };
375 381
376 } // namespace ui 382 } // namespace ui
377 383
378 #endif // UI_NATIVE_THEME_NATIVE_THEME_WIN_H_ 384 #endif // UI_NATIVE_THEME_NATIVE_THEME_WIN_H_
OLDNEW
« no previous file with comments | « ui/native_theme/native_theme_base.cc ('k') | ui/native_theme/native_theme_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698