OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_TEST_WEBDRIVER_AUTOMATION_H_ | 5 #ifndef CHROME_TEST_WEBDRIVER_AUTOMATION_H_ |
6 #define CHROME_TEST_WEBDRIVER_AUTOMATION_H_ | 6 #define CHROME_TEST_WEBDRIVER_AUTOMATION_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 const WebKeyEvent& key_event, | 68 const WebKeyEvent& key_event, |
69 Error** error); | 69 Error** error); |
70 | 70 |
71 // Sends an OS level key event to the current browser. Waits until the key | 71 // Sends an OS level key event to the current browser. Waits until the key |
72 // has been processed by the browser. | 72 // has been processed by the browser. |
73 void SendNativeKeyEvent(int tab_id, | 73 void SendNativeKeyEvent(int tab_id, |
74 ui::KeyboardCode key_code, | 74 ui::KeyboardCode key_code, |
75 int modifiers, | 75 int modifiers, |
76 Error** error); | 76 Error** error); |
77 | 77 |
| 78 // Drag and drop the file paths to the given location. |
| 79 void DragAndDropFilePaths(int tab_id, |
| 80 const gfx::Point& location, |
| 81 const std::vector<std::string>& paths, |
| 82 Error** error); |
| 83 |
78 // Captures a snapshot of the tab to the specified path. The PNG will | 84 // Captures a snapshot of the tab to the specified path. The PNG will |
79 // contain the entire page, including what is not in the current view | 85 // contain the entire page, including what is not in the current view |
80 // on the screen. | 86 // on the screen. |
81 void CaptureEntirePageAsPNG(int tab_id, const FilePath& path, Error** error); | 87 void CaptureEntirePageAsPNG(int tab_id, const FilePath& path, Error** error); |
82 | 88 |
83 void NavigateToURL(int tab_id, const std::string& url, Error** error); | 89 void NavigateToURL(int tab_id, const std::string& url, Error** error); |
84 void GoForward(int tab_id, Error** error); | 90 void GoForward(int tab_id, Error** error); |
85 void GoBack(int tab_id, Error** error); | 91 void GoBack(int tab_id, Error** error); |
86 void Reload(int tab_id, Error** error); | 92 void Reload(int tab_id, Error** error); |
87 | 93 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 scoped_ptr<ProxyLauncher> launcher_; | 164 scoped_ptr<ProxyLauncher> launcher_; |
159 | 165 |
160 DISALLOW_COPY_AND_ASSIGN(Automation); | 166 DISALLOW_COPY_AND_ASSIGN(Automation); |
161 }; | 167 }; |
162 | 168 |
163 } // namespace webdriver | 169 } // namespace webdriver |
164 | 170 |
165 DISABLE_RUNNABLE_METHOD_REFCOUNT(webdriver::Automation); | 171 DISABLE_RUNNABLE_METHOD_REFCOUNT(webdriver::Automation); |
166 | 172 |
167 #endif // CHROME_TEST_WEBDRIVER_AUTOMATION_H_ | 173 #endif // CHROME_TEST_WEBDRIVER_AUTOMATION_H_ |
OLD | NEW |