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

Unified Diff: gfx/native_theme_win.h

Issue 1596018: Added support for HTML5 progress element. (Closed)
Patch Set: just sync the change of webkit side. Created 10 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | gfx/native_theme_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gfx/native_theme_win.h
diff --git a/gfx/native_theme_win.h b/gfx/native_theme_win.h
index 504ce4629008f16a88bf41ea63e1755541cec1a8..51751054cbecc44dea19c9221f63e664693e4754 100644
--- a/gfx/native_theme_win.h
+++ b/gfx/native_theme_win.h
@@ -43,6 +43,7 @@ class NativeTheme {
TEXTFIELD,
TRACKBAR,
WINDOW,
+ PROGRESS,
LAST
};
@@ -207,6 +208,12 @@ class NativeTheme {
RECT* rect,
skia::PlatformCanvas* canvas) const;
+ HRESULT PaintProgressBar(HDC hdc,
+ RECT* bar_rect,
+ int value_part_id,
+ RECT* value_rect,
+ skia::PlatformCanvas* canvas) const;
+
bool IsThemingActive() const;
HRESULT GetThemePartSize(ThemeName themeName,
@@ -269,6 +276,7 @@ class NativeTheme {
// Returns a handle to the theme data.
HANDLE GetThemeHandle(ThemeName theme_name) const;
+ HRGN GetClipHandle() const;
// Function pointers into uxtheme.dll.
DrawThemeBackgroundPtr draw_theme_;
@@ -284,7 +292,8 @@ class NativeTheme {
// Handle to uxtheme.dll.
HMODULE theme_dll_;
-
+ // A cache of original clipping handle
+ mutable HRGN clip_;
// A cache of open theme handles.
mutable HANDLE theme_handles_[LAST];
« no previous file with comments | « no previous file | gfx/native_theme_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698