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.
5 #ifndef UI_BASE_TEST_UI_CONTROLS_INTERNAL_WIN_H_
6 #define UI_BASE_TEST_UI_CONTROLS_INTERNAL_WIN_H_
8 #include "base/callback_forward.h"
9 #include "ui/base/test/ui_controls.h"
11 namespace ui_controls
{
14 // A utility functions for windows to send key or mouse events and
15 // run the task. These functions are internal, but exported so that
16 // aura implementation can use these utility functions.
17 bool SendKeyPressImpl(HWND hwnd
,
22 const base::Closure
& task
);
23 bool SendMouseMoveImpl(long x
, long y
, const base::Closure
& task
);
24 bool SendMouseEventsImpl(MouseButton type
,
26 const base::Closure
& task
);
27 void RunClosureAfterAllPendingUITasksImpl(const base::Closure
& task
);
29 } // namespace internal
30 } // namespace ui_controls
32 #endif // UI_BASE_TEST_UI_CONTROLS_INTERNAL_WIN_H_