Chromium Code Reviews| 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..ecff0872182d09a256319152aa7a4b976b05c624 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,20 @@ bool SendReloadJSONRequest( |
| return SendAutomationJSONRequest(sender, dict, &reply_dict); |
| } |
| +bool SendGetScreenShotJSONRequest( |
| + AutomationMessageSender* sender, |
| + int browser_index, |
| + int tab_index, |
| + const FilePath& path) { |
| + DictionaryValue dict; |
| + dict.SetString("command", "GetScreenShot"); |
| + 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); |
|
kkania
2011/03/16 18:19:10
you need to check the value of the "success" key h
Joe
2011/03/17 00:15:25
Done.
|
| +} |
| + |
| bool SendGetTabURLJSONRequest( |
| AutomationMessageSender* sender, |
| int browser_index, |