1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ash/default_user_wallpaper_delegate.h"
7 #include "ash/desktop_background/desktop_background_controller.h"
9 #include "ui/wm/core/window_animations.h"
13 int DefaultUserWallpaperDelegate::GetAnimationType() {
14 return wm::WINDOW_VISIBILITY_ANIMATION_TYPE_FADE
;
17 int DefaultUserWallpaperDelegate::GetAnimationDurationOverride() {
21 void DefaultUserWallpaperDelegate::SetAnimationDurationOverride(
22 int animation_duration_in_ms
) {
25 bool DefaultUserWallpaperDelegate::ShouldShowInitialAnimation() {
29 void DefaultUserWallpaperDelegate::UpdateWallpaper(bool clear_cache
) {
32 void DefaultUserWallpaperDelegate::InitializeWallpaper() {
33 ash::Shell::GetInstance()->desktop_background_controller()->
34 CreateEmptyWallpaper();
37 void DefaultUserWallpaperDelegate::OpenSetWallpaperPage() {
40 bool DefaultUserWallpaperDelegate::CanOpenSetWallpaperPage() {
44 void DefaultUserWallpaperDelegate::OnWallpaperAnimationFinished() {
47 void DefaultUserWallpaperDelegate::OnWallpaperBootAnimationFinished() {