| 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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |