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

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
« no previous file with comments | « chrome/test/webdriver/webdriver_automation.h ('k') | chrome/test/webdriver/webdriver_error.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..835a1e8810dc2e773f4040d66ce5d8c883cbafae 100644
--- a/chrome/test/webdriver/webdriver_automation.cc
+++ b/chrome/test/webdriver/webdriver_automation.cc
@@ -710,6 +710,16 @@ 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))
+ *error = Error::FromAutomationError(auto_error);
+}
+
void Automation::GetAppModalDialogMessage(std::string* message, Error** error) {
*error = CheckAlertsSupported();
if (*error)
« no previous file with comments | « chrome/test/webdriver/webdriver_automation.h ('k') | chrome/test/webdriver/webdriver_error.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698