| 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..cd3590ea1915f77aa14b18e37c47a149aafa2ae7 100644
|
| --- a/chrome/test/webdriver/webdriver_automation.cc
|
| +++ b/chrome/test/webdriver/webdriver_automation.cc
|
| @@ -742,6 +742,17 @@ void Automation::SetViewBounds(const WebViewId& view_id,
|
| *error = Error::FromAutomationError(auto_error);
|
| }
|
|
|
| +void Automation::MaximizeView(const WebViewId& view_id, Error** error) {
|
| + *error = CheckMaximizeSupported();
|
| + if (*error)
|
| + return;
|
| +
|
| + automation::Error auto_error;
|
| + if (!SendMaximizeJSONRequest(
|
| + automation(), view_id, &auto_error))
|
| + *error = Error::FromAutomationError(auto_error);
|
| +}
|
| +
|
| void Automation::GetAppModalDialogMessage(std::string* message, Error** error) {
|
| *error = CheckAlertsSupported();
|
| if (*error)
|
| @@ -1020,4 +1031,11 @@ Error* Automation::CheckGeolocationSupported() {
|
| return CheckVersion(1119, message);
|
| }
|
|
|
| +Error* Automation::CheckMaximizeSupported() {
|
| + const char* message =
|
| + "Maximize automation interface is not supported for this version of "
|
| + "Chrome.";
|
| + return CheckVersion(1148, message);
|
| +}
|
| +
|
| } // namespace webdriver
|
|
|