OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/common/wallpaper/wallpaper_controller.h" | 5 #include "ash/common/wallpaper/wallpaper_controller.h" |
6 | 6 |
7 #include "ash/common/shell_window_ids.h" | |
8 #include "ash/common/wallpaper/wallpaper_controller_observer.h" | 7 #include "ash/common/wallpaper/wallpaper_controller_observer.h" |
9 #include "ash/common/wallpaper/wallpaper_delegate.h" | 8 #include "ash/common/wallpaper/wallpaper_delegate.h" |
10 #include "ash/common/wallpaper/wallpaper_view.h" | 9 #include "ash/common/wallpaper/wallpaper_view.h" |
11 #include "ash/common/wallpaper/wallpaper_widget_controller.h" | 10 #include "ash/common/wallpaper/wallpaper_widget_controller.h" |
12 #include "ash/common/wm_root_window_controller.h" | 11 #include "ash/common/wm_root_window_controller.h" |
13 #include "ash/common/wm_shell.h" | 12 #include "ash/common/wm_shell.h" |
14 #include "ash/common/wm_window.h" | 13 #include "ash/common/wm_window.h" |
| 14 #include "ash/public/cpp/shell_window_ids.h" |
15 #include "base/bind.h" | 15 #include "base/bind.h" |
16 #include "base/logging.h" | 16 #include "base/logging.h" |
17 #include "base/task_runner.h" | 17 #include "base/task_runner.h" |
18 #include "components/wallpaper/wallpaper_resizer.h" | 18 #include "components/wallpaper/wallpaper_resizer.h" |
19 #include "ui/display/manager/managed_display_info.h" | 19 #include "ui/display/manager/managed_display_info.h" |
20 #include "ui/display/screen.h" | 20 #include "ui/display/screen.h" |
21 #include "ui/views/widget/widget.h" | 21 #include "ui/views/widget/widget.h" |
22 | 22 |
23 namespace ash { | 23 namespace ash { |
24 namespace { | 24 namespace { |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 return locked ? kShellWindowId_LockScreenWallpaperContainer | 244 return locked ? kShellWindowId_LockScreenWallpaperContainer |
245 : kShellWindowId_WallpaperContainer; | 245 : kShellWindowId_WallpaperContainer; |
246 } | 246 } |
247 | 247 |
248 void WallpaperController::UpdateWallpaper(bool clear_cache) { | 248 void WallpaperController::UpdateWallpaper(bool clear_cache) { |
249 current_wallpaper_.reset(); | 249 current_wallpaper_.reset(); |
250 WmShell::Get()->wallpaper_delegate()->UpdateWallpaper(clear_cache); | 250 WmShell::Get()->wallpaper_delegate()->UpdateWallpaper(clear_cache); |
251 } | 251 } |
252 | 252 |
253 } // namespace ash | 253 } // namespace ash |
OLD | NEW |