Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7732)

Unified Diff: chrome/test/webdriver/webdriver_automation.cc

Issue 9288051: Implement the webdriver window sizing commands. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)

Powered by Google App Engine
This is Rietveld 408576698