| 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 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 | 438 |
| 439 // Sets the string value for preference with name |name|. | 439 // Sets the string value for preference with name |name|. |
| 440 void SetStringPreference(int handle, | 440 void SetStringPreference(int handle, |
| 441 const std::wstring& name, | 441 const std::wstring& name, |
| 442 const std::wstring& value, | 442 const std::wstring& value, |
| 443 bool* success); | 443 bool* success); |
| 444 | 444 |
| 445 // Gets the bool value for preference with name |name|. | 445 // Gets the bool value for preference with name |name|. |
| 446 void GetBooleanPreference(int handle, | 446 void GetBooleanPreference(int handle, |
| 447 const std::wstring& name, | 447 const std::wstring& name, |
| 448 bool* success, | 448 bool* value, |
| 449 bool* value); | 449 bool* success); |
| 450 | 450 |
| 451 // Sets the bool value for preference with name |name|. | 451 // Sets the bool value for preference with name |name|. |
| 452 void SetBooleanPreference(int handle, | 452 void SetBooleanPreference(int handle, |
| 453 const std::wstring& name, | 453 const std::wstring& name, |
| 454 bool value, | 454 bool value, |
| 455 bool* success); | 455 bool* success); |
| 456 | 456 |
| 457 // Gets the current used encoding name of the page in the specified tab. | 457 // Gets the current used encoding name of the page in the specified tab. |
| 458 void GetPageCurrentEncoding(int tab_handle, std::string* current_encoding); | 458 void GetPageCurrentEncoding(int tab_handle, std::string* current_encoding); |
| 459 | 459 |
| 460 // Toggles the encoding auto-detect setting on the given tab |
| 461 void ToggleEncodingAutoDetect(int tab_handle, |
| 462 bool* success); |
| 463 |
| 460 // Uses the specified encoding to override the encoding of the page in the | 464 // Uses the specified encoding to override the encoding of the page in the |
| 461 // specified tab. | 465 // specified tab. |
| 462 void OverrideEncoding(int tab_handle, | 466 void OverrideEncoding(int tab_handle, |
| 463 const std::string& encoding_name, | 467 const std::string& encoding_name, |
| 464 bool* success); | 468 bool* success); |
| 465 | 469 |
| 466 void SavePackageShouldPromptUser(bool should_prompt); | 470 void SavePackageShouldPromptUser(bool should_prompt); |
| 467 | 471 |
| 468 // Enables extension automation (for e.g. UITests). | 472 // Enables extension automation (for e.g. UITests). |
| 469 void SetEnableExtensionAutomation( | 473 void SetEnableExtensionAutomation( |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 587 virtual void Observe(NotificationType type, | 591 virtual void Observe(NotificationType type, |
| 588 const NotificationSource& source, | 592 const NotificationSource& source, |
| 589 const NotificationDetails& details); | 593 const NotificationDetails& details); |
| 590 | 594 |
| 591 void OnRemoveProvider(); // Called via PostTask | 595 void OnRemoveProvider(); // Called via PostTask |
| 592 | 596 |
| 593 NotificationRegistrar registrar_; | 597 NotificationRegistrar registrar_; |
| 594 }; | 598 }; |
| 595 | 599 |
| 596 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ | 600 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ |
| OLD | NEW |