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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 const gfx::Point& location, | 86 const gfx::Point& location, |
87 const std::vector<FilePath::StringType>& paths, | 87 const std::vector<FilePath::StringType>& paths, |
88 Error** error); | 88 Error** error); |
89 | 89 |
90 // Captures a snapshot of the tab to the specified path. The PNG will | 90 // Captures a snapshot of the tab to the specified path. The PNG will |
91 // contain the entire page, including what is not in the current view | 91 // contain the entire page, including what is not in the current view |
92 // on the screen. | 92 // on the screen. |
93 void CaptureEntirePageAsPNG(int tab_id, const FilePath& path, Error** error); | 93 void CaptureEntirePageAsPNG(int tab_id, const FilePath& path, Error** error); |
94 | 94 |
95 void NavigateToURL(int tab_id, const std::string& url, Error** error); | 95 void NavigateToURL(int tab_id, const std::string& url, Error** error); |
| 96 void NavigateToURLAsync(int tab_id, const std::string& url, Error** error); |
96 void GoForward(int tab_id, Error** error); | 97 void GoForward(int tab_id, Error** error); |
97 void GoBack(int tab_id, Error** error); | 98 void GoBack(int tab_id, Error** error); |
98 void Reload(int tab_id, Error** error); | 99 void Reload(int tab_id, Error** error); |
99 | 100 |
100 void GetCookies(const std::string& url, | 101 void GetCookies(const std::string& url, |
101 base::ListValue** cookies, | 102 base::ListValue** cookies, |
102 Error** error); | 103 Error** error); |
103 void DeleteCookie(const std::string& url, | 104 void DeleteCookie(const std::string& url, |
104 const std::string& cookie_name, | 105 const std::string& cookie_name, |
105 Error** error); | 106 Error** error); |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 scoped_ptr<ProxyLauncher> launcher_; | 169 scoped_ptr<ProxyLauncher> launcher_; |
169 | 170 |
170 DISALLOW_COPY_AND_ASSIGN(Automation); | 171 DISALLOW_COPY_AND_ASSIGN(Automation); |
171 }; | 172 }; |
172 | 173 |
173 } // namespace webdriver | 174 } // namespace webdriver |
174 | 175 |
175 DISABLE_RUNNABLE_METHOD_REFCOUNT(webdriver::Automation); | 176 DISABLE_RUNNABLE_METHOD_REFCOUNT(webdriver::Automation); |
176 | 177 |
177 #endif // CHROME_TEST_WEBDRIVER_AUTOMATION_H_ | 178 #endif // CHROME_TEST_WEBDRIVER_AUTOMATION_H_ |
OLD | NEW |