#include "ui/ozone/common/base_keyboard_hook.h"
#include <utility>
#include "base/containers/contains.h"
#include "ui/events/keycodes/dom/dom_code.h"
namespace ui {
BaseKeyboardHook::BaseKeyboardHook(
std::optional<base::flat_set<DomCode>> dom_codes,
KeyEventCallback callback)
: … { … }
BaseKeyboardHook::~BaseKeyboardHook() = default;
bool BaseKeyboardHook::IsKeyLocked(DomCode dom_code) const { … }
bool BaseKeyboardHook::ShouldCaptureKeyEvent(DomCode dom_code) const { … }
void BaseKeyboardHook::ForwardCapturedKeyEvent(KeyEvent* event) { … }
}