| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 void ExecuteScript(int tab_id, | 63 void ExecuteScript(int tab_id, |
| 64 const std::string& frame_xpath, | 64 const std::string& frame_xpath, |
| 65 const std::string& script, | 65 const std::string& script, |
| 66 std::string* result, | 66 std::string* result, |
| 67 bool* success); | 67 bool* success); |
| 68 | 68 |
| 69 // Sends a key event to the current browser. Waits until the key has | 69 // Sends a key event to the current browser. Waits until the key has |
| 70 // been processed by the web page. | 70 // been processed by the web page. |
| 71 void SendWebKeyEvent(int tab_id, const WebKeyEvent& key_event, bool* success); | 71 void SendWebKeyEvent(int tab_id, const WebKeyEvent& key_event, bool* success); |
| 72 | 72 |
| 73 // Captures the entire tab as a PNG and saves it to a file specified in path. |
| 74 void CaptureEntirePageAsPNG(int tab_id, const FilePath& path, bool* success); |
| 75 |
| 73 void NavigateToURL(int tab_id, const std::string& url, bool* success); | 76 void NavigateToURL(int tab_id, const std::string& url, bool* success); |
| 74 void GoForward(int tab_id, bool* success); | 77 void GoForward(int tab_id, bool* success); |
| 75 void GoBack(int tab_id, bool* success); | 78 void GoBack(int tab_id, bool* success); |
| 76 void Reload(int tab_id, bool* success); | 79 void Reload(int tab_id, bool* success); |
| 77 void GetURL(int tab_id, std::string* url, bool* success); | 80 void GetURL(int tab_id, std::string* url, bool* success); |
| 78 void GetGURL(int tab_id, GURL* gurl, bool* success); | 81 void GetGURL(int tab_id, GURL* gurl, bool* success); |
| 79 void GetTabTitle(int tab_id, std::string* tab_title, bool* success); | 82 void GetTabTitle(int tab_id, std::string* tab_title, bool* success); |
| 80 void GetCookies( | 83 void GetCookies( |
| 81 int tab_id, const GURL& gurl, std::string* cookies, bool* success); | 84 int tab_id, const GURL& gurl, std::string* cookies, bool* success); |
| 82 void GetCookieByName(int tab_id, | 85 void GetCookieByName(int tab_id, |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 int tab_id, const DictionaryValue& dict, std::string* reply); | 128 int tab_id, const DictionaryValue& dict, std::string* reply); |
| 126 | 129 |
| 127 DISALLOW_COPY_AND_ASSIGN(Automation); | 130 DISALLOW_COPY_AND_ASSIGN(Automation); |
| 128 }; | 131 }; |
| 129 | 132 |
| 130 } // namespace webdriver | 133 } // namespace webdriver |
| 131 | 134 |
| 132 DISABLE_RUNNABLE_METHOD_REFCOUNT(webdriver::Automation); | 135 DISABLE_RUNNABLE_METHOD_REFCOUNT(webdriver::Automation); |
| 133 | 136 |
| 134 #endif // CHROME_TEST_WEBDRIVER_AUTOMATION_H_ | 137 #endif // CHROME_TEST_WEBDRIVER_AUTOMATION_H_ |
| OLD | NEW |