| Index: chrome/test/webdriver/automation.cc
|
| diff --git a/chrome/test/webdriver/automation.cc b/chrome/test/webdriver/automation.cc
|
| index ed6fa93ea21cec5b1cceab76532e94076e7bebd8..b384abb676dc4cb1e72baed4d6ef3245842b0c39 100644
|
| --- a/chrome/test/webdriver/automation.cc
|
| +++ b/chrome/test/webdriver/automation.cc
|
| @@ -245,6 +245,18 @@ void Automation::SendWebKeyEvent(int tab_id,
|
| }
|
| }
|
|
|
| +void Automation::CaptureEntirePageAsPNG(int tab_id,
|
| + const FilePath& path,
|
| + bool* success) {
|
| + TabProxy* tab = GetTabById(tab_id);
|
| + if (!tab) {
|
| + *success = false;
|
| + return;
|
| + }
|
| +
|
| + *success = tab->CaptureEntirePageAsPNG(path);
|
| +}
|
| +
|
| void Automation::NavigateToURL(int tab_id,
|
| const std::string& url,
|
| bool* success) {
|
|
|