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 // Defines the IPC messages used by the automation interface. | 5 // Defines the IPC messages used by the automation interface. |
6 | 6 |
7 // This header is meant to be included in multiple passes, hence no traditional | 7 // This header is meant to be included in multiple passes, hence no traditional |
8 // header guard. | 8 // header guard. |
9 // See ipc_message_macros.h for explanation of the macros and passes. | 9 // See ipc_message_macros.h for explanation of the macros and passes. |
10 | 10 |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 // redirects. On failure, the count will be negative. | 207 // redirects. On failure, the count will be negative. |
208 IPC_SYNC_MESSAGE_ROUTED2_2(AutomationMsg_RedirectsFrom, | 208 IPC_SYNC_MESSAGE_ROUTED2_2(AutomationMsg_RedirectsFrom, |
209 int, // tab handle | 209 int, // tab handle |
210 GURL, // source URL | 210 GURL, // source URL |
211 bool /* succeeded */, | 211 bool /* succeeded */, |
212 std::vector<GURL> /* redirects */) | 212 std::vector<GURL> /* redirects */) |
213 | 213 |
214 // This message asks the AutomationProvider whether a tab is waiting for | 214 // This message asks the AutomationProvider whether a tab is waiting for |
215 // login info. | 215 // login info. |
216 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_NeedsAuth, | 216 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_NeedsAuth, |
217 int, // tab handle | 217 int, // tab handle |
218 bool) // status | 218 bool) // status |
219 | 219 |
220 // This message requests the AutomationProvider to apply a certain | 220 // This message requests the AutomationProvider to apply a certain |
221 // accelerator. It is completely asynchronous with the resulting accelerator | 221 // accelerator. It is completely asynchronous with the resulting accelerator |
222 // action. | 222 // action. |
223 IPC_SYNC_MESSAGE_ROUTED2_0(AutomationMsg_ApplyAccelerator, | 223 IPC_SYNC_MESSAGE_ROUTED2_0(AutomationMsg_ApplyAccelerator, |
224 int, // window handle | 224 int, // window handle |
225 int) // accelerator id like (IDC_BACK, | 225 int) // accelerator id like (IDC_BACK, |
226 // IDC_FORWARD, etc) | 226 // IDC_FORWARD, etc) |
227 // The list can be found at | 227 // The list can be found at |
228 // chrome/app/chrome_dll_resource.h | 228 // chrome/app/chrome_dll_resource.h |
229 | 229 |
230 // This message requests that the AutomationProvider executes a JavaScript, | 230 // This message requests that the AutomationProvider executes a JavaScript, |
231 // which is sent embedded in a 'javascript:' URL. | 231 // which is sent embedded in a 'javascript:' URL. |
232 // The javascript is executed in context of child frame whose xpath | 232 // The javascript is executed in context of child frame whose xpath |
233 // is passed as parameter (context_frame). The execution results in | 233 // is passed as parameter (context_frame). The execution results in |
234 // a serialized JSON string response. | 234 // a serialized JSON string response. |
235 IPC_SYNC_MESSAGE_ROUTED3_1(AutomationMsg_DomOperation, | 235 IPC_SYNC_MESSAGE_ROUTED3_1(AutomationMsg_DomOperation, |
236 int, // tab handle | 236 int, // tab handle |
237 std::wstring, // context_frame | 237 std::wstring, // context_frame |
238 std::wstring, // the javascript to be executed | 238 std::wstring, // the javascript to be executed |
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
836 IPC_SYNC_MESSAGE_ROUTED3_1(AutomationMsg_SetBooleanPreference, | 836 IPC_SYNC_MESSAGE_ROUTED3_1(AutomationMsg_SetBooleanPreference, |
837 int /* browser handle */, | 837 int /* browser handle */, |
838 std::wstring /* pref name */, | 838 std::wstring /* pref name */, |
839 bool /* pref value */, | 839 bool /* pref value */, |
840 bool /* success */) | 840 bool /* success */) |
841 | 841 |
842 // Queries the current used encoding name of the page in the specified | 842 // Queries the current used encoding name of the page in the specified |
843 // web content tab. | 843 // web content tab. |
844 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_GetPageCurrentEncoding, | 844 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_GetPageCurrentEncoding, |
845 int /* tab handle */, | 845 int /* tab handle */, |
846 std::wstring /* current used encoding name */) | 846 std::string /* current used encoding name */) |
847 | 847 |
848 // Uses the specified encoding to override the encoding of the page in the | 848 // Uses the specified encoding to override the encoding of the page in the |
849 // specified web content tab. | 849 // specified web content tab. |
850 IPC_SYNC_MESSAGE_ROUTED2_1(AutomationMsg_OverrideEncoding, | 850 IPC_SYNC_MESSAGE_ROUTED2_1(AutomationMsg_OverrideEncoding, |
851 int /* tab handle */, | 851 int /* tab handle */, |
852 std::wstring /* overrided encoding name */, | 852 std::string /* overrided encoding name */, |
853 bool /* success */) | 853 bool /* success */) |
854 | 854 |
855 // Used to disable the dialog box that prompts the user for a path when | 855 // Used to disable the dialog box that prompts the user for a path when |
856 // saving a web page. | 856 // saving a web page. |
857 IPC_SYNC_MESSAGE_ROUTED1_0(AutomationMsg_SavePackageShouldPromptUser, | 857 IPC_SYNC_MESSAGE_ROUTED1_0(AutomationMsg_SavePackageShouldPromptUser, |
858 bool /* false if we want to not show the dialog */) | 858 bool /* false if we want to not show the dialog */) |
859 | 859 |
860 // This message is an outgoing message from Chrome to an external host. | 860 // This message is an outgoing message from Chrome to an external host. |
861 // It is a notification that a navigation failed | 861 // It is a notification that a navigation failed |
862 // Request: | 862 // Request: |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1067 IPC_SYNC_MESSAGE_ROUTED2_1( | 1067 IPC_SYNC_MESSAGE_ROUTED2_1( |
1068 AutomationMsg_GoForwardBlockUntilNavigationsComplete, int, int, | 1068 AutomationMsg_GoForwardBlockUntilNavigationsComplete, int, int, |
1069 AutomationMsg_NavigationResponseValues) | 1069 AutomationMsg_NavigationResponseValues) |
1070 | 1070 |
1071 // This message is used by automaton clients to upload histogram data to the | 1071 // This message is used by automaton clients to upload histogram data to the |
1072 // browser process. | 1072 // browser process. |
1073 IPC_MESSAGE_ROUTED1(AutomationMsg_RecordHistograms, | 1073 IPC_MESSAGE_ROUTED1(AutomationMsg_RecordHistograms, |
1074 std::vector<std::string> /* histogram_list */) | 1074 std::vector<std::string> /* histogram_list */) |
1075 | 1075 |
1076 IPC_END_MESSAGES(Automation) | 1076 IPC_END_MESSAGES(Automation) |
OLD | NEW |