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

Unified Diff: ash/wm/overview/window_selector.cc

Issue 1918883002: Makes Panel related classes use ash/wm/common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@phantom_window_controller
Patch Set: feedback Created 4 years, 8 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/wm/drag_window_resizer.cc ('k') | ash/wm/overview/window_selector_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/overview/window_selector.cc
diff --git a/ash/wm/overview/window_selector.cc b/ash/wm/overview/window_selector.cc
index 267d4334a02a71a71b9542a024f36863db1b9e70..ac6cf83b9b0d26a5a5020b984b2569c7ea617ab7 100644
--- a/ash/wm/overview/window_selector.cc
+++ b/ash/wm/overview/window_selector.cc
@@ -17,6 +17,7 @@
#include "ash/shell.h"
#include "ash/shell_window_ids.h"
#include "ash/switchable_windows.h"
+#include "ash/wm/aura/wm_window_aura.h"
#include "ash/wm/mru_window_tracker.h"
#include "ash/wm/overview/window_grid.h"
#include "ash/wm/overview/window_selector_delegate.h"
@@ -278,9 +279,8 @@ void WindowSelector::Init(const WindowList& windows) {
// Hide the callout widgets for panels. It is safe to call this for
// root windows that don't contain any panel windows.
- static_cast<PanelLayoutManager*>(
- Shell::GetContainer(*iter, kShellWindowId_PanelContainer)
- ->layout_manager())->SetShowCalloutWidgets(false);
+ PanelLayoutManager::Get(wm::WmWindowAura::Get(*iter))
+ ->SetShowCalloutWidgets(false);
std::unique_ptr<WindowGrid> grid(new WindowGrid(*iter, windows, this));
if (grid->empty())
@@ -340,9 +340,8 @@ void WindowSelector::Shutdown() {
iter != root_windows.end(); iter++) {
// Un-hide the callout widgets for panels. It is safe to call this for
// root_windows that don't contain any panel windows.
- static_cast<PanelLayoutManager*>(
- Shell::GetContainer(*iter, kShellWindowId_PanelContainer)
- ->layout_manager())->SetShowCalloutWidgets(true);
+ PanelLayoutManager::Get(wm::WmWindowAura::Get(*iter))
+ ->SetShowCalloutWidgets(true);
}
size_t remaining_items = 0;
« no previous file with comments | « ash/wm/drag_window_resizer.cc ('k') | ash/wm/overview/window_selector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698