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

Unified Diff: ash/wallpaper/wallpaper_controller.cc

Issue 2906693003: [mus+ash] Removes WmWindow from screen_dimmer and video_detector (Closed)
Patch Set: [mus+ash] Removes WmWindow from screen_dimmer and video_detector Created 3 years, 7 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 | « ash/wallpaper/wallpaper_controller.h ('k') | ash/wallpaper/wallpaper_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wallpaper/wallpaper_controller.cc
diff --git a/ash/wallpaper/wallpaper_controller.cc b/ash/wallpaper/wallpaper_controller.cc
index 8ebe54a50af035d8f0498f9cb2f0365d70695a1b..002449d84d571d28853e5f0d682a09ca1de03767 100644
--- a/ash/wallpaper/wallpaper_controller.cc
+++ b/ash/wallpaper/wallpaper_controller.cc
@@ -18,7 +18,6 @@
#include "ash/wallpaper/wallpaper_delegate.h"
#include "ash/wallpaper/wallpaper_view.h"
#include "ash/wallpaper/wallpaper_widget_controller.h"
-#include "ash/wm_window.h"
#include "base/bind.h"
#include "base/command_line.h"
#include "base/logging.h"
@@ -187,7 +186,7 @@ void WallpaperController::OnDisplayConfigurationChanged() {
}
}
-void WallpaperController::OnRootWindowAdded(WmWindow* root_window) {
+void WallpaperController::OnRootWindowAdded(aura::Window* root_window) {
// The wallpaper hasn't been set yet.
if (wallpaper_mode_ == WALLPAPER_NONE)
return;
@@ -291,7 +290,7 @@ void WallpaperController::OnColorCalculationComplete() {
SetProminentColor(color);
}
-void WallpaperController::InstallDesktopController(WmWindow* root_window) {
+void WallpaperController::InstallDesktopController(aura::Window* root_window) {
WallpaperWidgetController* component = nullptr;
int container_id = GetWallpaperContainerId(locked_);
@@ -306,23 +305,22 @@ void WallpaperController::InstallDesktopController(WmWindow* root_window) {
return;
}
- RootWindowController* controller = root_window->GetRootWindowController();
+ RootWindowController* controller =
+ RootWindowController::ForWindow(root_window);
controller->SetAnimatingWallpaperWidgetController(
new AnimatingWallpaperWidgetController(component));
component->StartAnimating(controller);
}
void WallpaperController::InstallDesktopControllerForAllWindows() {
- for (WmWindow* root : ShellPort::Get()->GetAllRootWindows())
+ for (aura::Window* root : Shell::GetAllRootWindows())
InstallDesktopController(root);
current_max_display_size_ = GetMaxDisplaySizeInNative();
}
bool WallpaperController::ReparentWallpaper(int container) {
bool moved = false;
- for (WmWindow* root_window : ShellPort::Get()->GetAllRootWindows()) {
- RootWindowController* root_window_controller =
- root_window->GetRootWindowController();
+ for (auto* root_window_controller : Shell::GetAllRootWindowControllers()) {
// In the steady state (no animation playing) the wallpaper widget
// controller exists in the RootWindowController.
WallpaperWidgetController* wallpaper_widget_controller =
« no previous file with comments | « ash/wallpaper/wallpaper_controller.h ('k') | ash/wallpaper/wallpaper_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698