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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 int classic_state, | 95 int classic_state, |
96 RECT* rect, | 96 RECT* rect, |
97 COLORREF color, | 97 COLORREF color, |
98 bool fill_content_area, | 98 bool fill_content_area, |
99 bool draw_edges) const; | 99 bool draw_edges) const; |
100 | 100 |
101 // NativeTheme implementation: | 101 // NativeTheme implementation: |
102 gfx::Size GetPartSize(Part part, | 102 gfx::Size GetPartSize(Part part, |
103 State state, | 103 State state, |
104 const ExtraParams& extra) const override; | 104 const ExtraParams& extra) const override; |
105 void Paint(SkCanvas* canvas, | 105 void Paint(cc::PaintCanvas* canvas, |
106 Part part, | 106 Part part, |
107 State state, | 107 State state, |
108 const gfx::Rect& rect, | 108 const gfx::Rect& rect, |
109 const ExtraParams& extra) const override; | 109 const ExtraParams& extra) const override; |
110 SkColor GetSystemColor(ColorId color_id) const override; | 110 SkColor GetSystemColor(ColorId color_id) const override; |
111 | 111 |
112 protected: | 112 protected: |
113 friend class NativeTheme; | 113 friend class NativeTheme; |
114 // Gets our singleton instance. | 114 // Gets our singleton instance. |
115 static NativeThemeWin* instance(); | 115 static NativeThemeWin* instance(); |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 | 370 |
371 // Is |is_using_high_contrast_| valid? | 371 // Is |is_using_high_contrast_| valid? |
372 mutable bool is_using_high_contrast_valid_; | 372 mutable bool is_using_high_contrast_valid_; |
373 | 373 |
374 DISALLOW_COPY_AND_ASSIGN(NativeThemeWin); | 374 DISALLOW_COPY_AND_ASSIGN(NativeThemeWin); |
375 }; | 375 }; |
376 | 376 |
377 } // namespace ui | 377 } // namespace ui |
378 | 378 |
379 #endif // UI_NATIVE_THEME_NATIVE_THEME_WIN_H_ | 379 #endif // UI_NATIVE_THEME_NATIVE_THEME_WIN_H_ |
OLD | NEW |