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

Unified Diff: chrome/browser/automation/testing_automation_provider.h

Issue 5572001: Send screenshots back to the client for debugging (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: need to push again to make sure rietveld didn't screw up 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/browser/automation/testing_automation_provider.h
diff --git a/chrome/browser/automation/testing_automation_provider.h b/chrome/browser/automation/testing_automation_provider.h
index c44429e8b7ed06b229a8daf6ca6352666c3bec48..c40244f7ead6b7c41aff8b4af0fc93e463a895a0 100644
--- a/chrome/browser/automation/testing_automation_provider.h
+++ b/chrome/browser/automation/testing_automation_provider.h
@@ -358,11 +358,6 @@ class TestingAutomationProvider : public AutomationProvider,
// Returns the number of blocked popups in the tab |handle|.
void GetBlockedPopupCount(int handle, int* count);
- // Captures the entire page for the given tab and saves it as PNG at the
- // given path.
- void CaptureEntirePageAsPNG(int tab_handle, const FilePath& path,
- IPC::Message* reply_message);
-
// Generic pattern for pyautolib
// Uses the JSON interface for input/output.
void SendJSONRequest(int handle,
@@ -862,6 +857,14 @@ class TestingAutomationProvider : public AutomationProvider,
// output: { "title": "Google" }
void GetTabTitleJSON(DictionaryValue* args, IPC::Message* reply_message);
+ // Captures the entire page of the the specified tab, including the
+ // non-visible portions of the page, and saves the PNG to a file.
+ // Example:
+ // input: { "windex": 1, "tab_index": 1, "path":"/tmp/foo.png"}
+ // output: none
+ void CaptureEntirePageJSON(
+ DictionaryValue* args, IPC::Message* reply_message);
+
// Gets the cookies for the given URL. Uses the JSON interface.
// "expiry" refers to the amount of seconds since the Unix epoch. If omitted,
// the cookie is valid for the duration of the browser session.
« no previous file with comments | « chrome/browser/automation/automation_provider_observers.cc ('k') | chrome/browser/automation/testing_automation_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698