summaryrefslogtreecommitdiffstats
path: root/ash/default_user_wallpaper_delegate.cc
blob: c6a5587e175afa997af58a4ddfa61b0b0a2dd25f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// 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_user_wallpaper_delegate.h"

#include "ash/desktop_background/desktop_background_controller.h"
#include "ash/shell.h"
#include "ui/wm/core/window_animations.h"

namespace ash {

int DefaultUserWallpaperDelegate::GetAnimationType() {
  return wm::WINDOW_VISIBILITY_ANIMATION_TYPE_FADE;
}

int DefaultUserWallpaperDelegate::GetAnimationDurationOverride() {
  return 0;
}

void DefaultUserWallpaperDelegate::SetAnimationDurationOverride(
    int animation_duration_in_ms) {
}

bool DefaultUserWallpaperDelegate::ShouldShowInitialAnimation() {
  return false;
}

void DefaultUserWallpaperDelegate::UpdateWallpaper(bool clear_cache) {
}

void DefaultUserWallpaperDelegate::InitializeWallpaper() {
  ash::Shell::GetInstance()->desktop_background_controller()->
      CreateEmptyWallpaper();
}

void DefaultUserWallpaperDelegate::OpenSetWallpaperPage() {
}

bool DefaultUserWallpaperDelegate::CanOpenSetWallpaperPage() {
  return false;
}

void DefaultUserWallpaperDelegate::OnWallpaperAnimationFinished() {
}

void DefaultUserWallpaperDelegate::OnWallpaperBootAnimationFinished() {
}

}  // namespace ash