chromium/ui/views/test/widget_show_state_waiter.cc

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ui/views/test/widget_show_state_waiter.h"

#include "base/run_loop.h"
#include "ui/base/ui_base_types.h"
#include "ui/views/widget/widget.h"
#include "ui/views/widget/widget_observer.h"

namespace views::test {

namespace {

bool IsWidgetInShowState(Widget* widget, ui::WindowShowState show_state) {}

// Use in tests to wait until a Widget's show state changes to a particular
// value. To use create and call Wait().
class WidgetShowStateWaiter : public WidgetObserver {};

}  // namespace

void WaitForWidgetShowState(Widget* widget, ui::WindowShowState show_state) {}

}  // namespace views::test