#include "ui/base/accelerators/accelerator_manager.h"
#include <ostream>
#include "base/check.h"
#include "base/containers/contains.h"
namespace ui {
AcceleratorManager::AcceleratorManager() = default;
AcceleratorManager::~AcceleratorManager() = default;
void AcceleratorManager::Register(
const std::vector<ui::Accelerator>& accelerators,
HandlerPriority priority,
AcceleratorTarget* target) { … }
void AcceleratorManager::Unregister(const Accelerator& accelerator,
AcceleratorTarget* target) { … }
void AcceleratorManager::UnregisterAll(AcceleratorTarget* target) { … }
bool AcceleratorManager::IsRegistered(const Accelerator& accelerator) const { … }
bool AcceleratorManager::Process(const Accelerator& accelerator) { … }
bool AcceleratorManager::HasPriorityHandler(
const Accelerator& accelerator) const { … }
AcceleratorManager::AcceleratorTargetInfo::AcceleratorTargetInfo() = default;
AcceleratorManager::AcceleratorTargetInfo::AcceleratorTargetInfo(
const AcceleratorManager::AcceleratorTargetInfo& other) = default;
AcceleratorManager::AcceleratorTargetInfo&
AcceleratorManager::AcceleratorTargetInfo::operator=(
const AcceleratorManager::AcceleratorTargetInfo& other) = default;
AcceleratorManager::AcceleratorTargetInfo::~AcceleratorTargetInfo() = default;
void AcceleratorManager::AcceleratorTargetInfo::RegisterWithPriority(
AcceleratorTarget* target,
HandlerPriority priority) { … }
bool AcceleratorManager::AcceleratorTargetInfo::Unregister(
AcceleratorTarget* target) { … }
bool AcceleratorManager::AcceleratorTargetInfo::TryProcess(
const Accelerator& accelerator) { … }
bool AcceleratorManager::AcceleratorTargetInfo::HasPriorityHandler() const { … }
bool AcceleratorManager::AcceleratorTargetInfo::Contains(
AcceleratorTarget* target) const { … }
}