OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_H_ | 5 #ifndef CHROME_BROWSER_AUTOMATION_UI_CONTROLS_H_ |
6 #define CHROME_BROWSER_AUTOMATION_UI_CONTROLS_H_ | 6 #define CHROME_BROWSER_AUTOMATION_UI_CONTROLS_H_ |
7 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 24 matching lines...) Expand all Loading... |
35 // | 35 // |
36 // SendKeyPress(...); | 36 // SendKeyPress(...); |
37 // SendKeyPressNotifyWhenDone(..., task); | 37 // SendKeyPressNotifyWhenDone(..., task); |
38 // | 38 // |
39 // might trigger |task| early. | 39 // might trigger |task| early. |
40 // | 40 // |
41 // Note: Windows does not currently do anything with the |window| argument for | 41 // Note: Windows does not currently do anything with the |window| argument for |
42 // these functions, so passing NULL is ok. | 42 // these functions, so passing NULL is ok. |
43 | 43 |
44 // Send a key press with/without modifier keys. | 44 // Send a key press with/without modifier keys. |
| 45 // |key| should be a VKEY code as defined in base/keyboard_codes.h |
45 bool SendKeyPress(gfx::NativeWindow window, wchar_t key, bool control, | 46 bool SendKeyPress(gfx::NativeWindow window, wchar_t key, bool control, |
46 bool shift, bool alt); | 47 bool shift, bool alt); |
47 bool SendKeyPressNotifyWhenDone(gfx::NativeWindow window, wchar_t key, | 48 bool SendKeyPressNotifyWhenDone(gfx::NativeWindow window, wchar_t key, |
48 bool control, bool shift, | 49 bool control, bool shift, |
49 bool alt, Task* task); | 50 bool alt, Task* task); |
50 | 51 |
51 // Simulate a mouse move. (x,y) are absolute screen coordinates. | 52 // Simulate a mouse move. (x,y) are absolute screen coordinates. |
52 bool SendMouseMove(long x, long y); | 53 bool SendMouseMove(long x, long y); |
53 bool SendMouseMoveNotifyWhenDone(long x, long y, Task* task); | 54 bool SendMouseMoveNotifyWhenDone(long x, long y, Task* task); |
54 | 55 |
(...skipping 25 matching lines...) Expand all Loading... |
80 #elif defined(OS_LINUX) | 81 #elif defined(OS_LINUX) |
81 GtkWidget* widget, | 82 GtkWidget* widget, |
82 #endif | 83 #endif |
83 MouseButton button, | 84 MouseButton button, |
84 int state, | 85 int state, |
85 Task* task); | 86 Task* task); |
86 | 87 |
87 } // ui_controls | 88 } // ui_controls |
88 | 89 |
89 #endif // CHROME_BROWSER_AUTOMATION_UI_CONTROLS_H_ | 90 #endif // CHROME_BROWSER_AUTOMATION_UI_CONTROLS_H_ |
OLD | NEW |