blob: 436ab3dd5b441ba43226a63b7a25cfcc87468bce [file] [log] [blame]
// Copyright 2017 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 "base/callback_forward.h"
#include "ui/gfx/native_widget_types.h"
namespace ui {
using SortWindowsByZIndexCallback =
// Returns a list with the windows in |windows| sorted by z-index, from topmost
// to bottommost, via an asynchronous call to |callback| on the current
// sequence. Windows from |windows| that have been deleted by the time
// |callback| runs won't be part of the sorted list.
// TODO(fdoray): Implement this on all platforms.
void SortWindowsByZIndex(const std::vector<gfx::NativeWindow>& windows,
SortWindowsByZIndexCallback callback);
} // namespace ui