summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webthemeengine_impl_win.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/glue/webthemeengine_impl_win.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/glue/webthemeengine_impl_win.cc')
-rw-r--r--webkit/glue/webthemeengine_impl_win.cc16
1 files changed, 7 insertions, 9 deletions
diff --git a/webkit/glue/webthemeengine_impl_win.cc b/webkit/glue/webthemeengine_impl_win.cc
index 0d2b563..71913ef 100644
--- a/webkit/glue/webthemeengine_impl_win.cc
+++ b/webkit/glue/webthemeengine_impl_win.cc
@@ -1,6 +1,6 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved. Use of this
-// source code is governed by a BSD-style license that can be found in the
-// LICENSE file.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
#include "webkit/glue/webthemeengine_impl_win.h"
@@ -115,17 +115,15 @@ void WebThemeEngineImpl::paintTrackbar(
}
void WebThemeEngineImpl::paintProgressBar(
- WebKit::WebCanvas* canvas,
- const WebKit::WebRect& barRect,
- int valuePart, const WebKit::WebRect& valueRect)
-
+ WebCanvas* canvas, const WebRect& barRect, const WebRect& valueRect,
+ bool determinate, double animatedSeconds)
{
HDC hdc = canvas->beginPlatformPaint();
RECT native_bar_rect = WebRectToRECT(barRect);
RECT native_value_rect = WebRectToRECT(valueRect);
gfx::NativeTheme::instance()->PaintProgressBar(
- hdc, &native_bar_rect,
- valuePart, &native_value_rect, canvas);
+ hdc, &native_bar_rect,
+ &native_value_rect, determinate, animatedSeconds, canvas);
canvas->endPlatformPaint();
}