| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 void ShowCollectedCookiesDialog(int handle, bool* success); | 76 void ShowCollectedCookiesDialog(int handle, bool* success); |
| 77 void NavigateToURLBlockUntilNavigationsComplete(int handle, const GURL& url, | 77 void NavigateToURLBlockUntilNavigationsComplete(int handle, const GURL& url, |
| 78 int number_of_navigations, | 78 int number_of_navigations, |
| 79 IPC::Message* reply_message); | 79 IPC::Message* reply_message); |
| 80 void NavigationAsync(int handle, const GURL& url, bool* status); | 80 void NavigationAsync(int handle, const GURL& url, bool* status); |
| 81 void NavigationAsyncWithDisposition(int handle, | 81 void NavigationAsyncWithDisposition(int handle, |
| 82 const GURL& url, | 82 const GURL& url, |
| 83 WindowOpenDisposition disposition, | 83 WindowOpenDisposition disposition, |
| 84 bool* status); | 84 bool* status); |
| 85 void Reload(int handle, IPC::Message* reply_message); | 85 void Reload(int handle, IPC::Message* reply_message); |
| 86 void SetAuth(int tab_handle, const std::wstring& username, | 86 void SetAuth(int tab_handle, const string16& username, |
| 87 const std::wstring& password, IPC::Message* reply_message); | 87 const string16& password, IPC::Message* reply_message); |
| 88 void CancelAuth(int tab_handle, IPC::Message* reply_message); | 88 void CancelAuth(int tab_handle, IPC::Message* reply_message); |
| 89 void NeedsAuth(int tab_handle, bool* needs_auth); | 89 void NeedsAuth(int tab_handle, bool* needs_auth); |
| 90 void GetRedirectsFrom(int tab_handle, | 90 void GetRedirectsFrom(int tab_handle, |
| 91 const GURL& source_url, | 91 const GURL& source_url, |
| 92 IPC::Message* reply_message); | 92 IPC::Message* reply_message); |
| 93 void GetBrowserWindowCount(int* window_count); | 93 void GetBrowserWindowCount(int* window_count); |
| 94 void GetNormalBrowserWindowCount(int* window_count); | 94 void GetNormalBrowserWindowCount(int* window_count); |
| 95 // Be aware that the browser window returned might be of non TYPE_NORMAL | 95 // Be aware that the browser window returned might be of non TYPE_NORMAL |
| 96 // or in incognito mode. | 96 // or in incognito mode. |
| 97 void GetBrowserWindow(int index, int* handle); | 97 void GetBrowserWindow(int index, int* handle); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 119 int handle, | 119 int handle, |
| 120 const gfx::Point& location); | 120 const gfx::Point& location); |
| 121 void WindowSimulateKeyPress(const IPC::Message& message, | 121 void WindowSimulateKeyPress(const IPC::Message& message, |
| 122 int handle, | 122 int handle, |
| 123 int key, | 123 int key, |
| 124 int flags); | 124 int flags); |
| 125 void GetTabCount(int handle, int* tab_count); | 125 void GetTabCount(int handle, int* tab_count); |
| 126 void GetType(int handle, int* type_as_int); | 126 void GetType(int handle, int* type_as_int); |
| 127 void GetTab(int win_handle, int tab_index, int* tab_handle); | 127 void GetTab(int win_handle, int tab_index, int* tab_handle); |
| 128 void GetTabProcessID(int handle, int* process_id); | 128 void GetTabProcessID(int handle, int* process_id); |
| 129 void GetTabTitle(int handle, int* title_string_size, std::wstring* title); | 129 void GetTabTitle(int handle, int* title_string_size, string16* title); |
| 130 void GetTabIndex(int handle, int* tabstrip_index); | 130 void GetTabIndex(int handle, int* tabstrip_index); |
| 131 void GetTabURL(int handle, bool* success, GURL* url); | 131 void GetTabURL(int handle, bool* success, GURL* url); |
| 132 void GetShelfVisibility(int handle, bool* visible); | 132 void GetShelfVisibility(int handle, bool* visible); |
| 133 void IsFullscreen(int handle, bool* is_fullscreen); | 133 void IsFullscreen(int handle, bool* is_fullscreen); |
| 134 void GetFullscreenBubbleVisibility(int handle, bool* is_visible); | 134 void GetFullscreenBubbleVisibility(int handle, bool* is_visible); |
| 135 void GetAutocompleteEditForBrowser(int browser_handle, bool* success, | 135 void GetAutocompleteEditForBrowser(int browser_handle, bool* success, |
| 136 int* autocomplete_edit_handle); | 136 int* autocomplete_edit_handle); |
| 137 | 137 |
| 138 // Retrieves the visible text from the autocomplete edit. | 138 // Retrieves the visible text from the autocomplete edit. |
| 139 void GetAutocompleteEditText(int autocomplete_edit_handle, | 139 void GetAutocompleteEditText(int autocomplete_edit_handle, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 152 // Retrieves the individual autocomplete matches displayed by the popup. | 152 // Retrieves the individual autocomplete matches displayed by the popup. |
| 153 void AutocompleteEditGetMatches(int autocomplete_edit_handle, | 153 void AutocompleteEditGetMatches(int autocomplete_edit_handle, |
| 154 bool* success, | 154 bool* success, |
| 155 std::vector<AutocompleteMatchData>* matches); | 155 std::vector<AutocompleteMatchData>* matches); |
| 156 | 156 |
| 157 // Waits for the autocomplete edit to receive focus | 157 // Waits for the autocomplete edit to receive focus |
| 158 void WaitForAutocompleteEditFocus(int autocomplete_edit_handle, | 158 void WaitForAutocompleteEditFocus(int autocomplete_edit_handle, |
| 159 IPC::Message* reply_message); | 159 IPC::Message* reply_message); |
| 160 | 160 |
| 161 void ExecuteJavascript(int handle, | 161 void ExecuteJavascript(int handle, |
| 162 const std::wstring& frame_xpath, | 162 const string16& frame_xpath, |
| 163 const std::wstring& script, | 163 const string16& script, |
| 164 IPC::Message* reply_message); | 164 IPC::Message* reply_message); |
| 165 | 165 |
| 166 void GetConstrainedWindowCount(int handle, int* count); | 166 void GetConstrainedWindowCount(int handle, int* count); |
| 167 | 167 |
| 168 #if defined(TOOLKIT_VIEWS) | 168 #if defined(TOOLKIT_VIEWS) |
| 169 void GetFocusedViewID(int handle, int* view_id); | 169 void GetFocusedViewID(int handle, int* view_id); |
| 170 | 170 |
| 171 // Block until the focused view ID changes to something other than | 171 // Block until the focused view ID changes to something other than |
| 172 // previous_view_id. | 172 // previous_view_id. |
| 173 void WaitForFocusedViewIDToChange(int handle, | 173 void WaitForFocusedViewIDToChange(int handle, |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 | 263 |
| 264 // Wait for the bookmark model to load. | 264 // Wait for the bookmark model to load. |
| 265 void WaitForBookmarkModelToLoad(int handle, IPC::Message* reply_message); | 265 void WaitForBookmarkModelToLoad(int handle, IPC::Message* reply_message); |
| 266 | 266 |
| 267 // Set |loaded| to true if the bookmark model has loaded, else false. | 267 // Set |loaded| to true if the bookmark model has loaded, else false. |
| 268 void BookmarkModelHasLoaded(int handle, bool* loaded); | 268 void BookmarkModelHasLoaded(int handle, bool* loaded); |
| 269 | 269 |
| 270 // Editing, modification, and removal of bookmarks. | 270 // Editing, modification, and removal of bookmarks. |
| 271 // Bookmarks are referenced by id. | 271 // Bookmarks are referenced by id. |
| 272 void AddBookmarkGroup(int handle, | 272 void AddBookmarkGroup(int handle, |
| 273 int64 parent_id, int index, std::wstring title, | 273 int64 parent_id, int index, const string16& title, |
| 274 bool* success); | 274 bool* success); |
| 275 void AddBookmarkURL(int handle, | 275 void AddBookmarkURL(int handle, |
| 276 int64 parent_id, int index, | 276 int64 parent_id, int index, |
| 277 std::wstring title, const GURL& url, | 277 const string16& title, const GURL& url, |
| 278 bool* success); | 278 bool* success); |
| 279 void ReparentBookmark(int handle, | 279 void ReparentBookmark(int handle, |
| 280 int64 id, int64 new_parent_id, int index, | 280 int64 id, int64 new_parent_id, int index, |
| 281 bool* success); | 281 bool* success); |
| 282 void SetBookmarkTitle(int handle, | 282 void SetBookmarkTitle(int handle, |
| 283 int64 id, std::wstring title, | 283 int64 id, const string16& title, |
| 284 bool* success); | 284 bool* success); |
| 285 void SetBookmarkURL(int handle, | 285 void SetBookmarkURL(int handle, |
| 286 int64 id, const GURL& url, | 286 int64 id, const GURL& url, |
| 287 bool* success); | 287 bool* success); |
| 288 void RemoveBookmark(int handle, | 288 void RemoveBookmark(int handle, |
| 289 int64 id, | 289 int64 id, |
| 290 bool* success); | 290 bool* success); |
| 291 | 291 |
| 292 // Retrieves the number of info-bars currently showing in |count|. | 292 // Retrieves the number of info-bars currently showing in |count|. |
| 293 void GetInfoBarCount(int handle, int* count); | 293 void GetInfoBarCount(int handle, int* count); |
| (...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 832 // Used to enumerate browser profiles. | 832 // Used to enumerate browser profiles. |
| 833 scoped_refptr<ImporterList> importer_list_; | 833 scoped_refptr<ImporterList> importer_list_; |
| 834 | 834 |
| 835 // The stored data for the ImportSettings operation. | 835 // The stored data for the ImportSettings operation. |
| 836 ImportSettingsData import_settings_data_; | 836 ImportSettingsData import_settings_data_; |
| 837 | 837 |
| 838 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); | 838 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); |
| 839 }; | 839 }; |
| 840 | 840 |
| 841 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 841 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
| OLD | NEW |