diff options
author | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-26 07:57:10 +0000 |
---|---|---|
committer | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-26 07:57:10 +0000 |
commit | a7611df27b71e52c3792491c08b956e76d98178f (patch) | |
tree | 75b325c2db0da0d3d5956ae5d7d0c3b3a1dcd7bc /ash/default_user_wallpaper_delegate.cc | |
parent | 9efec3acd222178d1bfee84799d47dd393894f61 (diff) | |
download | chromium_src-a7611df27b71e52c3792491c08b956e76d98178f.zip chromium_src-a7611df27b71e52c3792491c08b956e76d98178f.tar.gz chromium_src-a7611df27b71e52c3792491c08b956e76d98178f.tar.bz2 |
Reload wallpaper when display configuration changes.
BUG=285365,239849
R=bshe@chromium.org
Review URL: https://codereview.chromium.org/24499002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225386 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/default_user_wallpaper_delegate.cc')
-rw-r--r-- | ash/default_user_wallpaper_delegate.cc | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/ash/default_user_wallpaper_delegate.cc b/ash/default_user_wallpaper_delegate.cc new file mode 100644 index 0000000..168fc9d --- /dev/null +++ b/ash/default_user_wallpaper_delegate.cc @@ -0,0 +1,41 @@ +// 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" + +namespace ash { + +int DefaultUserWallpaperDelegate::GetAnimationType() { + return views::corewm::WINDOW_VISIBILITY_ANIMATION_TYPE_FADE; +} + +bool DefaultUserWallpaperDelegate::ShouldShowInitialAnimation() { + return false; +} + +void DefaultUserWallpaperDelegate::UpdateWallpaper() { +} + +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 |