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

Unified Diff: ash/default_wallpaper_delegate.cc

Issue 2271373002: mash: Port mojo:ash_sysui's ContextMenuMus to mojo:ash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 4 years, 4 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_wallpaper_delegate.h ('k') | ash/desktop_background/desktop_background_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/default_wallpaper_delegate.cc
diff --git a/ash/default_wallpaper_delegate.cc b/ash/default_wallpaper_delegate.cc
new file mode 100644
index 0000000000000000000000000000000000000000..23a47ce60af32faa305f1612a8586d181e74811b
--- /dev/null
+++ b/ash/default_wallpaper_delegate.cc
@@ -0,0 +1,46 @@
+// 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_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 DefaultWallpaperDelegate::GetAnimationType() {
+ return ::wm::WINDOW_VISIBILITY_ANIMATION_TYPE_FADE;
+}
+
+int DefaultWallpaperDelegate::GetAnimationDurationOverride() {
+ return 0;
+}
+
+void DefaultWallpaperDelegate::SetAnimationDurationOverride(
+ int animation_duration_in_ms) {}
+
+bool DefaultWallpaperDelegate::ShouldShowInitialAnimation() {
+ return false;
+}
+
+void DefaultWallpaperDelegate::UpdateWallpaper(bool clear_cache) {}
+
+void DefaultWallpaperDelegate::InitializeWallpaper() {
+ ash::Shell::GetInstance()
+ ->desktop_background_controller()
+ ->CreateEmptyWallpaper();
+}
+
+void DefaultWallpaperDelegate::OpenSetWallpaperPage() {}
+
+bool DefaultWallpaperDelegate::CanOpenSetWallpaperPage() {
+ return false;
+}
+
+void DefaultWallpaperDelegate::OnWallpaperAnimationFinished() {}
+
+void DefaultWallpaperDelegate::OnWallpaperBootAnimationFinished() {}
+
+} // namespace ash
« no previous file with comments | « ash/default_wallpaper_delegate.h ('k') | ash/desktop_background/desktop_background_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698