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

Side by Side Diff: ash/default_user_wallpaper_delegate.cc

Issue 2095193002: clang-format all of //ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
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_user_wallpaper_delegate.h" 5 #include "ash/default_user_wallpaper_delegate.h"
6 6
7 #include "ash/desktop_background/desktop_background_controller.h" 7 #include "ash/desktop_background/desktop_background_controller.h"
8 #include "ash/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 DefaultUserWallpaperDelegate::GetAnimationType() { 13 int DefaultUserWallpaperDelegate::GetAnimationType() {
14 return ::wm::WINDOW_VISIBILITY_ANIMATION_TYPE_FADE; 14 return ::wm::WINDOW_VISIBILITY_ANIMATION_TYPE_FADE;
15 } 15 }
16 16
17 int DefaultUserWallpaperDelegate::GetAnimationDurationOverride() { 17 int DefaultUserWallpaperDelegate::GetAnimationDurationOverride() {
18 return 0; 18 return 0;
19 } 19 }
20 20
21 void DefaultUserWallpaperDelegate::SetAnimationDurationOverride( 21 void DefaultUserWallpaperDelegate::SetAnimationDurationOverride(
22 int animation_duration_in_ms) { 22 int animation_duration_in_ms) {}
23 }
24 23
25 bool DefaultUserWallpaperDelegate::ShouldShowInitialAnimation() { 24 bool DefaultUserWallpaperDelegate::ShouldShowInitialAnimation() {
26 return false; 25 return false;
27 } 26 }
28 27
29 void DefaultUserWallpaperDelegate::UpdateWallpaper(bool clear_cache) { 28 void DefaultUserWallpaperDelegate::UpdateWallpaper(bool clear_cache) {}
29
30 void DefaultUserWallpaperDelegate::InitializeWallpaper() {
31 ash::Shell::GetInstance()
32 ->desktop_background_controller()
33 ->CreateEmptyWallpaper();
30 } 34 }
31 35
32 void DefaultUserWallpaperDelegate::InitializeWallpaper() { 36 void DefaultUserWallpaperDelegate::OpenSetWallpaperPage() {}
33 ash::Shell::GetInstance()->desktop_background_controller()->
34 CreateEmptyWallpaper();
35 }
36
37 void DefaultUserWallpaperDelegate::OpenSetWallpaperPage() {
38 }
39 37
40 bool DefaultUserWallpaperDelegate::CanOpenSetWallpaperPage() { 38 bool DefaultUserWallpaperDelegate::CanOpenSetWallpaperPage() {
41 return false; 39 return false;
42 } 40 }
43 41
44 void DefaultUserWallpaperDelegate::OnWallpaperAnimationFinished() { 42 void DefaultUserWallpaperDelegate::OnWallpaperAnimationFinished() {}
45 }
46 43
47 void DefaultUserWallpaperDelegate::OnWallpaperBootAnimationFinished() { 44 void DefaultUserWallpaperDelegate::OnWallpaperBootAnimationFinished() {}
48 }
49 45
50 } // namespace ash 46 } // namespace ash
OLDNEW
« no previous file with comments | « ash/content/keyboard_overlay/keyboard_overlay_view.cc ('k') | ash/desktop_background/desktop_background_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698