Home | History | Annotate | Download | only in ash
      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 #include "ui/wm/core/window_animations.h"
     10 
     11 namespace ash {
     12 
     13 int DefaultUserWallpaperDelegate::GetAnimationType() {
     14   return wm::WINDOW_VISIBILITY_ANIMATION_TYPE_FADE;
     15 }
     16 
     17 int DefaultUserWallpaperDelegate::GetAnimationDurationOverride() {
     18   return 0;
     19 }
     20 
     21 void DefaultUserWallpaperDelegate::SetAnimationDurationOverride(
     22     int animation_duration_in_ms) {
     23 }
     24 
     25 bool DefaultUserWallpaperDelegate::ShouldShowInitialAnimation() {
     26   return false;
     27 }
     28 
     29 void DefaultUserWallpaperDelegate::UpdateWallpaper(bool clear_cache) {
     30 }
     31 
     32 void DefaultUserWallpaperDelegate::InitializeWallpaper() {
     33   ash::Shell::GetInstance()->desktop_background_controller()->
     34       CreateEmptyWallpaper();
     35 }
     36 
     37 void DefaultUserWallpaperDelegate::OpenSetWallpaperPage() {
     38 }
     39 
     40 bool DefaultUserWallpaperDelegate::CanOpenSetWallpaperPage() {
     41   return false;
     42 }
     43 
     44 void DefaultUserWallpaperDelegate::OnWallpaperAnimationFinished() {
     45 }
     46 
     47 void DefaultUserWallpaperDelegate::OnWallpaperBootAnimationFinished() {
     48 }
     49 
     50 }  // namespace ash
     51