Chromium Code Reviews| Index: chrome/test/webdriver/automation.cc |
| diff --git a/chrome/test/webdriver/automation.cc b/chrome/test/webdriver/automation.cc |
| index cbc8e0e95609f9fc1c55c3372ad2f419b1fcec50..3b93243048794c563963865bb5f327c6ef2da9a4 100644 |
| --- a/chrome/test/webdriver/automation.cc |
| +++ b/chrome/test/webdriver/automation.cc |
| @@ -232,6 +232,20 @@ void Automation::SendWebKeyEvent(int tab_id, |
| automation(), windex, tab_index, key_event); |
| } |
| +void Automation::CaptureEntirePageAsPNG(int tab_id, |
| + const FilePath& path, |
| + bool* success) { |
| + int windex = 0, tab_index = 0; |
| + |
|
kkania
2011/03/17 18:35:11
remove newline here
Joe
2011/03/18 00:33:32
Done.
|
| + if (!GetIndicesForTab(tab_id, &windex, &tab_index)) { |
| + *success = false; |
| + return; |
| + } |
| + |
| + *success = SendCaptureEntirePageJSONRequest( |
| + automation(), windex, tab_index, path); |
| +} |
| + |
| void Automation::NavigateToURL(int tab_id, |
| const std::string& url, |
| bool* success) { |