Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Unified Diff: ui/views/widget/desktop_aura/desktop_root_window_host_win.cc

Issue 14121011: fix status bubble animations in win aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/desktop_aura/desktop_root_window_host_win.cc
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 07945fda3418833debd5f1e52a34cb9f7f832a99..986df5b71213ab5f4184649a0f188dd987a01302 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
@@ -331,6 +331,7 @@ void DesktopRootWindowHostWin::EndMoveLoop() {
void DesktopRootWindowHostWin::SetVisibilityChangedAnimationsEnabled(
bool value) {
message_handler_->SetVisibilityChangedAnimationsEnabled(value);
+ content_window_->SetProperty(aura::client::kAnimationsDisabledKey, !value);
}
bool DesktopRootWindowHostWin::ShouldUseNativeFrame() {
@@ -356,6 +357,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();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698