Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(348)

Side by Side Diff: gfx/native_theme_win.h

Issue 1988012: Added support for HTML5 progress element. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: took the feedback Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | gfx/native_theme_win.cc » ('j') | gfx/native_theme_win.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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
11 #ifndef APP_GFX_NATIVE_THEME_WIN_H_ 11 #ifndef APP_GFX_NATIVE_THEME_WIN_H_
(...skipping 24 matching lines...) Expand all
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 TRACKBAR,
45 WINDOW, 45 WINDOW,
46 PROGRESS,
46 LAST 47 LAST
47 }; 48 };
48 49
49 // This enumeration is used within PaintMenuArrow in order to indicate the 50 // This enumeration is used within PaintMenuArrow in order to indicate the
50 // direction the menu arrow should point to. 51 // direction the menu arrow should point to.
51 enum MenuArrowDirection { 52 enum MenuArrowDirection {
52 LEFT_POINTING_ARROW, 53 LEFT_POINTING_ARROW,
53 RIGHT_POINTING_ARROW 54 RIGHT_POINTING_ARROW
54 }; 55 };
55 56
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 bool fill_content_area, 201 bool fill_content_area,
201 bool draw_edges) const; 202 bool draw_edges) const;
202 203
203 HRESULT PaintTrackbar(HDC hdc, 204 HRESULT PaintTrackbar(HDC hdc,
204 int part_id, 205 int part_id,
205 int state_id, 206 int state_id,
206 int classic_state, 207 int classic_state,
207 RECT* rect, 208 RECT* rect,
208 skia::PlatformCanvas* canvas) const; 209 skia::PlatformCanvas* canvas) const;
209 210
211 HRESULT PaintProgressBar(HDC hdc,
212 RECT* bar_rect,
213 int value_part_id,
214 RECT* value_rect,
215 skia::PlatformCanvas* canvas) const;
216
210 bool IsThemingActive() const; 217 bool IsThemingActive() const;
211 218
212 HRESULT GetThemePartSize(ThemeName themeName, 219 HRESULT GetThemePartSize(ThemeName themeName,
213 HDC hdc, 220 HDC hdc,
214 int part_id, 221 int part_id,
215 int state_id, 222 int state_id,
216 RECT* rect, 223 RECT* rect,
217 int ts, 224 int ts,
218 SIZE* size) const; 225 SIZE* size) const;
219 226
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 297
291 // A cache of open theme handles. 298 // A cache of open theme handles.
292 mutable HANDLE theme_handles_[LAST]; 299 mutable HANDLE theme_handles_[LAST];
293 300
294 DISALLOW_COPY_AND_ASSIGN(NativeTheme); 301 DISALLOW_COPY_AND_ASSIGN(NativeTheme);
295 }; 302 };
296 303
297 } // namespace gfx 304 } // namespace gfx
298 305
299 #endif // APP_GFX_NATIVE_THEME_WIN_H_ 306 #endif // APP_GFX_NATIVE_THEME_WIN_H_
OLDNEW
« no previous file with comments | « no previous file | gfx/native_theme_win.cc » ('j') | gfx/native_theme_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698