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

Unified Diff: ash/common/system/toast/toast_overlay.cc

Issue 2739553005: Moves maintaining root_window_for_new_windows_ to Shell (Closed)
Patch Set: remove ash:: Created 3 years, 9 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/common/scoped_root_window_for_new_windows.cc ('k') | ash/common/wm/container_finder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/toast/toast_overlay.cc
diff --git a/ash/common/system/toast/toast_overlay.cc b/ash/common/system/toast/toast_overlay.cc
index 5bebb73a8ee8bc6d3ba9c9690ffd68878fee1ab8..252098291787f0c572b16517d5312227a56257d0 100644
--- a/ash/common/system/toast/toast_overlay.cc
+++ b/ash/common/system/toast/toast_overlay.cc
@@ -5,10 +5,10 @@
#include "ash/common/system/toast/toast_overlay.h"
#include "ash/common/shelf/wm_shelf.h"
-#include "ash/common/wm_shell.h"
#include "ash/common/wm_window.h"
#include "ash/public/cpp/shell_window_ids.h"
#include "ash/root_window_controller.h"
+#include "ash/shell.h"
#include "ash/strings/grit/ash_strings.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
@@ -54,7 +54,7 @@ const int kToastMinimumWidth = 288;
// Returns the work area bounds for the root window where new windows are added
// (including new toasts).
gfx::Rect GetUserWorkAreaBounds() {
- return WmShelf::ForWindow(WmShell::Get()->GetRootWindowForNewWindows())
+ return WmShelf::ForWindow(Shell::GetWmRootWindowForNewWindows())
->GetUserWorkAreaBounds();
}
@@ -226,8 +226,7 @@ ToastOverlay::ToastOverlay(Delegate* delegate,
params.remove_standard_frame = true;
params.bounds = CalculateOverlayBounds();
// Show toasts above the app list and below the lock screen.
- WmShell::Get()
- ->GetRootWindowForNewWindows()
+ Shell::GetWmRootWindowForNewWindows()
->GetRootWindowController()
->ConfigureWidgetInitParamsForContainer(
overlay_widget_.get(), kShellWindowId_SystemModalContainer, &params);
« no previous file with comments | « ash/common/scoped_root_window_for_new_windows.cc ('k') | ash/common/wm/container_finder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698