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 dfb8f78983892f65bd396f9fe647195366721d0e..f7f7c7a294a7caae610acc9ba0ca52b6acdea88c 100644 |
| --- a/chrome/test/webdriver/webdriver_automation.cc |
| +++ b/chrome/test/webdriver/webdriver_automation.cc |
| @@ -710,6 +710,21 @@ void Automation::CloseView(const WebViewId& view_id, Error** error) { |
| *error = Error::FromAutomationError(auto_error); |
| } |
| +void Automation::SetViewBounds(const WebViewId& view_id, |
| + const Rect& bounds, |
| + Error** error) { |
| + automation::Error auto_error; |
| + if (!SendSetViewBoundsJSONRequest( |
| + automation(), |
| + view_id, |
| + bounds.x(), |
| + bounds.y(), |
| + bounds.width(), |
| + bounds.height(), |
| + &auto_error)) |
|
dennis_jeffrey
2012/01/27 16:23:29
nit: fit as many params on a line as you can, rath
kkania
2012/01/27 22:48:31
Done.
|
| + *error = Error::FromAutomationError(auto_error); |
| +} |
| + |
| void Automation::GetAppModalDialogMessage(std::string* message, Error** error) { |
| *error = CheckAlertsSupported(); |
| if (*error) |