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