| OLD | NEW |
| 1 // Copyright (c) 2009 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_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> |
| 11 | 11 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 bool SendMouseClick(MouseButton type); | 82 bool SendMouseClick(MouseButton type); |
| 83 | 83 |
| 84 // A combination of SendMouseMove to the middle of the view followed by | 84 // A combination of SendMouseMove to the middle of the view followed by |
| 85 // SendMouseEvents. | 85 // SendMouseEvents. |
| 86 void MoveMouseToCenterAndPress( | 86 void MoveMouseToCenterAndPress( |
| 87 #if defined(TOOLKIT_VIEWS) | 87 #if defined(TOOLKIT_VIEWS) |
| 88 views::View* view, | 88 views::View* view, |
| 89 #elif defined(TOOLKIT_GTK) | 89 #elif defined(TOOLKIT_GTK) |
| 90 GtkWidget* widget, | 90 GtkWidget* widget, |
| 91 #elif defined(OS_MACOSX) | 91 #elif defined(OS_MACOSX) |
| 92 NSWindow* window, | 92 NSView* view, |
| 93 #endif | 93 #endif |
| 94 MouseButton button, | 94 MouseButton button, |
| 95 int state, | 95 int state, |
| 96 Task* task); | 96 Task* task); |
| 97 | 97 |
| 98 } // ui_controls | 98 } // ui_controls |
| 99 | 99 |
| 100 #endif // CHROME_BROWSER_AUTOMATION_UI_CONTROLS_H_ | 100 #endif // CHROME_BROWSER_AUTOMATION_UI_CONTROLS_H_ |
| OLD | NEW |