Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
| 6 #define CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 6 #define CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
| (...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 855 // input: { "windex": 1, "tab_index": 1 } | 855 // input: { "windex": 1, "tab_index": 1 } |
| 856 // output: { "url": "http://www.google.com" } | 856 // output: { "url": "http://www.google.com" } |
| 857 void GetTabURLJSON(DictionaryValue* args, IPC::Message* reply_message); | 857 void GetTabURLJSON(DictionaryValue* args, IPC::Message* reply_message); |
| 858 | 858 |
| 859 // Get the current url of the specified tab. Uses the JSON interface. | 859 // Get the current url of the specified tab. Uses the JSON interface. |
| 860 // Example: | 860 // Example: |
| 861 // input: { "windex": 1, "tab_index": 1 } | 861 // input: { "windex": 1, "tab_index": 1 } |
| 862 // output: { "title": "Google" } | 862 // output: { "title": "Google" } |
| 863 void GetTabTitleJSON(DictionaryValue* args, IPC::Message* reply_message); | 863 void GetTabTitleJSON(DictionaryValue* args, IPC::Message* reply_message); |
| 864 | 864 |
| 865 // Captures the entire page of the the specified tab, including the | |
| 866 // non-visible portions of the page, and saves the PNG to a file. | |
| 867 // Example: | |
| 868 // input: { "windex": 1, "tab_index": 1, "path:"file location"} | |
|
kkania
2011/03/22 21:08:56
fix the comment (it is missing a quote and should
Joe
2011/03/22 22:08:19
Done.
| |
| 869 // output: none | |
| 870 void CaptureEntirePageJSON( | |
| 871 DictionaryValue* args, IPC::Message* reply_message); | |
| 872 | |
| 865 // Gets the cookies for the given URL. Uses the JSON interface. | 873 // Gets the cookies for the given URL. Uses the JSON interface. |
| 866 // Example: | 874 // Example: |
| 867 // input: { "windex": 1, "tab_index": 1, "url": "http://www.google.com" } | 875 // input: { "windex": 1, "tab_index": 1, "url": "http://www.google.com" } |
| 868 // output: { "cookies": "PREF=12012" } | 876 // output: { "cookies": "PREF=12012" } |
| 869 void GetCookiesJSON(DictionaryValue* args, IPC::Message* reply_message); | 877 void GetCookiesJSON(DictionaryValue* args, IPC::Message* reply_message); |
| 870 | 878 |
| 871 // Deletes the cookie with the given name for the URL. Uses the JSON | 879 // Deletes the cookie with the given name for the URL. Uses the JSON |
| 872 // interface. | 880 // interface. |
| 873 // Example: | 881 // Example: |
| 874 // input: { "windex": 1, | 882 // input: { "windex": 1, |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1049 // Used to enumerate browser profiles. | 1057 // Used to enumerate browser profiles. |
| 1050 scoped_refptr<ImporterList> importer_list_; | 1058 scoped_refptr<ImporterList> importer_list_; |
| 1051 | 1059 |
| 1052 // The stored data for the ImportSettings operation. | 1060 // The stored data for the ImportSettings operation. |
| 1053 ImportSettingsData import_settings_data_; | 1061 ImportSettingsData import_settings_data_; |
| 1054 | 1062 |
| 1055 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); | 1063 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); |
| 1056 }; | 1064 }; |
| 1057 | 1065 |
| 1058 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 1066 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
| OLD | NEW |