OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 IPC::Message* reply_message); | 68 IPC::Message* reply_message); |
69 void GetCookies(const GURL& url, int handle, int* value_size, | 69 void GetCookies(const GURL& url, int handle, int* value_size, |
70 std::string* value); | 70 std::string* value); |
71 void SetCookie(const GURL& url, | 71 void SetCookie(const GURL& url, |
72 const std::string value, | 72 const std::string value, |
73 int handle, | 73 int handle, |
74 int* response_value); | 74 int* response_value); |
75 void DeleteCookie(const GURL& url, const std::string& cookie_name, | 75 void DeleteCookie(const GURL& url, const std::string& cookie_name, |
76 int handle, bool* success); | 76 int handle, bool* success); |
77 void ShowCollectedCookiesDialog(int handle, bool* success); | 77 void ShowCollectedCookiesDialog(int handle, bool* success); |
78 void NavigateToURL(int handle, const GURL& url, IPC::Message* reply_message); | |
79 void NavigateToURLBlockUntilNavigationsComplete(int handle, const GURL& url, | 78 void NavigateToURLBlockUntilNavigationsComplete(int handle, const GURL& url, |
80 int number_of_navigations, | 79 int number_of_navigations, |
81 IPC::Message* reply_message); | 80 IPC::Message* reply_message); |
82 void NavigationAsync(int handle, const GURL& url, bool* status); | 81 void NavigationAsync(int handle, const GURL& url, bool* status); |
83 void NavigationAsyncWithDisposition(int handle, | 82 void NavigationAsyncWithDisposition(int handle, |
84 const GURL& url, | 83 const GURL& url, |
85 WindowOpenDisposition disposition, | 84 WindowOpenDisposition disposition, |
86 bool* status); | 85 bool* status); |
87 void GoBack(int handle, IPC::Message* reply_message); | |
88 void GoForward(int handle, IPC::Message* reply_message); | |
89 void Reload(int handle, IPC::Message* reply_message); | 86 void Reload(int handle, IPC::Message* reply_message); |
90 void SetAuth(int tab_handle, const std::wstring& username, | 87 void SetAuth(int tab_handle, const std::wstring& username, |
91 const std::wstring& password, IPC::Message* reply_message); | 88 const std::wstring& password, IPC::Message* reply_message); |
92 void CancelAuth(int tab_handle, IPC::Message* reply_message); | 89 void CancelAuth(int tab_handle, IPC::Message* reply_message); |
93 void NeedsAuth(int tab_handle, bool* needs_auth); | 90 void NeedsAuth(int tab_handle, bool* needs_auth); |
94 void GetRedirectsFrom(int tab_handle, | 91 void GetRedirectsFrom(int tab_handle, |
95 const GURL& source_url, | 92 const GURL& source_url, |
96 IPC::Message* reply_message); | 93 IPC::Message* reply_message); |
97 void GetBrowserWindowCount(int* window_count); | 94 void GetBrowserWindowCount(int* window_count); |
98 void GetNormalBrowserWindowCount(int* window_count); | 95 void GetNormalBrowserWindowCount(int* window_count); |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 | 152 |
156 // Retrieves the individual autocomplete matches displayed by the popup. | 153 // Retrieves the individual autocomplete matches displayed by the popup. |
157 void AutocompleteEditGetMatches(int autocomplete_edit_handle, | 154 void AutocompleteEditGetMatches(int autocomplete_edit_handle, |
158 bool* success, | 155 bool* success, |
159 std::vector<AutocompleteMatchData>* matches); | 156 std::vector<AutocompleteMatchData>* matches); |
160 | 157 |
161 // Waits for the autocomplete edit to receive focus | 158 // Waits for the autocomplete edit to receive focus |
162 void WaitForAutocompleteEditFocus(int autocomplete_edit_handle, | 159 void WaitForAutocompleteEditFocus(int autocomplete_edit_handle, |
163 IPC::Message* reply_message); | 160 IPC::Message* reply_message); |
164 | 161 |
165 // Deprecated. | |
166 void ApplyAccelerator(int handle, int id); | |
167 | |
168 void ExecuteJavascript(int handle, | 162 void ExecuteJavascript(int handle, |
169 const std::wstring& frame_xpath, | 163 const std::wstring& frame_xpath, |
170 const std::wstring& script, | 164 const std::wstring& script, |
171 IPC::Message* reply_message); | 165 IPC::Message* reply_message); |
172 | 166 |
173 void GetConstrainedWindowCount(int handle, int* count); | 167 void GetConstrainedWindowCount(int handle, int* count); |
174 | 168 |
175 #if defined(TOOLKIT_VIEWS) | 169 #if defined(TOOLKIT_VIEWS) |
176 void GetFocusedViewID(int handle, int* view_id); | 170 void GetFocusedViewID(int handle, int* view_id); |
177 | 171 |
(...skipping 12 matching lines...) Expand all Loading... |
190 #endif // defined(TOOLKIT_VIEWS) | 184 #endif // defined(TOOLKIT_VIEWS) |
191 | 185 |
192 void HandleInspectElementRequest(int handle, | 186 void HandleInspectElementRequest(int handle, |
193 int x, | 187 int x, |
194 int y, | 188 int y, |
195 IPC::Message* reply_message); | 189 IPC::Message* reply_message); |
196 | 190 |
197 void GetDownloadDirectory(int handle, FilePath* download_directory); | 191 void GetDownloadDirectory(int handle, FilePath* download_directory); |
198 | 192 |
199 // If |show| is true, call Show() on the new window after creating it. | 193 // If |show| is true, call Show() on the new window after creating it. |
200 void OpenNewBrowserWindow(bool show, IPC::Message* reply_message); | |
201 void OpenNewBrowserWindowOfType(int type, | 194 void OpenNewBrowserWindowOfType(int type, |
202 bool show, | 195 bool show, |
203 IPC::Message* reply_message); | 196 IPC::Message* reply_message); |
204 | 197 |
205 // Retrieves a Browser from a Window and vice-versa. | 198 // Retrieves a Browser from a Window and vice-versa. |
206 void GetWindowForBrowser(int window_handle, bool* success, int* handle); | 199 void GetWindowForBrowser(int window_handle, bool* success, int* handle); |
207 void GetBrowserForWindow(int window_handle, bool* success, | 200 void GetBrowserForWindow(int window_handle, bool* success, |
208 int* browser_handle); | 201 int* browser_handle); |
209 | 202 |
210 void ShowInterstitialPage(int tab_handle, | 203 void ShowInterstitialPage(int tab_handle, |
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
807 // Used to import settings from browser profiles. | 800 // Used to import settings from browser profiles. |
808 scoped_refptr<ImporterHost> importer_host_; | 801 scoped_refptr<ImporterHost> importer_host_; |
809 | 802 |
810 // The stored data for the ImportSettings operation. | 803 // The stored data for the ImportSettings operation. |
811 ImportSettingsData import_settings_data_; | 804 ImportSettingsData import_settings_data_; |
812 | 805 |
813 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); | 806 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); |
814 }; | 807 }; |
815 | 808 |
816 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 809 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
OLD | NEW |