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

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: 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/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..9003141a4aa23a1f15378ead4f9e86311b87700f 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", "Maximize");
kkania 2012/05/23 17:49:20 This is different from what you had in testing_aut
zori 2012/05/24 00:39:33 True, that's how a unit test would have been usefu
+ id.UpdateDictionary(&dict, "auto_id");
+
+ DictionaryValue reply_dict;
+ return SendAutomationJSONRequest(sender, dict, &reply_dict, error);
+}
+
bool SendGetAppModalDialogMessageJSONRequest(
AutomationMessageSender* sender,
std::string* message,

Powered by Google App Engine
This is Rietveld 408576698