#include "ui/views/interaction/interactive_views_test.h"
#include <functional>
#include <optional>
#include <string_view>
#include <variant>
#include "base/functional/callback_forward.h"
#include "base/functional/overloaded.h"
#include "base/strings/strcat.h"
#include "base/test/bind.h"
#include "build/build_config.h"
#include "ui/base/interaction/element_tracker.h"
#include "ui/base/interaction/interaction_sequence.h"
#include "ui/base/interaction/interaction_test_util.h"
#include "ui/base/test/ui_controls.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/views/interaction/interaction_test_util_views.h"
#include "ui/views/view_tracker.h"
#if BUILDFLAG(IS_MAC)
#include "ui/base/interaction/interaction_test_util_mac.h"
#endif
namespace views::test {
SpecifyElement;
namespace {
auto CreateTestUtil() { … }
}
kInteractiveTestPivotElementId;
InteractiveViewsTestApi::InteractiveViewsTestApi()
: … { … }
InteractiveViewsTestApi::InteractiveViewsTestApi(
std::unique_ptr<internal::InteractiveViewsTestPrivate> private_test_impl)
: … { … }
InteractiveViewsTestApi::~InteractiveViewsTestApi() = default;
ui::InteractionSequence::StepBuilder InteractiveViewsTestApi::NameView(
std::string_view name,
AbsoluteViewSpecifier spec) { … }
ui::InteractionSequence::StepBuilder InteractiveViewsTestApi::NameChildView(
ElementSpecifier parent,
std::string_view name,
ChildViewSpecifier spec) { … }
ui::InteractionSequence::StepBuilder
InteractiveViewsTestApi::NameDescendantView(ElementSpecifier parent,
std::string_view name,
ViewMatcher matcher) { … }
InteractiveViewsTestApi::StepBuilder InteractiveViewsTestApi::ScrollIntoView(
ElementSpecifier view) { … }
InteractiveViewsTestApi::StepBuilder InteractiveViewsTestApi::MoveMouseTo(
ElementSpecifier reference,
RelativePositionSpecifier position) { … }
InteractiveViewsTestApi::StepBuilder InteractiveViewsTestApi::MoveMouseTo(
AbsolutePositionSpecifier position) { … }
InteractiveViewsTestApi::StepBuilder InteractiveViewsTestApi::ClickMouse(
ui_controls::MouseButton button,
bool release) { … }
InteractiveViewsTestApi::StepBuilder InteractiveViewsTestApi::DragMouseTo(
ElementSpecifier reference,
RelativePositionSpecifier position,
bool release) { … }
InteractiveViewsTestApi::StepBuilder InteractiveViewsTestApi::DragMouseTo(
AbsolutePositionSpecifier position,
bool release) { … }
InteractiveViewsTestApi::StepBuilder InteractiveViewsTestApi::ReleaseMouse(
ui_controls::MouseButton button) { … }
InteractiveViewsTestApi::FindViewCallback
InteractiveViewsTestApi::GetFindViewCallback(AbsoluteViewSpecifier spec) { … }
InteractiveViewsTestApi::FindViewCallback
InteractiveViewsTestApi::GetFindViewCallback(ChildViewSpecifier spec) { … }
View* InteractiveViewsTestApi::FindMatchingView(const View* from,
ViewMatcher& matcher,
bool recursive) { … }
void InteractiveViewsTestApi::SetContextWidget(Widget* widget) { … }
InteractiveViewsTestApi::RelativePositionCallback
InteractiveViewsTestApi::GetPositionCallback(AbsolutePositionSpecifier spec) { … }
InteractiveViewsTestApi::RelativePositionCallback
InteractiveViewsTestApi::GetPositionCallback(RelativePositionSpecifier spec) { … }
}