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

Unified Diff: ash/wm/workspace/workspace_manager2.cc

Issue 11054005: ash: Display system background while loading wallpaper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win_aura compile, hopefully Created 8 years, 2 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 | « ash/wm/workspace/workspace_manager2.h ('k') | chrome/browser/ui/ash/chrome_shell_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/workspace/workspace_manager2.cc
diff --git a/ash/wm/workspace/workspace_manager2.cc b/ash/wm/workspace/workspace_manager2.cc
index 075815d904f2f57888eb99e8f3a00f753cc02528..805dd183584e96b98757554ab279df8c7c968a0a 100644
--- a/ash/wm/workspace/workspace_manager2.cc
+++ b/ash/wm/workspace/workspace_manager2.cc
@@ -16,7 +16,6 @@
#include "ash/wm/window_animations.h"
#include "ash/wm/window_properties.h"
#include "ash/wm/window_util.h"
-#include "ash/wm/workspace/system_background_controller.h"
#include "ash/wm/workspace/workspace_layout_manager2.h"
#include "ash/wm/workspace/workspace2.h"
#include "base/auto_reset.h"
@@ -331,21 +330,6 @@ void WorkspaceManager2::SetActiveWorkspace(Workspace2* workspace,
contents_view_->StackChildAtTop(last_active->window());
}
- destroy_background_timer_.Stop();
- if (active_workspace_ == desktop_workspace()) {
- base::TimeDelta delay(GetSystemBackgroundDestroyDuration());
- if (ui::LayerAnimator::slow_animation_mode())
- delay *= ui::LayerAnimator::slow_animation_scale_factor();
- // Delay an extra 100ms to make sure everything settles down before
- // destroying the background.
- delay += base::TimeDelta::FromMilliseconds(100);
- destroy_background_timer_.Start(
- FROM_HERE, delay, this, &WorkspaceManager2::DestroySystemBackground);
- } else if (!background_controller_.get()) {
- background_controller_.reset(new SystemBackgroundController(
- contents_view_->GetRootWindow()));
- }
-
UpdateShelfVisibility();
if (animate_type != ANIMATE_NONE) {
@@ -456,10 +440,6 @@ void WorkspaceManager2::ScheduleDelete(Workspace2* workspace) {
&WorkspaceManager2::ProcessDeletion);
}
-void WorkspaceManager2::DestroySystemBackground() {
- background_controller_.reset();
-}
-
void WorkspaceManager2::SetUnminimizingWorkspace(Workspace2* workspace) {
// The normal sequence of unminimizing a window is: Show() the window, which
// triggers changing the kShowStateKey to NORMAL and lastly the window is made
« no previous file with comments | « ash/wm/workspace/workspace_manager2.h ('k') | chrome/browser/ui/ash/chrome_shell_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698