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

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

Issue 5572001: Send screenshots back to the client for debugging (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: changed PageSnapshotTaker to use JSON interface Created 9 years, 9 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 7ac9369c34dbef49cfbaaef2865ad6550a75e5de..a271f00ffca3309c9ada89701f5ff990b37caed3 100644
--- a/chrome/test/automation/automation_json_requests.cc
+++ b/chrome/test/automation/automation_json_requests.cc
@@ -4,6 +4,7 @@
#include "chrome/test/automation/automation_json_requests.h"
+#include "base/file_path.h"
#include "base/scoped_ptr.h"
#include "base/values.h"
#include "base/json/json_reader.h"
@@ -195,6 +196,21 @@ bool SendReloadJSONRequest(
return SendAutomationJSONRequest(sender, dict, &reply_dict);
}
+bool SendCaptureEntirePageJSONRequest(
+ AutomationMessageSender* sender,
+ int browser_index,
+ int tab_index,
+ const FilePath& path) {
+ DictionaryValue dict;
+ dict.SetString("command", "CaptureEntirePage");
+ dict.SetInteger("windex", browser_index);
+ dict.SetInteger("tab_index", tab_index);
+ dict.SetString("path", path.value());
+ DictionaryValue reply_dict;
+
+ return SendAutomationJSONRequest(sender, dict, &reply_dict);
+}
+
bool SendGetTabURLJSONRequest(
AutomationMessageSender* sender,
int browser_index,

Powered by Google App Engine
This is Rietveld 408576698