blob: 8226350583154338882152dc1a90edea8ddf7c85 [file] [log] [blame]
// Copyright 2019 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 <array>
#include <vector>
#include "ash/ash_export.h"
namespace aura {
class Window;
} // namespace aura
namespace ash {
namespace desks_util {
constexpr size_t kMaxNumberOfDesks = 4;
ASH_EXPORT std::vector<int> GetDesksContainersIds();
ASH_EXPORT std::vector<aura::Window*> GetDesksContainers(aura::Window* root);
ASH_EXPORT const char* GetDeskContainerName(int container_id);
ASH_EXPORT bool IsDeskContainer(const aura::Window* container);
ASH_EXPORT bool IsDeskContainerId(int id);
ASH_EXPORT int GetActiveDeskContainerId();
ASH_EXPORT bool IsActiveDeskContainer(const aura::Window* container);
ASH_EXPORT aura::Window* GetActiveDeskContainerForRoot(aura::Window* root);
// If |context| is a descendent window of a desk container, return that desk
// container, otherwise return the active desk container.
ASH_EXPORT aura::Window* GetDeskContainerForContext(aura::Window* context);
} // namespace desks_util
} // namespace ash