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

Unified Diff: webkit/tools/test_shell/test_shell_webthemecontrol.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 | « webkit/glue/webthemeengine_impl_win.cc ('k') | webkit/tools/test_shell/test_shell_webthemecontrol.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/test_shell_webthemecontrol.h
diff --git a/webkit/tools/test_shell/test_shell_webthemecontrol.h b/webkit/tools/test_shell/test_shell_webthemecontrol.h
index bb439afe04b7dac79ba5a0909841e401fe81802c..786ee9a2d92cef9323dec4ef915c767e6336733c 100644
--- a/webkit/tools/test_shell/test_shell_webthemecontrol.h
+++ b/webkit/tools/test_shell/test_shell_webthemecontrol.h
@@ -43,6 +43,7 @@ class Control {
// Focused - when the control has the keyboard focus
// Pressed - when the control is being triggered (by a mousedown or
// a key event).
+ // Indetermiante - when set to indetermiante (only for progress bar)
enum State {
kUnknown_State = 0,
kDisabled_State,
@@ -51,7 +52,8 @@ class Control {
kHot_State,
kHover_State,
kFocused_State,
- kPressed_State
+ kPressed_State,
+ kIndeterminate_State
};
// This list of types mostly mirrors the list in
@@ -86,7 +88,8 @@ class Control {
kDownArrow_Type,
kHorizontalSliderTrack_Type,
kHorizontalSliderThumb_Type,
- kDropDownButton_Type
+ kDropDownButton_Type,
+ kProgressBar_Type
};
// canvas is the canvas to draw onto, and rect gives the size of the
@@ -104,6 +107,10 @@ class Control {
// fill_content_area is true, fill the content area with the given color.
void drawTextField(bool draw_edges, bool fill_content_area, SkColor color);
+ // Like drawTextField(), drawing a progress bar also requires extra states
+ // that is not captured by Control instances; fill_rect represents
+ // an drawing area of the bar inside the background container.
+ void drawProgressBar(const SkIRect &fill_rect);
private:
// Draws a box of size specified by irect, filled with the given color.
// The box will have a border drawn in the default edge color.
« no previous file with comments | « webkit/glue/webthemeengine_impl_win.cc ('k') | webkit/tools/test_shell/test_shell_webthemecontrol.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698