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

Unified Diff: ash/common/wm/container_finder.cc

Issue 2735983006: Renames WmWindowUserData and converts to using aura (Closed)
Patch Set: more cleanup 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
Index: ash/common/wm/container_finder.cc
diff --git a/ash/common/wm/container_finder.cc b/ash/common/wm/container_finder.cc
index bd89b2341a15e0e7f19875c2cc393dc6b4ef51e1..95207ec36931a2c615ba6555ee1a3292ab13685f 100644
--- a/ash/common/wm/container_finder.cc
+++ b/ash/common/wm/container_finder.cc
@@ -14,6 +14,7 @@
#include "ash/public/cpp/window_properties.h"
#include "ash/root_window_controller.h"
#include "ash/shell.h"
+#include "ui/aura/window.h"
#include "ui/gfx/geometry/rect.h"
namespace ash {
@@ -110,12 +111,12 @@ WmWindow* GetDefaultParent(WmWindow* context,
return nullptr;
}
-std::vector<WmWindow*> GetContainersFromAllRootWindows(
+aura::Window::Windows GetContainersFromAllRootWindows(
int container_id,
- WmWindow* priority_root) {
- std::vector<WmWindow*> containers;
- for (WmWindow* root : WmShell::Get()->GetAllRootWindows()) {
- WmWindow* container = root->GetChildByShellWindowId(container_id);
+ aura::Window* priority_root) {
+ aura::Window::Windows containers;
+ for (aura::Window* root : Shell::GetAllRootWindows()) {
+ aura::Window* container = root->GetChildById(container_id);
if (!container)
continue;

Powered by Google App Engine
This is Rietveld 408576698