Chromium Code Reviews| 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, const gfx::Point& location, | |
| 80 const std::vector<std::string>& paths, | |
|
kkania
2011/06/15 02:33:12
one arg per line please
nodchip
2011/06/15 07:58:27
Done.
| |
| 81 Error** error); | |
| 82 | |
| 78 // Captures a snapshot of the tab to the specified path. The PNG will | 83 // 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 | 84 // contain the entire page, including what is not in the current view |
| 80 // on the screen. | 85 // on the screen. |
| 81 void CaptureEntirePageAsPNG(int tab_id, const FilePath& path, Error** error); | 86 void CaptureEntirePageAsPNG(int tab_id, const FilePath& path, Error** error); |
| 82 | 87 |
| 83 void NavigateToURL(int tab_id, const std::string& url, Error** error); | 88 void NavigateToURL(int tab_id, const std::string& url, Error** error); |
| 84 void GoForward(int tab_id, Error** error); | 89 void GoForward(int tab_id, Error** error); |
| 85 void GoBack(int tab_id, Error** error); | 90 void GoBack(int tab_id, Error** error); |
| 86 void Reload(int tab_id, Error** error); | 91 void Reload(int tab_id, Error** error); |
| 87 | 92 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 158 scoped_ptr<ProxyLauncher> launcher_; | 163 scoped_ptr<ProxyLauncher> launcher_; |
| 159 | 164 |
| 160 DISALLOW_COPY_AND_ASSIGN(Automation); | 165 DISALLOW_COPY_AND_ASSIGN(Automation); |
| 161 }; | 166 }; |
| 162 | 167 |
| 163 } // namespace webdriver | 168 } // namespace webdriver |
| 164 | 169 |
| 165 DISABLE_RUNNABLE_METHOD_REFCOUNT(webdriver::Automation); | 170 DISABLE_RUNNABLE_METHOD_REFCOUNT(webdriver::Automation); |
| 166 | 171 |
| 167 #endif // CHROME_TEST_WEBDRIVER_AUTOMATION_H_ | 172 #endif // CHROME_TEST_WEBDRIVER_AUTOMATION_H_ |
| OLD | NEW |