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

Side by Side 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: update for ken's comments 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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"}
869 // output: { "success": true }
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698