#ifndef UI_WM_CORE_WINDOW_UTIL_H_
#define UI_WM_CORE_WINDOW_UTIL_H_
#include <vector>
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
#include "ui/wm/core/wm_core_export.h"
namespace aura {
class Window;
}
namespace ui {
class Layer;
class LayerOwner;
class LayerTreeOwner;
}
namespace wm {
WM_CORE_EXPORT void ActivateWindow(aura::Window* window);
WM_CORE_EXPORT void DeactivateWindow(aura::Window* window);
WM_CORE_EXPORT bool IsActiveWindow(aura::Window* window);
WM_CORE_EXPORT bool CanActivateWindow(aura::Window* window);
WM_CORE_EXPORT aura::Window* GetActivatableWindow(aura::Window* window);
WM_CORE_EXPORT aura::Window* GetToplevelWindow(aura::Window* window);
WM_CORE_EXPORT scoped_ptr<ui::LayerTreeOwner> RecreateLayers(
ui::LayerOwner* root);
WM_CORE_EXPORT aura::Window* GetTransientParent(aura::Window* window);
WM_CORE_EXPORT const aura::Window* GetTransientParent(
const aura::Window* window);
WM_CORE_EXPORT const std::vector<aura::Window*>& GetTransientChildren(
const aura::Window* window);
WM_CORE_EXPORT void AddTransientChild(aura::Window* parent,
aura::Window* child);
WM_CORE_EXPORT void RemoveTransientChild(aura::Window* parent,
aura::Window* child);
WM_CORE_EXPORT bool HasTransientAncestor(const aura::Window* window,
const aura::Window* ancestor);
}
#endif