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. |