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

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

Issue 10388251: Support maximize window command. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 f64bf370f578aa313fa7a44c6c24a72c8d78210e..ab8c181cf7920ecfd2195f629ae8b4335fdc931e 100644
--- a/chrome/test/webdriver/webdriver_automation.cc
+++ b/chrome/test/webdriver/webdriver_automation.cc
@@ -742,6 +742,13 @@ void Automation::SetViewBounds(const WebViewId& view_id,
*error = Error::FromAutomationError(auto_error);
}
+void Automation::Maximize(const WebViewId& view_id, Error** error) {
+ automation::Error auto_error;
kkania 2012/05/23 17:58:42 Also, can you return a nicer error for the user if
zori 2012/05/24 00:39:33 Done.
+ if (!SendMaximizeJSONRequest(
+ automation(), view_id, &auto_error))
+ *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