1 // Copyright (c) 2012 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_UI_CONTROLS_UI_CONTROLS_INTERNAL_H_
6 #define UI_UI_CONTROLS_UI_CONTROLS_INTERNAL_H_
8 #include "base/callback_forward.h"
9 #include "ui/ui_controls/ui_controls.h"
10 #include "ui/base/ui_export.h"
12 namespace ui_controls
{
15 // A utility functions for windows to send key or mouse events and
16 // run the task. These functions are internal, but exported so that
17 // aura implementation can use these utility functions.
18 UI_EXPORT
bool SendKeyPressImpl(HWND hwnd
,
23 const base::Closure
& task
);
24 UI_EXPORT
bool SendMouseMoveImpl(long x
, long y
, const base::Closure
& task
);
25 UI_EXPORT
bool SendMouseEventsImpl(MouseButton type
,
27 const base::Closure
& task
);
28 UI_EXPORT
void RunClosureAfterAllPendingUITasksImpl(const base::Closure
& task
);
30 } // namespace internal
31 } // namespace ui_controls
33 #endif // UI_BASE_UI_CONTROLS_UI_CONTROLS_INTERNAL_H_