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

Unified Diff: chrome/test/automation/automation_json_requests.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/automation/automation_json_requests.cc
diff --git a/chrome/test/automation/automation_json_requests.cc b/chrome/test/automation/automation_json_requests.cc
index a9e349c0dd3121e9e3eb0ccf5a572051ae4bd1e1..af122f64b3693d1683830e726b7b486dc5c0a4dc 100644
--- a/chrome/test/automation/automation_json_requests.cc
+++ b/chrome/test/automation/automation_json_requests.cc
@@ -674,6 +674,26 @@ bool SendDragAndDropFilePathsJSONRequest(
return SendAutomationJSONRequest(sender, dict, &reply_dict, error);
}
+bool SendSetViewBoundsJSONRequest(
+ AutomationMessageSender* sender,
+ const WebViewId& id,
+ int x,
+ int y,
+ int width,
+ int height,
+ automation::Error* error) {
+ DictionaryValue dict;
+ dict.SetString("command", "SetViewBounds");
+ id.UpdateDictionary(&dict, "auto_id");
+ dict.SetInteger("bounds.x", x);
+ dict.SetInteger("bounds.y", y);
+ dict.SetInteger("bounds.width", width);
+ dict.SetInteger("bounds.height", height);
+
+ 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/chrome_commands.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698