summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell/test_shell_webthemeengine.cc
diff options
context:
space:
mode:
authortkent@chromium.org <tkent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-19 03:08:03 +0000
committertkent@chromium.org <tkent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-19 03:08:03 +0000
commitfd9f1e87703a5c78b2626135723b586bdd59c7b7 (patch)
treea9d4d369737b2f88c59d3aad6c5f56c0450b2034 /webkit/tools/test_shell/test_shell_webthemeengine.cc
parentef8561def41e78e9a56939246d3331703ab93c0d (diff)
downloadchromium_src-fd9f1e87703a5c78b2626135723b586bdd59c7b7.zip
chromium_src-fd9f1e87703a5c78b2626135723b586bdd59c7b7.tar.gz
chromium_src-fd9f1e87703a5c78b2626135723b586bdd59c7b7.tar.bz2
- Draw glossy animation effect for determinate progress bar
- Moved animation code for indeterminate bar from WebKit because adding change above makes webkit-side too complicated. Note: - This change depends https://webkit.org/b/39269 - Appearance of indeterminate bar remains incorrect. I filed it to http://crbug.com/44433. Patch by Hajime Morita <morrita@g> Original code review: http://codereview.chromium.org/2131008/show BUG=44430 TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47618 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/test_shell_webthemeengine.cc')
-rw-r--r--webkit/tools/test_shell/test_shell_webthemeengine.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/webkit/tools/test_shell/test_shell_webthemeengine.cc b/webkit/tools/test_shell/test_shell_webthemeengine.cc
index 8c457a8..6deb9a8 100644
--- a/webkit/tools/test_shell/test_shell_webthemeengine.cc
+++ b/webkit/tools/test_shell/test_shell_webthemeengine.cc
@@ -543,11 +543,12 @@ void Engine::paintTrackbar(WebCanvas* canvas, int part, int state,
void Engine::paintProgressBar(WebKit::WebCanvas* canvas,
const WebKit::WebRect& barRect,
- int valuePart, const WebKit::WebRect& valueRect) {
- Control::Type ctype = Control::kProgressBar_Type;
- Control::State cstate = valuePart == PP_FILL ?
- Control::kNormal_State : Control::kIndeterminate_State;
- drawProgressBar(canvas, ctype, cstate, barRect, valueRect);
+ const WebKit::WebRect& valueRect,
+ bool determinate, double) {
+ Control::Type ctype = Control::kProgressBar_Type;
+ Control::State cstate =
+ determinate ? Control::kNormal_State : Control::kIndeterminate_State;
+ drawProgressBar(canvas, ctype, cstate, barRect, valueRect);
}
} // namespace TestShellWebTheme