OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // NOTE: All IPC messages have either a routing_id of 0 (for asynchronous | 7 // NOTE: All IPC messages have either a routing_id of 0 (for asynchronous |
8 // messages), or one that's been assigned by the proxy (for calls | 8 // messages), or one that's been assigned by the proxy (for calls |
9 // which expect a response). The routing_id shouldn't be used for | 9 // which expect a response). The routing_id shouldn't be used for |
10 // any other purpose in these message types. | 10 // any other purpose in these message types. |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 GURL, | 64 GURL, |
65 int, | 65 int, |
66 int, | 66 int, |
67 std::string) | 67 std::string) |
68 | 68 |
69 // This message notifies the AutomationProvider to set and broadcast a cookie | 69 // This message notifies the AutomationProvider to set and broadcast a cookie |
70 // with given name and value for the given url in the profile of the tab | 70 // with given name and value for the given url in the profile of the tab |
71 // identified by the third parameter. The first parameter is the URL | 71 // identified by the third parameter. The first parameter is the URL |
72 // string, and the second parameter is the cookie name and value to be set. | 72 // string, and the second parameter is the cookie name and value to be set. |
73 // The return value is a non-negative value on success. | 73 // The return value is a non-negative value on success. |
74 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_SetCookie, | 74 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_DEPRECATED_SetCookie, |
75 GURL, | 75 GURL, |
76 std::string, | 76 std::string, |
77 int, | 77 int, |
78 int) | 78 int) |
79 | 79 |
80 // This message is used to implement the asynchronous version of | 80 // This message is used to implement the asynchronous version of |
81 // NavigateToURL. | 81 // NavigateToURL. |
82 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_NavigationAsync, | 82 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_NavigationAsync, |
83 int /* tab handle */, | 83 int /* tab handle */, |
84 GURL, | 84 GURL, |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 // a serialized JSON string response. | 149 // a serialized JSON string response. |
150 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_DomOperation, | 150 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_DomOperation, |
151 int /* tab handle */, | 151 int /* tab handle */, |
152 std::wstring /* context_frame */, | 152 std::wstring /* context_frame */, |
153 std::wstring /* the javascript to be executed */, | 153 std::wstring /* the javascript to be executed */, |
154 std::string /* the serialized json string containg | 154 std::string /* the serialized json string containg |
155 the result of a javascript | 155 the result of a javascript |
156 execution */) | 156 execution */) |
157 | 157 |
158 // Is the Download Shelf visible for the specified browser? | 158 // Is the Download Shelf visible for the specified browser? |
159 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_ShelfVisibility, | 159 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_ShelfVisibility, |
160 int /* browser_handle */, | 160 int /* browser_handle */, |
161 bool /* is_visible */) | 161 bool /* is_visible */) |
162 | 162 |
163 // This message requests the bounds of the specified View element in | 163 // This message requests the bounds of the specified View element in |
164 // window coordinates. | 164 // window coordinates. |
165 // Request: | 165 // Request: |
166 // int - the handle of the window in which the view appears | 166 // int - the handle of the window in which the view appears |
167 // int - the ID of the view, as specified in chrome/browser/ui/view_ids.h | 167 // int - the ID of the view, as specified in chrome/browser/ui/view_ids.h |
168 // bool - whether the bounds should be returned in the screen coordinates | 168 // bool - whether the bounds should be returned in the screen coordinates |
169 // (if true) or in the browser coordinates (if false). | 169 // (if true) or in the browser coordinates (if false). |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 // new tab ui has completed the initial load of its data. | 211 // new tab ui has completed the initial load of its data. |
212 // Time is how many milliseconds the load took. | 212 // Time is how many milliseconds the load took. |
213 IPC_MESSAGE_CONTROL1(AutomationMsg_InitialNewTabUILoadComplete, | 213 IPC_MESSAGE_CONTROL1(AutomationMsg_InitialNewTabUILoadComplete, |
214 int /* time */) | 214 int /* time */) |
215 | 215 |
216 // This tells the browser to enable or disable the filtered network layer. | 216 // This tells the browser to enable or disable the filtered network layer. |
217 IPC_MESSAGE_CONTROL1(AutomationMsg_DEPRECATED_SetFilteredInet, | 217 IPC_MESSAGE_CONTROL1(AutomationMsg_DEPRECATED_SetFilteredInet, |
218 bool /* enabled */) | 218 bool /* enabled */) |
219 | 219 |
220 // Gets the directory that downloads will occur in for the active profile. | 220 // Gets the directory that downloads will occur in for the active profile. |
221 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DownloadDirectory, | 221 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_DownloadDirectory, |
222 int /* tab_handle */, | 222 int /* tab_handle */, |
223 FilePath /* directory */) | 223 FilePath /* directory */) |
224 | 224 |
225 // Opens a new browser window. | 225 // Opens a new browser window. |
226 // TODO(sky): remove this and replace with OpenNewBrowserWindowOfType. | 226 // TODO(sky): remove this and replace with OpenNewBrowserWindowOfType. |
227 // Doing this requires updating the reference build. | 227 // Doing this requires updating the reference build. |
228 IPC_SYNC_MESSAGE_CONTROL1_0(AutomationMsg_OpenNewBrowserWindow, | 228 IPC_SYNC_MESSAGE_CONTROL1_0(AutomationMsg_OpenNewBrowserWindow, |
229 bool /* show */ ) | 229 bool /* show */ ) |
230 | 230 |
231 // This message requests the handle (int64 app-unique identifier) of the | 231 // This message requests the handle (int64 app-unique identifier) of the |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
459 bool) | 459 bool) |
460 | 460 |
461 // Message to request whether a certain item is enabled of disabled in the | 461 // Message to request whether a certain item is enabled of disabled in the |
462 // menu in the browser window | 462 // menu in the browser window |
463 // | 463 // |
464 // Request: | 464 // Request: |
465 // - int: handle of the browser window. | 465 // - int: handle of the browser window. |
466 // - int: IDC message identifier to query if enabled | 466 // - int: IDC message identifier to query if enabled |
467 // Response: | 467 // Response: |
468 // - bool: True if the command is enabled on the menu | 468 // - bool: True if the command is enabled on the menu |
469 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_IsMenuCommandEnabled, | 469 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_DEPRECATED_IsMenuCommandEnabled, |
470 int, | 470 int, |
471 int, | 471 int, |
472 bool) | 472 bool) |
473 | 473 |
474 // This message notifies the AutomationProvider to reload the current page in | 474 // This message notifies the AutomationProvider to reload the current page in |
475 // the tab with given handle. The first parameter is the handle to the tab | 475 // the tab with given handle. The first parameter is the handle to the tab |
476 // resource. The return value contains a status code which is nonnegative on | 476 // resource. The return value contains a status code which is nonnegative on |
477 // success. | 477 // success. |
478 // see AutomationMsg_NavigationResponseValues for the navigation response. | 478 // see AutomationMsg_NavigationResponseValues for the navigation response. |
479 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_Reload, | 479 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_Reload, |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
587 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_NormalBrowserWindowCount, | 587 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_NormalBrowserWindowCount, |
588 int) | 588 int) |
589 | 589 |
590 // This message tells the browser to start using the new proxy configuration | 590 // This message tells the browser to start using the new proxy configuration |
591 // represented by the given JSON string. The parameters used in the JSON | 591 // represented by the given JSON string. The parameters used in the JSON |
592 // string are defined in automation_constants.h. | 592 // string are defined in automation_constants.h. |
593 IPC_MESSAGE_CONTROL1(AutomationMsg_SetProxyConfig, | 593 IPC_MESSAGE_CONTROL1(AutomationMsg_SetProxyConfig, |
594 std::string /* proxy_config_json_string */) | 594 std::string /* proxy_config_json_string */) |
595 | 595 |
596 // Sets Download Shelf visibility for the specified browser. | 596 // Sets Download Shelf visibility for the specified browser. |
597 IPC_SYNC_MESSAGE_CONTROL2_0(AutomationMsg_SetShelfVisibility, | 597 IPC_SYNC_MESSAGE_CONTROL2_0(AutomationMsg_DEPRECATED_SetShelfVisibility, |
598 int /* browser_handle */, | 598 int /* browser_handle */, |
599 bool /* is_visible */) | 599 bool /* is_visible */) |
600 | 600 |
601 #if defined(OS_WIN) | 601 #if defined(OS_WIN) |
602 IPC_MESSAGE_ROUTED3(AutomationMsg_ForwardContextMenuToExternalHost, | 602 IPC_MESSAGE_ROUTED3(AutomationMsg_ForwardContextMenuToExternalHost, |
603 ContextMenuModel /* description of menu */, | 603 ContextMenuModel /* description of menu */, |
604 int /* align flags */, | 604 int /* align flags */, |
605 MiniContextMenuParams /* params */) | 605 MiniContextMenuParams /* params */) |
606 | 606 |
607 IPC_MESSAGE_CONTROL2(AutomationMsg_ForwardContextMenuCommandToChrome, | 607 IPC_MESSAGE_CONTROL2(AutomationMsg_ForwardContextMenuCommandToChrome, |
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1001 | 1001 |
1002 // Sent when the automation mouse event has been processed. | 1002 // Sent when the automation mouse event has been processed. |
1003 IPC_MESSAGE_ROUTED2(AutomationMsg_ProcessMouseEventACK, | 1003 IPC_MESSAGE_ROUTED2(AutomationMsg_ProcessMouseEventACK, |
1004 bool /* success */, | 1004 bool /* success */, |
1005 std::string /* error message */) | 1005 std::string /* error message */) |
1006 | 1006 |
1007 // YOUR NEW MESSAGE MIGHT NOT BELONG HERE. | 1007 // YOUR NEW MESSAGE MIGHT NOT BELONG HERE. |
1008 // This is the section for renderer -> browser automation messages. If it is | 1008 // This is the section for renderer -> browser automation messages. If it is |
1009 // an automation <-> browser message, put it above this section. The "no line | 1009 // an automation <-> browser message, put it above this section. The "no line |
1010 // number change" applies only to the automation <-> browser messages. | 1010 // number change" applies only to the automation <-> browser messages. |
OLD | NEW |