summaryrefslogtreecommitdiffstats
path: root/ui/views/widget
diff options
context:
space:
mode:
authorscottmg@chromium.org <scottmg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-16 17:51:00 +0000
committerscottmg@chromium.org <scottmg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-16 17:51:00 +0000
commitb5de8b344e17e256a0f3d62095ef09540fdef363 (patch)
treea131c854939902fa2dfaf4987cdbccc1f23625ee /ui/views/widget
parent47e0d5e98719c9d580890941b300b7f96f65a1b5 (diff)
downloadchromium_src-b5de8b344e17e256a0f3d62095ef09540fdef363.zip
chromium_src-b5de8b344e17e256a0f3d62095ef09540fdef363.tar.gz
chromium_src-b5de8b344e17e256a0f3d62095ef09540fdef363.tar.bz2
fix status bubble animations in win aura
Status bubble does it own animation rather than relying on the framework, so pass the inhibition of animation through DesktopNativeWidgetAura (mirroring NativeWidgetAura) and make opacity setting work too. R=ben@chromium.org BUG=229453 Review URL: https://codereview.chromium.org/14121011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194388 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/widget')
-rw-r--r--ui/views/widget/desktop_aura/desktop_root_window_host_win.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc b/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc
index 4b75010..431e941 100644
--- a/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc
+++ b/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc
@@ -333,6 +333,7 @@ void DesktopRootWindowHostWin::EndMoveLoop() {
void DesktopRootWindowHostWin::SetVisibilityChangedAnimationsEnabled(
bool value) {
message_handler_->SetVisibilityChangedAnimationsEnabled(value);
+ content_window_->SetProperty(aura::client::kAnimationsDisabledKey, !value);
}
bool DesktopRootWindowHostWin::ShouldUseNativeFrame() {
@@ -358,6 +359,7 @@ bool DesktopRootWindowHostWin::IsFullscreen() const {
void DesktopRootWindowHostWin::SetOpacity(unsigned char opacity) {
message_handler_->SetOpacity(static_cast<BYTE>(opacity));
+ content_window_->layer()->SetOpacity(opacity / 255.0);
GetWidget()->GetRootView()->SchedulePaint();
}