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 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 bool* success, | 425 bool* success, |
426 bool* value); | 426 bool* value); |
427 | 427 |
428 // Sets the bool value for preference with name |name|. | 428 // Sets the bool value for preference with name |name|. |
429 void SetBooleanPreference(int handle, | 429 void SetBooleanPreference(int handle, |
430 const std::wstring& name, | 430 const std::wstring& name, |
431 bool value, | 431 bool value, |
432 bool* success); | 432 bool* success); |
433 | 433 |
434 // Gets the current used encoding name of the page in the specified tab. | 434 // Gets the current used encoding name of the page in the specified tab. |
435 void GetPageCurrentEncoding(int tab_handle, std::wstring* current_encoding); | 435 void GetPageCurrentEncoding(int tab_handle, std::string* current_encoding); |
436 | 436 |
437 // Uses the specified encoding to override the encoding of the page in the | 437 // Uses the specified encoding to override the encoding of the page in the |
438 // specified tab. | 438 // specified tab. |
439 void OverrideEncoding(int tab_handle, | 439 void OverrideEncoding(int tab_handle, |
440 const std::wstring& encoding_name, | 440 const std::string& encoding_name, |
441 bool* success); | 441 bool* success); |
442 | 442 |
443 void SavePackageShouldPromptUser(bool should_prompt); | 443 void SavePackageShouldPromptUser(bool should_prompt); |
444 | 444 |
445 // Enables extension automation (for e.g. UITests). | 445 // Enables extension automation (for e.g. UITests). |
446 void SetEnableExtensionAutomation(bool automation_enabled); | 446 void SetEnableExtensionAutomation(bool automation_enabled); |
447 | 447 |
448 void GetWindowTitle(int handle, string16* text); | 448 void GetWindowTitle(int handle, string16* text); |
449 | 449 |
450 // Returns the number of blocked popups in the tab |handle|. | 450 // Returns the number of blocked popups in the tab |handle|. |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 virtual void Observe(NotificationType type, | 561 virtual void Observe(NotificationType type, |
562 const NotificationSource& source, | 562 const NotificationSource& source, |
563 const NotificationDetails& details); | 563 const NotificationDetails& details); |
564 | 564 |
565 void OnRemoveProvider(); // Called via PostTask | 565 void OnRemoveProvider(); // Called via PostTask |
566 | 566 |
567 NotificationRegistrar registrar_; | 567 NotificationRegistrar registrar_; |
568 }; | 568 }; |
569 | 569 |
570 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ | 570 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ |
OLD | NEW |