| 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 int ts, | 157 int ts, |
| 158 SIZE* size) const; | 158 SIZE* size) const; |
| 159 | 159 |
| 160 HRESULT PaintButton(HDC hdc, | 160 HRESULT PaintButton(HDC hdc, |
| 161 State state, | 161 State state, |
| 162 const ButtonExtraParams& extra, | 162 const ButtonExtraParams& extra, |
| 163 int part_id, | 163 int part_id, |
| 164 int state_id, | 164 int state_id, |
| 165 RECT* rect) const; | 165 RECT* rect) const; |
| 166 | 166 |
| 167 HRESULT PaintMenuSeparator(HDC hdc, | 167 HRESULT PaintMenuSeparator(HDC hdc, const gfx::Rect& rect) const; |
| 168 const gfx::Rect& rect) const; | |
| 169 | 168 |
| 170 HRESULT PaintMenuGutter(HDC hdc, const gfx::Rect& rect) const; | 169 HRESULT PaintMenuGutter(HDC hdc, const gfx::Rect& rect) const; |
| 171 | 170 |
| 172 // |arrow_direction| determines whether the arrow is pointing to the left or | 171 // |arrow_direction| determines whether the arrow is pointing to the left or |
| 173 // to the right. In RTL locales, sub-menus open from right to left and | 172 // to the right. In RTL locales, sub-menus open from right to left and |
| 174 // therefore the menu arrow should point to the left and not to the right. | 173 // therefore the menu arrow should point to the left and not to the right. |
| 175 HRESULT PaintMenuArrow(HDC hdc, | 174 HRESULT PaintMenuArrow(HDC hdc, |
| 176 State state, | 175 State state, |
| 177 const gfx::Rect& rect, | 176 const gfx::Rect& rect, |
| 178 const MenuArrowExtraParams& extra) const; | 177 const MenuArrowExtraParams& extra) const; |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 | 370 |
| 372 // Is |is_using_high_contrast_| valid? | 371 // Is |is_using_high_contrast_| valid? |
| 373 mutable bool is_using_high_contrast_valid_; | 372 mutable bool is_using_high_contrast_valid_; |
| 374 | 373 |
| 375 DISALLOW_COPY_AND_ASSIGN(NativeThemeWin); | 374 DISALLOW_COPY_AND_ASSIGN(NativeThemeWin); |
| 376 }; | 375 }; |
| 377 | 376 |
| 378 } // namespace ui | 377 } // namespace ui |
| 379 | 378 |
| 380 #endif // UI_NATIVE_THEME_NATIVE_THEME_WIN_H_ | 379 #endif // UI_NATIVE_THEME_NATIVE_THEME_WIN_H_ |
| OLD | NEW |