Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / ash / default_user_wallpaper_delegate.cc
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.
4
5 #include "ash/default_user_wallpaper_delegate.h"
6
7 #include "ash/desktop_background/desktop_background_controller.h"
8 #include "ash/shell.h"
9
10 namespace ash {
11
12 int DefaultUserWallpaperDelegate::GetAnimationType() {
13   return views::corewm::WINDOW_VISIBILITY_ANIMATION_TYPE_FADE;
14 }
15
16 int DefaultUserWallpaperDelegate::GetAnimationDurationOverride() {
17   return 0;
18 }
19
20 void DefaultUserWallpaperDelegate::SetAnimationDurationOverride(
21     int animation_duration_in_ms) {
22 }
23
24 bool DefaultUserWallpaperDelegate::ShouldShowInitialAnimation() {
25   return false;
26 }
27
28 void DefaultUserWallpaperDelegate::UpdateWallpaper() {
29 }
30
31 void DefaultUserWallpaperDelegate::InitializeWallpaper() {
32   ash::Shell::GetInstance()->desktop_background_controller()->
33       CreateEmptyWallpaper();
34 }
35
36 void DefaultUserWallpaperDelegate::OpenSetWallpaperPage() {
37 }
38
39 bool DefaultUserWallpaperDelegate::CanOpenSetWallpaperPage() {
40   return false;
41 }
42
43 void DefaultUserWallpaperDelegate::OnWallpaperAnimationFinished() {
44 }
45
46 void DefaultUserWallpaperDelegate::OnWallpaperBootAnimationFinished() {
47 }
48
49 }  // namespace ash