| OLD | NEW |
| (Empty) |
| 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. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_AUTOMATION_UI_CONTROLS_INTERNAL_H_ | |
| 6 #define CHROME_BROWSER_AUTOMATION_UI_CONTROLS_INTERNAL_H_ | |
| 7 | |
| 8 #include "base/callback_forward.h" | |
| 9 #include "chrome/browser/automation/ui_controls.h" | |
| 10 | |
| 11 namespace ui_controls { | |
| 12 namespace internal { | |
| 13 | |
| 14 // A utility function to send a mouse click event in a closure. It's shared by | |
| 15 // ui_controls_linux.cc and ui_controls_mac.cc | |
| 16 void ClickTask(MouseButton button, int state, const base::Closure& followup); | |
| 17 | |
| 18 #if defined(OS_WIN) | |
| 19 // A utility functions for windows to send key or mouse events and | |
| 20 // run the task. | |
| 21 bool SendKeyPressImpl(gfx::NativeWindow window, | |
| 22 ui::KeyboardCode key, | |
| 23 bool control, | |
| 24 bool shift, | |
| 25 bool alt, | |
| 26 const base::Closure& task); | |
| 27 bool SendMouseMoveImpl(long x, long y, const base::Closure& task); | |
| 28 bool SendMouseEventsImpl(MouseButton type, | |
| 29 int state, | |
| 30 const base::Closure& task); | |
| 31 void RunClosureAfterAllPendingUITasksImpl(const base::Closure& task); | |
| 32 #endif | |
| 33 | |
| 34 } // namespace internal | |
| 35 } // namespace ui_controls | |
| 36 | |
| 37 #endif // CHROME_BROWSER_AUTOMATION_UI_CONTROLS_INTERNAL_H_ | |
| OLD | NEW |