| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 IPC::Message* reply_message); | 142 IPC::Message* reply_message); |
| 143 | 143 |
| 144 void GetActiveTabIndex(int handle, int* active_tab_index); | 144 void GetActiveTabIndex(int handle, int* active_tab_index); |
| 145 void GetCookies(const GURL& url, int handle, int* value_size, | 145 void GetCookies(const GURL& url, int handle, int* value_size, |
| 146 std::string* value); | 146 std::string* value); |
| 147 void SetCookie(const GURL& url, | 147 void SetCookie(const GURL& url, |
| 148 const std::string value, | 148 const std::string value, |
| 149 int handle, | 149 int handle, |
| 150 int* response_value); | 150 int* response_value); |
| 151 void GetBrowserWindowCount(int* window_count); | 151 void GetBrowserWindowCount(int* window_count); |
| 152 void GetBrowserLocale(string16* locale); |
| 152 void GetNormalBrowserWindowCount(int* window_count); | 153 void GetNormalBrowserWindowCount(int* window_count); |
| 153 void GetShowingAppModalDialog(bool* showing_dialog, int* dialog_button); | 154 void GetShowingAppModalDialog(bool* showing_dialog, int* dialog_button); |
| 154 void ClickAppModalDialogButton(int button, bool* success); | 155 void ClickAppModalDialogButton(int button, bool* success); |
| 155 // Be aware that the browser window returned might be of non TYPE_NORMAL | 156 // Be aware that the browser window returned might be of non TYPE_NORMAL |
| 156 // or in incognito mode. | 157 // or in incognito mode. |
| 157 void GetBrowserWindow(int index, int* handle); | 158 void GetBrowserWindow(int index, int* handle); |
| 158 void FindNormalBrowserWindow(int* handle); | 159 void FindNormalBrowserWindow(int* handle); |
| 159 void GetLastActiveBrowserWindow(int* handle); | 160 void GetLastActiveBrowserWindow(int* handle); |
| 160 void GetActiveWindow(int* handle); | 161 void GetActiveWindow(int* handle); |
| 161 #if defined(OS_WIN) | 162 #if defined(OS_WIN) |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 534 virtual void Observe(NotificationType type, | 535 virtual void Observe(NotificationType type, |
| 535 const NotificationSource& source, | 536 const NotificationSource& source, |
| 536 const NotificationDetails& details); | 537 const NotificationDetails& details); |
| 537 | 538 |
| 538 void OnRemoveProvider(); // Called via PostTask | 539 void OnRemoveProvider(); // Called via PostTask |
| 539 | 540 |
| 540 NotificationRegistrar registrar_; | 541 NotificationRegistrar registrar_; |
| 541 }; | 542 }; |
| 542 | 543 |
| 543 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ | 544 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ |
| OLD | NEW |