diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-26 23:42:23 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-26 23:42:23 +0000 |
commit | 6479c267dd32aab3f043aa2d3b2f808505c031ef (patch) | |
tree | b4c1f5aa25fb119ed28338626e947a7f296a02e3 /chrome/browser/views/tabs/dragged_tab_controller.cc | |
parent | b44f5db5391f9865d5950fe88f77dd80e7661ab2 (diff) | |
download | chromium_src-6479c267dd32aab3f043aa2d3b2f808505c031ef.zip chromium_src-6479c267dd32aab3f043aa2d3b2f808505c031ef.tar.gz chromium_src-6479c267dd32aab3f043aa2d3b2f808505c031ef.tar.bz2 |
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
Diffstat (limited to 'chrome/browser/views/tabs/dragged_tab_controller.cc')
-rw-r--r-- | chrome/browser/views/tabs/dragged_tab_controller.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/views/tabs/dragged_tab_controller.cc b/chrome/browser/views/tabs/dragged_tab_controller.cc index b3ac3bf..06ca3ad 100644 --- a/chrome/browser/views/tabs/dragged_tab_controller.cc +++ b/chrome/browser/views/tabs/dragged_tab_controller.cc @@ -169,7 +169,7 @@ class DraggedTabController::DockDisplayer : public AnimationDelegate { popup->set_window_style(WS_POPUP); popup->set_window_ex_style(WS_EX_LAYERED | WS_EX_TOOLWINDOW | WS_EX_TOPMOST); - popup->SetLayeredAlpha(0x00); + popup->SetOpacity(0x00); popup->Init(NULL, info.GetPopupRect(), false); popup->SetContentsView(new DockView(info.type())); if (info.in_enable_area()) @@ -237,7 +237,7 @@ class DraggedTabController::DockDisplayer : public AnimationDelegate { virtual void UpdateLayeredAlpha() { #if defined(OS_WIN) double scale = in_enable_area_ ? 1 : .5; - static_cast<views::WidgetWin*>(popup_)->SetLayeredAlpha( + static_cast<views::WidgetWin*>(popup_)->SetOpacity( static_cast<BYTE>(animation_.GetCurrentValue() * scale * 255.0)); popup_->GetRootView()->SchedulePaint(); #else |