#include "ui/views/interaction/widget_focus_observer.h"
#include <iterator>
#include "base/functional/bind.h"
#include "base/logging.h"
namespace views::test {
namespace internal {
namespace {
WidgetFocusSupplierFrame* g_current_supplier_frame = …;
}
WidgetFocusSupplier::WidgetFocusSupplier() = default;
WidgetFocusSupplier::~WidgetFocusSupplier() = default;
base::CallbackListSubscription
WidgetFocusSupplier::AddWidgetFocusChangedCallback(
WidgetFocusChangedCallback callback) { … }
void WidgetFocusSupplier::OnWidgetFocusChanged(gfx::NativeView focused_now) { … }
WidgetFocusSupplierFrame::WidgetFocusSupplierFrame() { … }
WidgetFocusSupplierFrame::~WidgetFocusSupplierFrame() { … }
Widget* WidgetFocusSupplierFrame::GetActiveWidget() { … }
WidgetFocusSupplierFrame* WidgetFocusSupplierFrame::GetCurrentFrame() { … }
}
WidgetFocusObserver::WidgetFocusObserver() { … }
WidgetFocusObserver::~WidgetFocusObserver() = default;
gfx::NativeView WidgetFocusObserver::GetStateObserverInitialState() const { … }
void WidgetFocusObserver::OnWidgetFocusChanged(gfx::NativeView focused_now) { … }
DEFINE_STATE_IDENTIFIER_VALUE(…);
}