#include "ui/views/controls/menu/menu_pre_target_handler_aura.h"
#include <memory>
#include "ui/aura/env.h"
#include "ui/aura/window.h"
#include "ui/views/controls/menu/menu_controller.h"
#include "ui/views/widget/widget.h"
#include "ui/wm/public/activation_client.h"
namespace views {
namespace {
aura::Window* GetOwnerRootWindow(views::Widget* owner) { … }
}
MenuPreTargetHandlerAura::MenuPreTargetHandlerAura(MenuController* controller,
Widget* owner)
: … { … }
MenuPreTargetHandlerAura::~MenuPreTargetHandlerAura() { … }
void MenuPreTargetHandlerAura::OnWindowActivated(
wm::ActivationChangeObserver::ActivationReason reason,
aura::Window* gained_active,
aura::Window* lost_active) { … }
void MenuPreTargetHandlerAura::OnWindowDestroying(aura::Window* window) { … }
void MenuPreTargetHandlerAura::OnCancelMode(ui::CancelModeEvent* event) { … }
void MenuPreTargetHandlerAura::OnKeyEvent(ui::KeyEvent* event) { … }
bool MenuPreTargetHandlerAura::ShouldCancelMenuForEvent(
const ui::KeyEvent& event) { … }
void MenuPreTargetHandlerAura::Cleanup() { … }
std::unique_ptr<MenuPreTargetHandler> MenuPreTargetHandler::Create(
MenuController* controller,
Widget* owner) { … }
}