#include "ui/views/controls/menu/menu_runner_impl_adapter.h"
#include <utility>
#include "ui/views/controls/menu/menu_item_view.h"
#include "ui/views/controls/menu/menu_model_adapter.h"
#include "ui/views/controls/menu/menu_runner_impl.h"
namespace views::internal {
MenuRunnerImplAdapter::MenuRunnerImplAdapter(
ui::MenuModel* menu_model,
base::RepeatingClosure on_menu_done_callback)
: … { … }
bool MenuRunnerImplAdapter::IsRunning() const { … }
void MenuRunnerImplAdapter::Release() { … }
void MenuRunnerImplAdapter::RunMenuAt(
Widget* parent,
MenuButtonController* button_controller,
const gfx::Rect& bounds,
MenuAnchorPosition anchor,
int32_t types,
gfx::NativeView native_view_for_gestures,
std::optional<gfx::RoundedCornersF> corners,
std::optional<std::string> show_menu_host_duration_histogram) { … }
void MenuRunnerImplAdapter::Cancel() { … }
base::TimeTicks MenuRunnerImplAdapter::GetClosingEventTime() const { … }
MenuRunnerImplAdapter::~MenuRunnerImplAdapter() = default;
}