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

Unified Diff: ash/accelerators/accelerator_controller_delegate_aura.cc

Issue 2318223003: mash: Migrate wallpaper controllers to ash/common. (Closed)
Patch Set: Cleanup. Created 4 years, 3 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 | « no previous file | ash/ash.gyp » ('j') | ash/aura/wm_root_window_controller_aura.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/accelerators/accelerator_controller_delegate_aura.cc
diff --git a/ash/accelerators/accelerator_controller_delegate_aura.cc b/ash/accelerators/accelerator_controller_delegate_aura.cc
index bb430d3df2a29edb390d669197889c8b90b71c95..cedf66fd1ababf21b148ad2cdb22b8c1bcc15bb8 100644
--- a/ash/accelerators/accelerator_controller_delegate_aura.cc
+++ b/ash/accelerators/accelerator_controller_delegate_aura.cc
@@ -20,6 +20,7 @@
#include "ash/common/shell_window_ids.h"
#include "ash/common/system/system_notifier.h"
#include "ash/common/system/tray/system_tray.h"
+#include "ash/common/wallpaper/wallpaper_controller.h"
#include "ash/common/wallpaper/wallpaper_delegate.h"
#include "ash/common/wm/maximize_mode/maximize_mode_controller.h"
#include "ash/common/wm/window_state.h"
@@ -38,7 +39,6 @@
#include "ash/shell.h"
#include "ash/touch/touch_hud_debug.h"
#include "ash/utility/screenshot_controller.h"
-#include "ash/wallpaper/wallpaper_controller.h"
#include "ash/wm/power_button_controller.h"
#include "ash/wm/window_state_aura.h"
#include "ash/wm/window_util.h"
@@ -246,7 +246,7 @@ gfx::ImageSkia CreateWallpaperImage(SkColor fill, SkColor rect) {
void HandleToggleWallpaperMode() {
James Cook 2016/09/07 21:27:05 Can this accelerator be moved to ash/common/accele
msw 2016/09/07 22:28:24 Done.
static int index = 0;
WallpaperController* wallpaper_controller =
- Shell::GetInstance()->wallpaper_controller();
+ WmShell::Get()->wallpaper_controller();
switch (++index % 4) {
case 0:
ash::WmShell::Get()->wallpaper_delegate()->InitializeWallpaper();
« no previous file with comments | « no previous file | ash/ash.gyp » ('j') | ash/aura/wm_root_window_controller_aura.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698