blob: f7d0c931dc8256c159f998a0033d038fc34191dd [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <vector>
#include "ash/ash_export.h"
namespace aura {
class Window;
namespace gfx {
class Rect;
namespace ash {
namespace wm {
// Returns the first ancestor of |window| that has a known container ID.
ASH_EXPORT aura::Window* GetContainerForWindow(aura::Window* window);
// Returns the parent to add |window| to. This is generally used when a window
// is moved from one root to another.
ASH_EXPORT aura::Window* GetDefaultParent(aura::Window* window,
const gfx::Rect& bounds);
// Returns the list of containers that match |container_id| in all root windows.
// If |priority_root| is non-null, the container in |priority_root| is placed at
// the front of the list.
ASH_EXPORT std::vector<aura::Window*> GetContainersFromAllRootWindows(
int container_id,
aura::Window* priority_root = nullptr);
} // namespace wm
} // namespace ash