| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
| 6 #define CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 6 #define CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
| (...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 765 DictionaryValue* args, | 765 DictionaryValue* args, |
| 766 IPC::Message* reply_message); | 766 IPC::Message* reply_message); |
| 767 | 767 |
| 768 // Sends a web keyboard event to the active tab. This should not trigger any | 768 // Sends a web keyboard event to the active tab. This should not trigger any |
| 769 // browser hotkeys. | 769 // browser hotkeys. |
| 770 // Uses the JSON interface for input/output. | 770 // Uses the JSON interface for input/output. |
| 771 void SendKeyEventToActiveTab(Browser* browser, | 771 void SendKeyEventToActiveTab(Browser* browser, |
| 772 DictionaryValue* args, | 772 DictionaryValue* args, |
| 773 IPC::Message* reply_message); | 773 IPC::Message* reply_message); |
| 774 | 774 |
| 775 // Sends a web keyboard event to the active browser window. |
| 776 // Uses the JSON interface for input/output. |
| 777 void SendKeyEventToActiveBrowserWindow(Browser* browser, |
| 778 DictionaryValue* args, |
| 779 IPC::Message* reply_message); |
| 780 |
| 781 // Populates the fields of the event parameters with what is found |
| 782 // on the args one. |
| 783 // Common part of the SendKeyEventToActiveTab and |
| 784 // SendKeyEventToActiveBrowserWindow methods. |
| 785 bool BuildNativeWebKeyEventFromArgs(DictionaryValue* args, |
| 786 IPC::Message* reply_message, |
| 787 NativeWebKeyboardEvent* event); |
| 788 |
| 789 |
| 775 // Determines whether each relevant section of the NTP is in thumbnail mode. | 790 // Determines whether each relevant section of the NTP is in thumbnail mode. |
| 776 void GetNTPThumbnailMode(Browser* browser, | 791 void GetNTPThumbnailMode(Browser* browser, |
| 777 DictionaryValue* args, | 792 DictionaryValue* args, |
| 778 IPC::Message* reply_message); | 793 IPC::Message* reply_message); |
| 779 | 794 |
| 780 // Puts or removes the specified section of the NTP into/from thumbnail mode. | 795 // Puts or removes the specified section of the NTP into/from thumbnail mode. |
| 781 // If the section is put into thumbnail mode, all other relevant sections are | 796 // If the section is put into thumbnail mode, all other relevant sections are |
| 782 // removed from thumbnail mode. | 797 // removed from thumbnail mode. |
| 783 void SetNTPThumbnailMode(Browser* browser, | 798 void SetNTPThumbnailMode(Browser* browser, |
| 784 DictionaryValue* args, | 799 DictionaryValue* args, |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 889 // Used to enumerate browser profiles. | 904 // Used to enumerate browser profiles. |
| 890 scoped_refptr<ImporterList> importer_list_; | 905 scoped_refptr<ImporterList> importer_list_; |
| 891 | 906 |
| 892 // The stored data for the ImportSettings operation. | 907 // The stored data for the ImportSettings operation. |
| 893 ImportSettingsData import_settings_data_; | 908 ImportSettingsData import_settings_data_; |
| 894 | 909 |
| 895 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); | 910 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); |
| 896 }; | 911 }; |
| 897 | 912 |
| 898 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 913 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
| OLD | NEW |