| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 int state_id, | 99 int state_id, |
| 100 int classic_state, | 100 int classic_state, |
| 101 RECT* rect, | 101 RECT* rect, |
| 102 COLORREF color, | 102 COLORREF color, |
| 103 bool fill_content_area, | 103 bool fill_content_area, |
| 104 bool draw_edges) const; | 104 bool draw_edges) const; |
| 105 | 105 |
| 106 // NativeTheme implementation: | 106 // NativeTheme implementation: |
| 107 virtual gfx::Size GetPartSize(Part part, | 107 virtual gfx::Size GetPartSize(Part part, |
| 108 State state, | 108 State state, |
| 109 const ExtraParams& extra) const OVERRIDE; | 109 const ExtraParams& extra) const override; |
| 110 virtual void Paint(SkCanvas* canvas, | 110 virtual void Paint(SkCanvas* canvas, |
| 111 Part part, | 111 Part part, |
| 112 State state, | 112 State state, |
| 113 const gfx::Rect& rect, | 113 const gfx::Rect& rect, |
| 114 const ExtraParams& extra) const OVERRIDE; | 114 const ExtraParams& extra) const override; |
| 115 virtual SkColor GetSystemColor(ColorId color_id) const OVERRIDE; | 115 virtual SkColor GetSystemColor(ColorId color_id) const override; |
| 116 | 116 |
| 117 private: | 117 private: |
| 118 NativeThemeWin(); | 118 NativeThemeWin(); |
| 119 ~NativeThemeWin(); | 119 ~NativeThemeWin(); |
| 120 | 120 |
| 121 // gfx::SysColorChangeListener implementation: | 121 // gfx::SysColorChangeListener implementation: |
| 122 virtual void OnSysColorChange() OVERRIDE; | 122 virtual void OnSysColorChange() override; |
| 123 | 123 |
| 124 // Update the locally cached set of system colors. | 124 // Update the locally cached set of system colors. |
| 125 void UpdateSystemColors(); | 125 void UpdateSystemColors(); |
| 126 | 126 |
| 127 // Paint directly to canvas' HDC. | 127 // Paint directly to canvas' HDC. |
| 128 void PaintDirect(SkCanvas* canvas, | 128 void PaintDirect(SkCanvas* canvas, |
| 129 Part part, | 129 Part part, |
| 130 State state, | 130 State state, |
| 131 const gfx::Rect& rect, | 131 const gfx::Rect& rect, |
| 132 const ExtraParams& extra) const; | 132 const ExtraParams& extra) const; |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 | 364 |
| 365 // Is |is_using_high_contrast_| valid? | 365 // Is |is_using_high_contrast_| valid? |
| 366 mutable bool is_using_high_contrast_valid_; | 366 mutable bool is_using_high_contrast_valid_; |
| 367 | 367 |
| 368 DISALLOW_COPY_AND_ASSIGN(NativeThemeWin); | 368 DISALLOW_COPY_AND_ASSIGN(NativeThemeWin); |
| 369 }; | 369 }; |
| 370 | 370 |
| 371 } // namespace ui | 371 } // namespace ui |
| 372 | 372 |
| 373 #endif // UI_NATIVE_THEME_NATIVE_THEME_WIN_H_ | 373 #endif // UI_NATIVE_THEME_NATIVE_THEME_WIN_H_ |
| OLD | NEW |