blob: 1e78a74a786948c013b9ad56a10fcc4ed79027f9 [file] [log] [blame]
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/default_wallpaper_delegate.h"
#include "ash/common/wallpaper/wallpaper_controller.h"
#include "ash/common/wm_shell.h"
#include "ui/wm/core/window_animations.h"
namespace ash {
int DefaultWallpaperDelegate::GetAnimationType() {
return ::wm::WINDOW_VISIBILITY_ANIMATION_TYPE_FADE;
}
int DefaultWallpaperDelegate::GetAnimationDurationOverride() {
return 0;
}
void DefaultWallpaperDelegate::SetAnimationDurationOverride(
int animation_duration_in_ms) {}
bool DefaultWallpaperDelegate::ShouldShowInitialAnimation() {
return false;
}
void DefaultWallpaperDelegate::UpdateWallpaper(bool clear_cache) {}
void DefaultWallpaperDelegate::InitializeWallpaper() {
WmShell::Get()->wallpaper_controller()->CreateEmptyWallpaper();
}
bool DefaultWallpaperDelegate::CanOpenSetWallpaperPage() {
return false;
}
void DefaultWallpaperDelegate::OnWallpaperAnimationFinished() {}
void DefaultWallpaperDelegate::OnWallpaperBootAnimationFinished() {}
} // namespace ash