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 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
457 // Uses the specified encoding to override the encoding of the page in the | 457 // Uses the specified encoding to override the encoding of the page in the |
458 // specified tab. | 458 // specified tab. |
459 void OverrideEncoding(int tab_handle, | 459 void OverrideEncoding(int tab_handle, |
460 const std::string& encoding_name, | 460 const std::string& encoding_name, |
461 bool* success); | 461 bool* success); |
462 | 462 |
463 void SavePackageShouldPromptUser(bool should_prompt); | 463 void SavePackageShouldPromptUser(bool should_prompt); |
464 | 464 |
465 // Enables extension automation (for e.g. UITests). | 465 // Enables extension automation (for e.g. UITests). |
466 void SetEnableExtensionAutomation( | 466 void SetEnableExtensionAutomation( |
| 467 int tab_handle, |
467 const std::vector<std::string>& functions_enabled); | 468 const std::vector<std::string>& functions_enabled); |
468 | 469 |
469 void GetWindowTitle(int handle, string16* text); | 470 void GetWindowTitle(int handle, string16* text); |
470 | 471 |
471 // Returns the number of blocked popups in the tab |handle|. | 472 // Returns the number of blocked popups in the tab |handle|. |
472 void GetBlockedPopupCount(int handle, int* count); | 473 void GetBlockedPopupCount(int handle, int* count); |
473 | 474 |
474 // Selects all contents on the page. | 475 // Selects all contents on the page. |
475 void SelectAll(int tab_handle); | 476 void SelectAll(int tab_handle); |
476 | 477 |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
583 virtual void Observe(NotificationType type, | 584 virtual void Observe(NotificationType type, |
584 const NotificationSource& source, | 585 const NotificationSource& source, |
585 const NotificationDetails& details); | 586 const NotificationDetails& details); |
586 | 587 |
587 void OnRemoveProvider(); // Called via PostTask | 588 void OnRemoveProvider(); // Called via PostTask |
588 | 589 |
589 NotificationRegistrar registrar_; | 590 NotificationRegistrar registrar_; |
590 }; | 591 }; |
591 | 592 |
592 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ | 593 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ |
OLD | NEW |