Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Unified Diff: ash/default_user_wallpaper_delegate.cc

Issue 24499002: Reload wallpaper when display configuration changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/default_user_wallpaper_delegate.h ('k') | ash/desktop_background/desktop_background_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/default_user_wallpaper_delegate.cc
diff --git a/ash/default_user_wallpaper_delegate.cc b/ash/default_user_wallpaper_delegate.cc
new file mode 100644
index 0000000000000000000000000000000000000000..168fc9d45225398be2220baf1831196f5fb4d7e9
--- /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
« no previous file with comments | « ash/default_user_wallpaper_delegate.h ('k') | ash/desktop_background/desktop_background_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698