| Index: chrome/test/webdriver/webdriver_session.cc
|
| diff --git a/chrome/test/webdriver/webdriver_session.cc b/chrome/test/webdriver/webdriver_session.cc
|
| index 4e704c8c62baf17cf83c3a289084cb005979c6ab..13e4834e68ed6f0c74878c0b67b7868d42b5102d 100644
|
| --- a/chrome/test/webdriver/webdriver_session.cc
|
| +++ b/chrome/test/webdriver/webdriver_session.cc
|
| @@ -665,7 +665,7 @@ Error* Session::SwitchToFrameWithIndex(int index) {
|
| // tagName of the frameElement. If child frame N is from another domain, then
|
| // the following will run afoul of the same origin policy:
|
| // window.frames[N].frameElement;
|
| - // Instead of indexing window.frames, we use a an XPath expression to index
|
| + // Instead of indexing window.frames, we use an XPath expression to index
|
| // into the list of all IFRAME and FRAME elements on the page - if we find
|
| // something, then that XPath expression can be used as the new frame's XPath.
|
| std::string script =
|
| @@ -790,6 +790,16 @@ Error* Session::SetWindowBounds(
|
| return error;
|
| }
|
|
|
| +Error* Session::MaximizeWindow(const WebViewId& window) {
|
| + Error* error = NULL;
|
| + RunSessionTask(base::Bind(
|
| + &Automation::MaximizeView,
|
| + base::Unretained(automation_.get()),
|
| + window,
|
| + &error));
|
| + return error;
|
| +}
|
| +
|
| Error* Session::GetAlertMessage(std::string* text) {
|
| Error* error = NULL;
|
| RunSessionTask(base::Bind(
|
|
|