Chromium Code Reviews| 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 736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 747 void RestoreAllNTPMostVisitedThumbnails(Browser* browser, | 747 void RestoreAllNTPMostVisitedThumbnails(Browser* browser, |
| 748 DictionaryValue* args, | 748 DictionaryValue* args, |
| 749 IPC::Message* reply_message); | 749 IPC::Message* reply_message); |
| 750 | 750 |
| 751 // Kills the given renderer process and returns after the associated | 751 // Kills the given renderer process and returns after the associated |
| 752 // RenderProcessHost receives notification of its closing. | 752 // RenderProcessHost receives notification of its closing. |
| 753 void KillRendererProcess(Browser* browser, | 753 void KillRendererProcess(Browser* browser, |
| 754 DictionaryValue* args, | 754 DictionaryValue* args, |
| 755 IPC::Message* reply_message); | 755 IPC::Message* reply_message); |
| 756 | 756 |
| 757 // Sends a web keyboard event to the active tab. This should not trigger any | 757 // Populates the fields of the event parameters with what is found |
| 758 // browser hotkeys. | 758 // on the args one. |
| 759 // Uses the JSON interface for input/output. | 759 bool BuildWebKeyEventFromArgs(DictionaryValue* args, |
| 760 void SendKeyEventToActiveTab(Browser* browser, | 760 IPC::Message* reply_message, |
| 761 DictionaryValue* args, | 761 NativeWebKeyboardEvent* event); |
| 762 IPC::Message* reply_message); | |
| 763 | 762 |
| 764 // Determines whether each relevant section of the NTP is in thumbnail mode. | 763 // Determines whether each relevant section of the NTP is in thumbnail mode. |
| 765 void GetNTPThumbnailMode(Browser* browser, | 764 void GetNTPThumbnailMode(Browser* browser, |
| 766 DictionaryValue* args, | 765 DictionaryValue* args, |
| 767 IPC::Message* reply_message); | 766 IPC::Message* reply_message); |
| 768 | 767 |
| 769 // Puts or removes the specified section of the NTP into/from thumbnail mode. | 768 // Puts or removes the specified section of the NTP into/from thumbnail mode. |
| 770 // If the section is put into thumbnail mode, all other relevant sections are | 769 // If the section is put into thumbnail mode, all other relevant sections are |
| 771 // removed from thumbnail mode. | 770 // removed from thumbnail mode. |
| 772 void SetNTPThumbnailMode(Browser* browser, | 771 void SetNTPThumbnailMode(Browser* browser, |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 952 // "windowsKeyCode": ui::VKEY_X, | 951 // "windowsKeyCode": ui::VKEY_X, |
| 953 // "unmodifiedText": "x", | 952 // "unmodifiedText": "x", |
| 954 // "text": "X", | 953 // "text": "X", |
| 955 // "modifiers": automation::kShiftKeyMask, | 954 // "modifiers": automation::kShiftKeyMask, |
| 956 // "isSystemKey": false | 955 // "isSystemKey": false |
| 957 // } | 956 // } |
| 958 // output: none | 957 // output: none |
| 959 void SendWebkitKeyEvent(DictionaryValue* args, | 958 void SendWebkitKeyEvent(DictionaryValue* args, |
| 960 IPC::Message* message); | 959 IPC::Message* message); |
| 961 | 960 |
| 961 // Sends the WebKit key event from the OS level to the browser window, | |
|
kkania
2011/03/11 16:32:13
you're not sending a webkit key event, you're simu
timothe
2011/03/21 18:02:05
Done.
| |
| 962 // allowing it to be preprocessed by some external application (ie. IME). | |
| 963 // Example: | |
| 964 // input: { "windex": 1, | |
| 965 // "tab_index": 1, | |
| 966 // "type": automation::kRawKeyDownType, | |
|
kkania
2011/03/11 16:32:13
you don't use type anymore do you?
timothe
2011/03/21 18:02:05
Done, I removed it.
| |
| 967 // "nativeKeyCode": ui::VKEY_X, | |
| 968 // "windowsKeyCode": ui::VKEY_X, | |
| 969 // "modifiers": automation::kShiftKeyMask, | |
| 970 // } | |
| 971 // output: none | |
| 972 void SendOSLevelKeyEvent(DictionaryValue* args, | |
| 973 IPC::Message* message); | |
| 974 | |
| 962 // Activates the given tab. | 975 // Activates the given tab. |
| 963 // Example: | 976 // Example: |
| 964 // input: { "windex": 1, | 977 // input: { "windex": 1, |
| 965 // "tab_index": 1, | 978 // "tab_index": 1, |
| 966 // } | 979 // } |
| 967 // output: none | 980 // output: none |
| 968 void ActivateTabJSON(DictionaryValue* args, IPC::Message* message); | 981 void ActivateTabJSON(DictionaryValue* args, IPC::Message* message); |
| 969 | 982 |
| 970 #if defined(OS_CHROMEOS) | 983 #if defined(OS_CHROMEOS) |
| 971 void LoginAsGuest(DictionaryValue* args, IPC::Message* reply_message); | 984 void LoginAsGuest(DictionaryValue* args, IPC::Message* reply_message); |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1046 // Used to enumerate browser profiles. | 1059 // Used to enumerate browser profiles. |
| 1047 scoped_refptr<ImporterList> importer_list_; | 1060 scoped_refptr<ImporterList> importer_list_; |
| 1048 | 1061 |
| 1049 // The stored data for the ImportSettings operation. | 1062 // The stored data for the ImportSettings operation. |
| 1050 ImportSettingsData import_settings_data_; | 1063 ImportSettingsData import_settings_data_; |
| 1051 | 1064 |
| 1052 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); | 1065 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); |
| 1053 }; | 1066 }; |
| 1054 | 1067 |
| 1055 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 1068 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
| OLD | NEW |