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

Side by Side Diff: ash/common/wallpaper/wallpaper_controller.cc

Issue 2430593002: mash: Use ash shell window container ids instead of ash::mojom::Container (Closed)
Patch Set: rebase Created 4 years, 2 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/test/ash_test.h ('k') | ash/common/wallpaper/wallpaper_controller_unittest.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 (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
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
OLDNEW
« no previous file with comments | « ash/common/test/ash_test.h ('k') | ash/common/wallpaper/wallpaper_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698