| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // This implements a browser-side endpoint for UI automation activity. | 5 // This implements a browser-side endpoint for UI automation activity. |
| 6 // The client-side endpoint is implemented by AutomationProxy. | 6 // The client-side endpoint is implemented by AutomationProxy. |
| 7 // The entire lifetime of this object should be contained within that of | 7 // The entire lifetime of this object should be contained within that of |
| 8 // the BrowserProcess, and in particular the NotificationService that's | 8 // the BrowserProcess, and in particular the NotificationService that's |
| 9 // hung off of it. | 9 // hung off of it. |
| 10 | 10 |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 int key, | 178 int key, |
| 179 int flags); | 179 int flags); |
| 180 void GetWindowBounds(int handle, gfx::Rect* bounds, bool* result); | 180 void GetWindowBounds(int handle, gfx::Rect* bounds, bool* result); |
| 181 void SetWindowBounds(int handle, const gfx::Rect& bounds, bool* result); | 181 void SetWindowBounds(int handle, const gfx::Rect& bounds, bool* result); |
| 182 void SetWindowVisible(int handle, bool visible, bool* result); | 182 void SetWindowVisible(int handle, bool visible, bool* result); |
| 183 void IsWindowActive(int handle, bool* success, bool* is_active); | 183 void IsWindowActive(int handle, bool* success, bool* is_active); |
| 184 void ActivateWindow(int handle); | 184 void ActivateWindow(int handle); |
| 185 void IsWindowMaximized(int handle, bool* is_maximized, bool* success); | 185 void IsWindowMaximized(int handle, bool* is_maximized, bool* success); |
| 186 | 186 |
| 187 void GetTabCount(int handle, int* tab_count); | 187 void GetTabCount(int handle, int* tab_count); |
| 188 void GetType(int handle, int* type_as_int); | |
| 189 void GetTab(int win_handle, int tab_index, int* tab_handle); | 188 void GetTab(int win_handle, int tab_index, int* tab_handle); |
| 190 #if defined(OS_WIN) | 189 #if defined(OS_WIN) |
| 191 // TODO(port): Replace HWND. | 190 // TODO(port): Replace HWND. |
| 192 void GetTabHWND(int handle, HWND* tab_hwnd); | 191 void GetTabHWND(int handle, HWND* tab_hwnd); |
| 193 #endif // defined(OS_WIN) | 192 #endif // defined(OS_WIN) |
| 194 void GetTabProcessID(int handle, int* process_id); | 193 void GetTabProcessID(int handle, int* process_id); |
| 195 void GetTabTitle(int handle, int* title_string_size, std::wstring* title); | 194 void GetTabTitle(int handle, int* title_string_size, std::wstring* title); |
| 196 void GetTabIndex(int handle, int* tabstrip_index); | 195 void GetTabIndex(int handle, int* tabstrip_index); |
| 197 void GetTabURL(int handle, bool* success, GURL* url); | 196 void GetTabURL(int handle, bool* success, GURL* url); |
| 198 void HandleUnused(const IPC::Message& message, int handle); | 197 void HandleUnused(const IPC::Message& message, int handle); |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 | 276 |
| 278 // Retrieves a Browser from a Window and vice-versa. | 277 // Retrieves a Browser from a Window and vice-versa. |
| 279 void GetWindowForBrowser(int window_handle, bool* success, int* handle); | 278 void GetWindowForBrowser(int window_handle, bool* success, int* handle); |
| 280 void GetBrowserForWindow(int window_handle, bool* success, | 279 void GetBrowserForWindow(int window_handle, bool* success, |
| 281 int* browser_handle); | 280 int* browser_handle); |
| 282 | 281 |
| 283 void GetAutocompleteEditForBrowser(int browser_handle, bool* success, | 282 void GetAutocompleteEditForBrowser(int browser_handle, bool* success, |
| 284 int* autocomplete_edit_handle); | 283 int* autocomplete_edit_handle); |
| 285 | 284 |
| 286 // If |show| is true, call Show() on the new window after creating it. | 285 // If |show| is true, call Show() on the new window after creating it. |
| 287 void OpenNewBrowserWindow(int type, | 286 void OpenNewBrowserWindow(bool show, IPC::Message* reply_message); |
| 288 bool show, | |
| 289 IPC::Message* reply_message); | |
| 290 | 287 |
| 291 void ShowInterstitialPage(int tab_handle, | 288 void ShowInterstitialPage(int tab_handle, |
| 292 const std::string& html_text, | 289 const std::string& html_text, |
| 293 IPC::Message* reply_message); | 290 IPC::Message* reply_message); |
| 294 void HideInterstitialPage(int tab_handle, bool* success); | 291 void HideInterstitialPage(int tab_handle, bool* success); |
| 295 | 292 |
| 296 void CreateExternalTab(const IPC::ExternalTabSettings& settings, | 293 void CreateExternalTab(const IPC::ExternalTabSettings& settings, |
| 297 gfx::NativeWindow* tab_container_window, | 294 gfx::NativeWindow* tab_container_window, |
| 298 gfx::NativeWindow* tab_window, | 295 gfx::NativeWindow* tab_window, |
| 299 int* tab_handle); | 296 int* tab_handle); |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 579 virtual void Observe(NotificationType type, | 576 virtual void Observe(NotificationType type, |
| 580 const NotificationSource& source, | 577 const NotificationSource& source, |
| 581 const NotificationDetails& details); | 578 const NotificationDetails& details); |
| 582 | 579 |
| 583 void OnRemoveProvider(); // Called via PostTask | 580 void OnRemoveProvider(); // Called via PostTask |
| 584 | 581 |
| 585 NotificationRegistrar registrar_; | 582 NotificationRegistrar registrar_; |
| 586 }; | 583 }; |
| 587 | 584 |
| 588 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ | 585 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ |
| OLD | NEW |