OLD | NEW |
---|---|
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_AUTOMATION_UI_CONTROLS_INTERNAL_H_ | 5 #ifndef CHROME_BROWSER_AUTOMATION_UI_CONTROLS_INTERNAL_H_ |
6 #define CHROME_BROWSER_AUTOMATION_UI_CONTROLS_INTERNAL_H_ | 6 #define CHROME_BROWSER_AUTOMATION_UI_CONTROLS_INTERNAL_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "chrome/browser/automation/ui_controls.h" | 9 #include "chrome/browser/automation/ui_controls.h" |
10 | 10 |
11 namespace ui_controls { | 11 namespace ui_controls { |
12 namespace internal { | |
12 | 13 |
13 // A utility function to send a mouse click event in a closure. It's shared by | 14 // A utility function to send a mouse click event in a closure. It's shared by |
14 // ui_controls_linux.cc and ui_controls_mac.cc | 15 // ui_controls_linux.cc and ui_controls_mac.cc |
15 void ClickTask(MouseButton button, int state, const base::Closure& followup); | 16 void ClickTask(MouseButton button, int state, const base::Closure& followup); |
16 | 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(ui::KeyboardCode key, | |
22 bool control, bool shift, bool alt, | |
sky
2011/11/22 00:28:33
nit: each param on its own line here and 25.
oshima
2011/11/22 01:36:10
Done.
| |
23 const base::Closure& task); | |
24 bool SendMouseMoveImpl(long x, long y, const base::Closure& task); | |
25 bool SendMouseEventsImpl(MouseButton type, int state, | |
26 const base::Closure& task); | |
27 #endif | |
28 | |
29 } // namespace internal | |
17 } // namespace ui_controls | 30 } // namespace ui_controls |
18 | 31 |
19 #endif // CHROME_BROWSER_AUTOMATION_UI_CONTROLS_INTERNAL_H_ | 32 #endif // CHROME_BROWSER_AUTOMATION_UI_CONTROLS_INTERNAL_H_ |
OLD | NEW |