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 // Get the current tab view as a PNG file in raw binary format. | |
|
kkania
2011/03/17 18:35:11
change comment to
// Captures the entire page of
Joe
2011/03/18 00:33:32
Done.
| |
| 866 // Example: | |
| 867 // input: { "windex": 1, "tab_index": 1 } | |
|
kkania
2011/03/17 18:35:11
you function takes more inputs than this. Add them
Joe
2011/03/18 00:33:32
Done.
| |
| 868 // output: none | |
|
kkania
2011/03/17 18:35:11
the output is the dictionary you write in PageSnap
Joe
2011/03/18 00:33:32
Done.
| |
| 869 void CaptureEntirePageJSON( | |
| 870 DictionaryValue* args, IPC::Message* reply_message); | |
| 871 | |
| 865 // Gets the cookies for the given URL. Uses the JSON interface. | 872 // Gets the cookies for the given URL. Uses the JSON interface. |
| 866 // Example: | 873 // Example: |
| 867 // input: { "windex": 1, "tab_index": 1, "url": "http://www.google.com" } | 874 // input: { "windex": 1, "tab_index": 1, "url": "http://www.google.com" } |
| 868 // output: { "cookies": "PREF=12012" } | 875 // output: { "cookies": "PREF=12012" } |
| 869 void GetCookiesJSON(DictionaryValue* args, IPC::Message* reply_message); | 876 void GetCookiesJSON(DictionaryValue* args, IPC::Message* reply_message); |
| 870 | 877 |
| 871 // Deletes the cookie with the given name for the URL. Uses the JSON | 878 // Deletes the cookie with the given name for the URL. Uses the JSON |
| 872 // interface. | 879 // interface. |
| 873 // Example: | 880 // Example: |
| 874 // input: { "windex": 1, | 881 // input: { "windex": 1, |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1049 // Used to enumerate browser profiles. | 1056 // Used to enumerate browser profiles. |
| 1050 scoped_refptr<ImporterList> importer_list_; | 1057 scoped_refptr<ImporterList> importer_list_; |
| 1051 | 1058 |
| 1052 // The stored data for the ImportSettings operation. | 1059 // The stored data for the ImportSettings operation. |
| 1053 ImportSettingsData import_settings_data_; | 1060 ImportSettingsData import_settings_data_; |
| 1054 | 1061 |
| 1055 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); | 1062 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); |
| 1056 }; | 1063 }; |
| 1057 | 1064 |
| 1058 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 1065 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
| OLD | NEW |