| 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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 bool* menu_item_enabled); | 353 bool* menu_item_enabled); |
| 354 | 354 |
| 355 // Prints the current tab immediately. | 355 // Prints the current tab immediately. |
| 356 void PrintNow(int tab_handle, IPC::Message* reply_message); | 356 void PrintNow(int tab_handle, IPC::Message* reply_message); |
| 357 | 357 |
| 358 // Asynchronous request for printing the current tab. | 358 // Asynchronous request for printing the current tab. |
| 359 void PrintAsync(int tab_handle); | 359 void PrintAsync(int tab_handle); |
| 360 | 360 |
| 361 // Save the current web page. | 361 // Save the current web page. |
| 362 void SavePage(int tab_handle, | 362 void SavePage(int tab_handle, |
| 363 const std::wstring& file_name, | 363 const FilePath& file_name, |
| 364 const std::wstring& dir_path, | 364 const FilePath& dir_path, |
| 365 int type, | 365 int type, |
| 366 bool* success); | 366 bool* success); |
| 367 | 367 |
| 368 // Retrieves the visible text from the autocomplete edit. | 368 // Retrieves the visible text from the autocomplete edit. |
| 369 void GetAutocompleteEditText(int autocomplete_edit_handle, | 369 void GetAutocompleteEditText(int autocomplete_edit_handle, |
| 370 bool* success, std::wstring* text); | 370 bool* success, std::wstring* text); |
| 371 | 371 |
| 372 // Sets the visible text from the autocomplete edit. | 372 // Sets the visible text from the autocomplete edit. |
| 373 void SetAutocompleteEditText(int autocomplete_edit_handle, | 373 void SetAutocompleteEditText(int autocomplete_edit_handle, |
| 374 const std::wstring& text, | 374 const std::wstring& text, |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 562 virtual void Observe(NotificationType type, | 562 virtual void Observe(NotificationType type, |
| 563 const NotificationSource& source, | 563 const NotificationSource& source, |
| 564 const NotificationDetails& details); | 564 const NotificationDetails& details); |
| 565 | 565 |
| 566 void OnRemoveProvider(); // Called via PostTask | 566 void OnRemoveProvider(); // Called via PostTask |
| 567 | 567 |
| 568 NotificationRegistrar registrar_; | 568 NotificationRegistrar registrar_; |
| 569 }; | 569 }; |
| 570 | 570 |
| 571 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ | 571 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ |
| OLD | NEW |