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. | |
| 866 // Example: // input: { "windex": 1, "tab_index": 1 } | |
|
kkania
2011/03/16 18:19:10
format this like the one above
Joe
2011/03/17 00:15:25
Done.
| |
| 867 // output: { "png": raw binary data as a string } | |
|
kkania
2011/03/16 18:19:10
the output does not have a 'png' key. The output r
Joe
2011/03/17 00:15:25
Done.
| |
| 868 void GetScreenShotJSON(DictionaryValue* args, IPC::Message* reply_message); | |
|
kkania
2011/03/16 18:19:10
it's not really a screenshot, it is the entire pag
Joe
2011/03/17 00:15:25
Done.
| |
| 869 | |
| 865 // Gets the cookies for the given URL. Uses the JSON interface. | 870 // Gets the cookies for the given URL. Uses the JSON interface. |
| 866 // Example: | 871 // Example: |
| 867 // input: { "windex": 1, "tab_index": 1, "url": "http://www.google.com" } | 872 // input: { "windex": 1, "tab_index": 1, "url": "http://www.google.com" } |
| 868 // output: { "cookies": "PREF=12012" } | 873 // output: { "cookies": "PREF=12012" } |
| 869 void GetCookiesJSON(DictionaryValue* args, IPC::Message* reply_message); | 874 void GetCookiesJSON(DictionaryValue* args, IPC::Message* reply_message); |
| 870 | 875 |
| 871 // Deletes the cookie with the given name for the URL. Uses the JSON | 876 // Deletes the cookie with the given name for the URL. Uses the JSON |
| 872 // interface. | 877 // interface. |
| 873 // Example: | 878 // Example: |
| 874 // input: { "windex": 1, | 879 // input: { "windex": 1, |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1049 // Used to enumerate browser profiles. | 1054 // Used to enumerate browser profiles. |
| 1050 scoped_refptr<ImporterList> importer_list_; | 1055 scoped_refptr<ImporterList> importer_list_; |
| 1051 | 1056 |
| 1052 // The stored data for the ImportSettings operation. | 1057 // The stored data for the ImportSettings operation. |
| 1053 ImportSettingsData import_settings_data_; | 1058 ImportSettingsData import_settings_data_; |
| 1054 | 1059 |
| 1055 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); | 1060 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); |
| 1056 }; | 1061 }; |
| 1057 | 1062 |
| 1058 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 1063 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
| OLD | NEW |