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