blob: d0cde7854986a4d583d009d5d3f2aaa564e20329 [file] [log] [blame]
// Copyright 2022 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.
#ifndef UI_BASE_INTERACTION_INTERACTION_TEST_UTIL_MAC_H_
#define UI_BASE_INTERACTION_INTERACTION_TEST_UTIL_MAC_H_
#include "ui/base/interaction/interaction_test_util.h"
namespace ui {
class TrackedElement;
}
namespace ui::test {
// Mac implementation of InteractionTestUtil::Simulator.
// Add one to your InteractionTestUtil instance to get Mac native menu support.
class InteractionTestUtilSimulatorMac : public InteractionTestUtil::Simulator {
public:
InteractionTestUtilSimulatorMac();
~InteractionTestUtilSimulatorMac() override;
// InteractionTestUtil::Simulator:
bool PressButton(ui::TrackedElement* element, InputType input_type) override;
bool SelectMenuItem(ui::TrackedElement* element,
InputType input_type) override;
};
} // namespace ui::test
#endif // UI_BASE_INTERACTION_INTERACTION_TEST_UTIL_MAC_H_