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

Unified Diff: chrome/test/automation/automation_json_requests.cc

Issue 10388251: Support maximize window command. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: "Since the python bindings are to a newer version now, update chromedriver_tests.py accordingly." Created 8 years, 6 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/automation/automation_json_requests.h ('k') | chrome/test/webdriver/commands/window_commands.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/automation/automation_json_requests.cc
diff --git a/chrome/test/automation/automation_json_requests.cc b/chrome/test/automation/automation_json_requests.cc
index 3a6fb957aea4dc4e024c7a8c049af899d39bf62d..cdb6272e431639aed80be645117320401d988d1c 100644
--- a/chrome/test/automation/automation_json_requests.cc
+++ b/chrome/test/automation/automation_json_requests.cc
@@ -712,6 +712,18 @@ bool SendSetViewBoundsJSONRequest(
return SendAutomationJSONRequest(sender, dict, &reply_dict, error);
}
+bool SendMaximizeJSONRequest(
+ AutomationMessageSender* sender,
+ const WebViewId& id,
+ automation::Error* error) {
+ DictionaryValue dict;
+ dict.SetString("command", "MaximizeView");
+ id.UpdateDictionary(&dict, "auto_id");
+
+ DictionaryValue reply_dict;
+ return SendAutomationJSONRequest(sender, dict, &reply_dict, error);
+}
+
bool SendGetAppModalDialogMessageJSONRequest(
AutomationMessageSender* sender,
std::string* message,
« no previous file with comments | « chrome/test/automation/automation_json_requests.h ('k') | chrome/test/webdriver/commands/window_commands.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698