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

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

Issue 2896273004: chromeos: converts PanelLayoutManager to aura::Window (Closed)
Patch Set: feedback 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/wm/container_finder.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 71c1ef9d979cf500c094aec0710967d718cd85c2..51a739a21e92dd01b23083292cd1c68a4dbd66e6 100644
--- a/ash/wm/overview/window_selector.cc
+++ b/ash/wm/overview/window_selector.cc
@@ -268,7 +268,7 @@ 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.
- PanelLayoutManager::Get(WmWindow::Get(root))->SetShowCalloutWidgets(false);
+ PanelLayoutManager::Get(root)->SetShowCalloutWidgets(false);
std::unique_ptr<WindowGrid> grid(new WindowGrid(root, windows, this));
if (grid->empty())
@@ -337,8 +337,7 @@ void WindowSelector::Shutdown() {
ResetFocusRestoreWindow(true);
RemoveAllObservers();
- std::vector<WmWindow*> root_windows = ShellPort::Get()->GetAllRootWindows();
- for (WmWindow* window : root_windows) {
+ for (aura::Window* window : Shell::GetAllRootWindows()) {
// Un-hide the callout widgets for panels. It is safe to call this for
// root_windows that don't contain any panel windows.
PanelLayoutManager::Get(window)->SetShowCalloutWidgets(true);
« no previous file with comments | « ash/wm/container_finder.cc ('k') | ash/wm/overview/window_selector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698