| Index: chrome/test/webdriver/webdriver_automation.cc
|
| diff --git a/chrome/test/webdriver/webdriver_automation.cc b/chrome/test/webdriver/webdriver_automation.cc
|
| index 3af0033e012ef0e06b48c616de23c1547121829b..b78093f32fd90ead2dfaecde2ea0848ac23578bf 100644
|
| --- a/chrome/test/webdriver/webdriver_automation.cc
|
| +++ b/chrome/test/webdriver/webdriver_automation.cc
|
| @@ -881,6 +881,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)
|
| @@ -1159,4 +1170,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(1160, message);
|
| +}
|
| +
|
| } // namespace webdriver
|
|
|