1 // Copyright (c) 2020 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 5 #ifndef UI_BASE_WIN_EVENT_CREATION_UTILS_H_ 6 #define UI_BASE_WIN_EVENT_CREATION_UTILS_H_ 7 8 #include "base/component_export.h" 9 10 namespace gfx { 11 class Point; 12 } // namespace gfx 13 14 namespace ui { 15 16 // Send a mouse event to Windows input queue using ::SendInput, to screen 17 // point |point|. Returns true if the mouse event was sent, false if not. 18 COMPONENT_EXPORT(UI_BASE) 19 bool SendMouseEvent(const gfx::Point& point, int flags); 20 21 } // namespace ui 22 23 #endif // UI_BASE_WIN_EVENT_CREATION_UTILS_H_ 24