Chromium Code Reviews| Index: chrome/test/webdriver/webdriver_automation.cc |
| diff --git a/chrome/test/webdriver/webdriver_automation.cc b/chrome/test/webdriver/webdriver_automation.cc |
| index f64bf370f578aa313fa7a44c6c24a72c8d78210e..ab8c181cf7920ecfd2195f629ae8b4335fdc931e 100644 |
| --- a/chrome/test/webdriver/webdriver_automation.cc |
| +++ b/chrome/test/webdriver/webdriver_automation.cc |
| @@ -742,6 +742,13 @@ void Automation::SetViewBounds(const WebViewId& view_id, |
| *error = Error::FromAutomationError(auto_error); |
| } |
| +void Automation::Maximize(const WebViewId& view_id, Error** error) { |
| + automation::Error auto_error; |
|
kkania
2012/05/23 17:58:42
Also, can you return a nicer error for the user if
zori
2012/05/24 00:39:33
Done.
|
| + if (!SendMaximizeJSONRequest( |
| + automation(), view_id, &auto_error)) |
| + *error = Error::FromAutomationError(auto_error); |
| +} |
| + |
| void Automation::GetAppModalDialogMessage(std::string* message, Error** error) { |
| *error = CheckAlertsSupported(); |
| if (*error) |