keyboard_hook_monitor_utils.cc 535 B

12345678910111213141516171819
  1. // Copyright 2021 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "ui/events/test/keyboard_hook_monitor_utils.h"
  5. #include "ui/events/win/keyboard_hook_monitor_impl.h"
  6. namespace ui {
  7. void SimulateKeyboardHookRegistered() {
  8. KeyboardHookMonitorImpl::GetInstance()->NotifyHookRegistered();
  9. }
  10. void SimulateKeyboardHookUnregistered() {
  11. KeyboardHookMonitorImpl::GetInstance()->NotifyHookUnregistered();
  12. }
  13. } // namespace ui