| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // A wrapper class for working with custom XP/Vista themes provided in | 5 // A wrapper class for working with custom XP/Vista themes provided in |
| 6 // uxtheme.dll. This is a singleton class that can be grabbed using | 6 // uxtheme.dll. This is a singleton class that can be grabbed using |
| 7 // NativeTheme::instance(). | 7 // NativeTheme::instance(). |
| 8 // For more information on visual style parts and states, see: | 8 // For more information on visual style parts and states, see: |
| 9 // http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/plat
form/commctls/userex/topics/partsandstates.asp | 9 // http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/plat
form/commctls/userex/topics/partsandstates.asp |
| 10 | 10 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 public: | 34 public: |
| 35 enum ThemeName { | 35 enum ThemeName { |
| 36 BUTTON, | 36 BUTTON, |
| 37 LIST, | 37 LIST, |
| 38 MENU, | 38 MENU, |
| 39 MENULIST, | 39 MENULIST, |
| 40 SCROLLBAR, | 40 SCROLLBAR, |
| 41 STATUS, | 41 STATUS, |
| 42 TAB, | 42 TAB, |
| 43 TEXTFIELD, | 43 TEXTFIELD, |
| 44 TRACKBAR, |
| 44 WINDOW, | 45 WINDOW, |
| 45 LAST | 46 LAST |
| 46 }; | 47 }; |
| 47 | 48 |
| 48 // This enumeration is used within PaintMenuArrow in order to indicate the | 49 // This enumeration is used within PaintMenuArrow in order to indicate the |
| 49 // direction the menu arrow should point to. | 50 // direction the menu arrow should point to. |
| 50 enum MenuArrowDirection { | 51 enum MenuArrowDirection { |
| 51 LEFT_POINTING_ARROW, | 52 LEFT_POINTING_ARROW, |
| 52 RIGHT_POINTING_ARROW | 53 RIGHT_POINTING_ARROW |
| 53 }; | 54 }; |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 | 193 |
| 193 HRESULT PaintTextField(HDC hdc, | 194 HRESULT PaintTextField(HDC hdc, |
| 194 int part_id, | 195 int part_id, |
| 195 int state_id, | 196 int state_id, |
| 196 int classic_state, | 197 int classic_state, |
| 197 RECT* rect, | 198 RECT* rect, |
| 198 COLORREF color, | 199 COLORREF color, |
| 199 bool fill_content_area, | 200 bool fill_content_area, |
| 200 bool draw_edges) const; | 201 bool draw_edges) const; |
| 201 | 202 |
| 203 HRESULT PaintTrackbar(HDC hdc, |
| 204 int part_id, |
| 205 int state_id, |
| 206 int classic_state, |
| 207 RECT* rect, |
| 208 skia::PlatformCanvasWin* canvas) const; |
| 209 |
| 202 bool IsThemingActive() const; | 210 bool IsThemingActive() const; |
| 203 | 211 |
| 204 HRESULT GetThemePartSize(ThemeName themeName, | 212 HRESULT GetThemePartSize(ThemeName themeName, |
| 205 HDC hdc, | 213 HDC hdc, |
| 206 int part_id, | 214 int part_id, |
| 207 int state_id, | 215 int state_id, |
| 208 RECT* rect, | 216 RECT* rect, |
| 209 int ts, | 217 int ts, |
| 210 SIZE* size) const; | 218 SIZE* size) const; |
| 211 | 219 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 | 287 |
| 280 // A cache of open theme handles. | 288 // A cache of open theme handles. |
| 281 mutable HANDLE theme_handles_[LAST]; | 289 mutable HANDLE theme_handles_[LAST]; |
| 282 | 290 |
| 283 DISALLOW_EVIL_CONSTRUCTORS(NativeTheme); | 291 DISALLOW_EVIL_CONSTRUCTORS(NativeTheme); |
| 284 }; | 292 }; |
| 285 | 293 |
| 286 } // namespace gfx | 294 } // namespace gfx |
| 287 | 295 |
| 288 #endif // BASE_GFX_NATIVE_THEME_H__ | 296 #endif // BASE_GFX_NATIVE_THEME_H__ |
| OLD | NEW |