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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 IPC::Message* reply_message); | 391 IPC::Message* reply_message); |
392 | 392 |
393 void LoadExpandedExtension(const FilePath& extension_dir, | 393 void LoadExpandedExtension(const FilePath& extension_dir, |
394 IPC::Message* reply_message); | 394 IPC::Message* reply_message); |
395 | 395 |
396 void GetEnabledExtensions(std::vector<FilePath>* result); | 396 void GetEnabledExtensions(std::vector<FilePath>* result); |
397 | 397 |
398 void WaitForExtensionTestResult(IPC::Message* reply_message); | 398 void WaitForExtensionTestResult(IPC::Message* reply_message); |
399 | 399 |
400 void InstallExtensionAndGetHandle(const FilePath& crx_path, | 400 void InstallExtensionAndGetHandle(const FilePath& crx_path, |
401 bool with_ui, | |
402 IPC::Message* reply_message); | 401 IPC::Message* reply_message); |
403 | 402 |
404 void UninstallExtension(int extension_handle, | 403 void UninstallExtension(int extension_handle, |
405 bool* success); | 404 bool* success); |
406 | 405 |
407 void ReloadExtension(int extension_handle, | 406 void ReloadExtension(int extension_handle, |
408 IPC::Message* reply_message); | 407 IPC::Message* reply_message); |
409 | 408 |
410 void EnableExtension(int extension_handle, | 409 void EnableExtension(int extension_handle, |
411 IPC::Message* reply_message); | 410 IPC::Message* reply_message); |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 const std::wstring& name, | 553 const std::wstring& name, |
555 bool* success, | 554 bool* success, |
556 bool* value); | 555 bool* value); |
557 | 556 |
558 // Sets the bool value for preference with name |name|. | 557 // Sets the bool value for preference with name |name|. |
559 void SetBooleanPreference(int handle, | 558 void SetBooleanPreference(int handle, |
560 const std::wstring& name, | 559 const std::wstring& name, |
561 bool value, | 560 bool value, |
562 bool* success); | 561 bool* success); |
563 | 562 |
564 // Resets to the default theme. | |
565 void ResetToDefaultTheme(); | |
566 | |
567 // Gets the current used encoding name of the page in the specified tab. | 563 // Gets the current used encoding name of the page in the specified tab. |
568 void GetPageCurrentEncoding(int tab_handle, std::string* current_encoding); | 564 void GetPageCurrentEncoding(int tab_handle, std::string* current_encoding); |
569 | 565 |
570 // Uses the specified encoding to override the encoding of the page in the | 566 // Uses the specified encoding to override the encoding of the page in the |
571 // specified tab. | 567 // specified tab. |
572 void OverrideEncoding(int tab_handle, | 568 void OverrideEncoding(int tab_handle, |
573 const std::string& encoding_name, | 569 const std::string& encoding_name, |
574 bool* success); | 570 bool* success); |
575 | 571 |
576 void SavePackageShouldPromptUser(bool should_prompt); | 572 void SavePackageShouldPromptUser(bool should_prompt); |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
745 virtual void Observe(NotificationType type, | 741 virtual void Observe(NotificationType type, |
746 const NotificationSource& source, | 742 const NotificationSource& source, |
747 const NotificationDetails& details); | 743 const NotificationDetails& details); |
748 | 744 |
749 void OnRemoveProvider(); // Called via PostTask | 745 void OnRemoveProvider(); // Called via PostTask |
750 | 746 |
751 NotificationRegistrar registrar_; | 747 NotificationRegistrar registrar_; |
752 }; | 748 }; |
753 | 749 |
754 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ | 750 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ |
OLD | NEW |