From 6479c267dd32aab3f043aa2d3b2f808505c031ef Mon Sep 17 00:00:00 2001 From: "ben@chromium.org" Date: Tue, 26 May 2009 23:42:23 +0000 Subject: Removes WidgetWin dependency from StatusBubbleViews so that it can compile on Linux. Requires: - making SetOpacity a cross platform method on Widget, replacing SetLayeredAlpha. - moving Window::SetBounds to Widget - replacing usage of MoveWindow in StatusBubbleViews with call to new SetBounds method. BUG=none TEST=make sure transparency still works for floating widgets like - status bubble, full screen exit bubble, dragged tabs Review URL: http://codereview.chromium.org/113846 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16948 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/views/download_started_animation_win.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'chrome/browser/views/download_started_animation_win.cc') diff --git a/chrome/browser/views/download_started_animation_win.cc b/chrome/browser/views/download_started_animation_win.cc index 799d2ec..4de387e 100644 --- a/chrome/browser/views/download_started_animation_win.cc +++ b/chrome/browser/views/download_started_animation_win.cc @@ -105,7 +105,7 @@ DownloadStartedAnimationWin::DownloadStartedAnimationWin( popup_->set_window_style(WS_POPUP); popup_->set_window_ex_style(WS_EX_LAYERED | WS_EX_TOOLWINDOW | WS_EX_TRANSPARENT); - popup_->SetLayeredAlpha(0x00); + popup_->SetOpacity(0x00); popup_->Init(tab_contents_->GetNativeView(), rc, false); popup_->SetContentsView(this); Reposition(); @@ -157,8 +157,8 @@ void DownloadStartedAnimationWin::AnimateToState(double state) { double opacity = std::min(1.0 - pow(GetCurrentValue() - 0.5, 2) * 4.0, static_cast(1.0)); - popup_->SetLayeredAlpha( - static_cast(opacity * 255.0)); + popup_->SetOpacity( + static_cast(opacity * 255.0)); SchedulePaint(); // Reposition() calls MoveWindow() which never picks up // alpha changes, so we need to force a paint. } -- cgit v1.1