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

Side by Side Diff: ash/default_wallpaper_delegate.cc

Issue 2738133003: Promotes a handful of members from WmShell to Shell (Closed)
Patch Set: merge Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « ash/common/wm_shell.cc ('k') | ash/magnifier/magnification_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/default_wallpaper_delegate.h" 5 #include "ash/default_wallpaper_delegate.h"
6 6
7 #include "ash/common/wallpaper/wallpaper_controller.h" 7 #include "ash/common/wallpaper/wallpaper_controller.h"
8 #include "ash/common/wm_shell.h" 8 #include "ash/shell.h"
9 #include "ui/wm/core/window_animations.h" 9 #include "ui/wm/core/window_animations.h"
10 10
11 namespace ash { 11 namespace ash {
12 12
13 int DefaultWallpaperDelegate::GetAnimationType() { 13 int DefaultWallpaperDelegate::GetAnimationType() {
14 return ::wm::WINDOW_VISIBILITY_ANIMATION_TYPE_FADE; 14 return ::wm::WINDOW_VISIBILITY_ANIMATION_TYPE_FADE;
15 } 15 }
16 16
17 int DefaultWallpaperDelegate::GetAnimationDurationOverride() { 17 int DefaultWallpaperDelegate::GetAnimationDurationOverride() {
18 return 0; 18 return 0;
19 } 19 }
20 20
21 void DefaultWallpaperDelegate::SetAnimationDurationOverride( 21 void DefaultWallpaperDelegate::SetAnimationDurationOverride(
22 int animation_duration_in_ms) {} 22 int animation_duration_in_ms) {}
23 23
24 bool DefaultWallpaperDelegate::ShouldShowInitialAnimation() { 24 bool DefaultWallpaperDelegate::ShouldShowInitialAnimation() {
25 return false; 25 return false;
26 } 26 }
27 27
28 void DefaultWallpaperDelegate::UpdateWallpaper(bool clear_cache) {} 28 void DefaultWallpaperDelegate::UpdateWallpaper(bool clear_cache) {}
29 29
30 void DefaultWallpaperDelegate::InitializeWallpaper() { 30 void DefaultWallpaperDelegate::InitializeWallpaper() {
31 WmShell::Get()->wallpaper_controller()->CreateEmptyWallpaper(); 31 Shell::GetInstance()->wallpaper_controller()->CreateEmptyWallpaper();
32 } 32 }
33 33
34 bool DefaultWallpaperDelegate::CanOpenSetWallpaperPage() { 34 bool DefaultWallpaperDelegate::CanOpenSetWallpaperPage() {
35 return false; 35 return false;
36 } 36 }
37 37
38 void DefaultWallpaperDelegate::OnWallpaperAnimationFinished() {} 38 void DefaultWallpaperDelegate::OnWallpaperAnimationFinished() {}
39 39
40 void DefaultWallpaperDelegate::OnWallpaperBootAnimationFinished() {} 40 void DefaultWallpaperDelegate::OnWallpaperBootAnimationFinished() {}
41 41
42 } // namespace ash 42 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/wm_shell.cc ('k') | ash/magnifier/magnification_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698