ui_controls_internal_win.h 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. // Copyright 2013 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. #ifndef UI_BASE_TEST_UI_CONTROLS_INTERNAL_WIN_H_
  5. #define UI_BASE_TEST_UI_CONTROLS_INTERNAL_WIN_H_
  6. #include "base/callback_forward.h"
  7. #include "ui/base/test/ui_controls.h"
  8. namespace ui_controls {
  9. namespace internal {
  10. // A utility functions for windows to send key or mouse events and
  11. // run the task. These functions are internal, but exported so that
  12. // aura implementation can use these utility functions.
  13. bool SendKeyPressImpl(HWND hwnd,
  14. ui::KeyboardCode key,
  15. bool control,
  16. bool shift,
  17. bool alt,
  18. base::OnceClosure task);
  19. bool SendMouseMoveImpl(int screen_x, int screen_y, base::OnceClosure task);
  20. bool SendMouseEventsImpl(MouseButton type,
  21. int button_state,
  22. base::OnceClosure task,
  23. int accelerator_state);
  24. bool SendTouchEventsImpl(int action, int num, int x, int y);
  25. } // namespace internal
  26. } // namespace ui_controls
  27. #endif // UI_BASE_TEST_UI_CONTROLS_INTERNAL_WIN_H_