OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 | 33 |
34 #define IPC_MESSAGE_START AutomationMsgStart | 34 #define IPC_MESSAGE_START AutomationMsgStart |
35 | 35 |
36 // This message is fired when the AutomationProvider is up and running | 36 // This message is fired when the AutomationProvider is up and running |
37 // in the app (the app is not fully up at this point). The parameter to this | 37 // in the app (the app is not fully up at this point). The parameter to this |
38 // message is the version string of the automation provider. This parameter | 38 // message is the version string of the automation provider. This parameter |
39 // is defined to be the version string as returned by | 39 // is defined to be the version string as returned by |
40 // chrome::VersionInfo::Version(). | 40 // chrome::VersionInfo::Version(). |
41 // The client can choose to use this version string to decide whether or not | 41 // The client can choose to use this version string to decide whether or not |
42 // it can talk to the provider. | 42 // it can talk to the provider. |
43 IPC_MESSAGE_ROUTED1(AutomationMsg_Hello, std::string) | 43 IPC_MESSAGE_CONTROL1(AutomationMsg_Hello, |
| 44 std::string) |
44 | 45 |
45 // This message is fired when the initial tab(s) are finished loading. | 46 // This message is fired when the initial tab(s) are finished loading. |
46 IPC_MESSAGE_ROUTED0(AutomationMsg_InitialLoadsComplete) | 47 IPC_MESSAGE_CONTROL0(AutomationMsg_InitialLoadsComplete) |
47 | 48 |
48 // This message notifies the AutomationProvider to append a new tab the | 49 // This message notifies the AutomationProvider to append a new tab the |
49 // window with the given handle. The return value contains the index of | 50 // window with the given handle. The return value contains the index of |
50 // the new tab, or -1 if the request failed. | 51 // the new tab, or -1 if the request failed. |
51 // The second parameter is the url to be loaded in the new tab. | 52 // The second parameter is the url to be loaded in the new tab. |
52 IPC_SYNC_MESSAGE_ROUTED2_1(AutomationMsg_AppendTab, int, GURL, int) | 53 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_AppendTab, |
| 54 int, |
| 55 GURL, |
| 56 int) |
53 | 57 |
54 // This message requests the (zero-based) index for the currently | 58 // This message requests the (zero-based) index for the currently |
55 // active tab in the window with the given handle. The return value contains | 59 // active tab in the window with the given handle. The return value contains |
56 // the index of the active tab, or -1 if the request failed. | 60 // the index of the active tab, or -1 if the request failed. |
57 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_ActiveTabIndex, int, int) | 61 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_ActiveTabIndex, |
| 62 int, |
| 63 int) |
58 | 64 |
59 // This message notifies the AutomationProvider to active the tab. | 65 // This message notifies the AutomationProvider to active the tab. |
60 // The first parameter is the handle to window resource. | 66 // The first parameter is the handle to window resource. |
61 // The second parameter is the (zero-based) index to be activated | 67 // The second parameter is the (zero-based) index to be activated |
62 IPC_SYNC_MESSAGE_ROUTED2_1(AutomationMsg_ActivateTab, int, int, int) | 68 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_ActivateTab, |
| 69 int, |
| 70 int, |
| 71 int) |
63 | 72 |
64 // This message requests the cookie value for given url in the | 73 // This message requests the cookie value for given url in the |
65 // profile of the tab identified by the second parameter. The first | 74 // profile of the tab identified by the second parameter. The first |
66 // parameter is the URL string. The response contains the length of the | 75 // parameter is the URL string. The response contains the length of the |
67 // cookie value string. On failure, this length = -1. | 76 // cookie value string. On failure, this length = -1. |
68 IPC_SYNC_MESSAGE_ROUTED2_2(AutomationMsg_GetCookies, GURL, int, | 77 IPC_SYNC_MESSAGE_CONTROL2_2(AutomationMsg_GetCookies, |
69 int, std::string) | 78 GURL, |
| 79 int, |
| 80 int, |
| 81 std::string) |
70 | 82 |
71 // This message notifies the AutomationProvider to set and broadcast a cookie | 83 // This message notifies the AutomationProvider to set and broadcast a cookie |
72 // with given name and value for the given url in the profile of the tab | 84 // with given name and value for the given url in the profile of the tab |
73 // identified by the third parameter. The first parameter is the URL | 85 // identified by the third parameter. The first parameter is the URL |
74 // string, and the second parameter is the cookie name and value to be set. | 86 // string, and the second parameter is the cookie name and value to be set. |
75 // The return value is a non-negative value on success. | 87 // The return value is a non-negative value on success. |
76 IPC_SYNC_MESSAGE_ROUTED3_1(AutomationMsg_SetCookie, GURL, std::string, | 88 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_SetCookie, |
77 int, int) | 89 GURL, |
78 | 90 std::string, |
79 // This message notifies the AutomationProvider to navigate to a specified | 91 int, |
80 // url in the tab with given handle. The first parameter is the handle to | 92 int) |
81 // the tab resource. The second parameter is the target url. The return | |
82 // value contains a status code which is nonnegative on success. | |
83 // See AutomationMsg_NavigationResponseValues for the return value. | |
84 // | |
85 // Deprecated in favor of | |
86 // AutomationMsg_NavigateToURLBlockUntilNavigationsComplete. | |
87 // TODO(phajdan.jr): Remove when the reference build gets updated. | |
88 IPC_SYNC_MESSAGE_ROUTED2_1(AutomationMsg_NavigateToURL, int, GURL, | |
89 AutomationMsg_NavigationResponseValues) | |
90 | 93 |
91 // This message is used to implement the asynchronous version of | 94 // This message is used to implement the asynchronous version of |
92 // NavigateToURL. | 95 // NavigateToURL. |
93 IPC_SYNC_MESSAGE_ROUTED2_1(AutomationMsg_NavigationAsync, | 96 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_NavigationAsync, |
94 int /* tab handle */, | 97 int /* tab handle */, |
95 GURL, | 98 GURL, |
96 bool /* result */) | 99 bool /* result */) |
97 | |
98 // This message notifies the AutomationProvider to navigate back in session | |
99 // history in the tab with given handle. The first parameter is the handle | |
100 // to the tab resource. | |
101 // See AutomationMsg_NavigationResponseValues for the navigation response | |
102 // values. | |
103 // | |
104 // Deprecated in favor of AutomationMsg_GoBackBlockUntilNavigationsComplete. | |
105 // TODO(phajdan.jr): Remove when the reference build gets updated. | |
106 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_GoBack, int, | |
107 AutomationMsg_NavigationResponseValues) | |
108 | |
109 // This message notifies the AutomationProvider to navigate forward in session | |
110 // history in the tab with given handle. The first parameter is the handle | |
111 // to the tab resource. | |
112 // See AutomationMsg_NavigationResponseValues for the navigation response | |
113 // values. | |
114 // | |
115 // Deprecated in favor of | |
116 // AutomationMsg_GoForwardBlockUntilNavigationsComplete. | |
117 // TODO(phajdan.jr): Remove when the reference build gets updated. | |
118 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_GoForward, int, | |
119 AutomationMsg_NavigationResponseValues) | |
120 | 100 |
121 // This message requests the number of browser windows that the app currently | 101 // This message requests the number of browser windows that the app currently |
122 // has open. The return value is the number of windows. | 102 // has open. The return value is the number of windows. |
123 IPC_SYNC_MESSAGE_ROUTED0_1(AutomationMsg_BrowserWindowCount, int) | 103 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_BrowserWindowCount, |
| 104 int) |
124 | 105 |
125 // This message requests the handle (int64 app-unique identifier) of the | 106 // This message requests the handle (int64 app-unique identifier) of the |
126 // window with the given (zero-based) index. On error, the returned handle | 107 // window with the given (zero-based) index. On error, the returned handle |
127 // value is 0. | 108 // value is 0. |
128 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_BrowserWindow, int, int) | 109 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_BrowserWindow, |
| 110 int, |
| 111 int) |
129 | 112 |
130 // This message requests the number of tabs in the window with the given | 113 // This message requests the number of tabs in the window with the given |
131 // handle. The return value contains the number of tabs, or -1 if the | 114 // handle. The return value contains the number of tabs, or -1 if the |
132 // request failed. | 115 // request failed. |
133 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_TabCount, int, int) | 116 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_TabCount, |
| 117 int, |
| 118 int) |
134 | 119 |
135 // This message requests the handle of the tab with the given (zero-based) | 120 // This message requests the handle of the tab with the given (zero-based) |
136 // index in the given app window. First parameter specifies the given window | 121 // index in the given app window. First parameter specifies the given window |
137 // handle, second specifies the given tab_index. On error, the returned handle | 122 // handle, second specifies the given tab_index. On error, the returned handle |
138 // value is 0. | 123 // value is 0. |
139 IPC_SYNC_MESSAGE_ROUTED2_1(AutomationMsg_Tab, int, int, int) | 124 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_Tab, |
| 125 int, |
| 126 int, |
| 127 int) |
140 | 128 |
141 // This message requests the the title of the tab with the given handle. | 129 // This message requests the the title of the tab with the given handle. |
142 // The return value contains the size of the title string. On error, this | 130 // The return value contains the size of the title string. On error, this |
143 // value should be -1 and empty string. Note that the title can be empty in | 131 // value should be -1 and empty string. Note that the title can be empty in |
144 // which case the size would be 0. | 132 // which case the size would be 0. |
145 IPC_SYNC_MESSAGE_ROUTED1_2(AutomationMsg_TabTitle, | 133 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_TabTitle, |
146 int, | 134 int, |
147 int, | 135 int, |
148 std::wstring) | 136 std::wstring) |
149 | 137 |
150 // This message requests the url of the tab with the given handle. | 138 // This message requests the url of the tab with the given handle. |
151 // The return value contains a success flag and the URL string. The URL will | 139 // The return value contains a success flag and the URL string. The URL will |
152 // be empty on failure, and it still may be empty on success. | 140 // be empty on failure, and it still may be empty on success. |
153 IPC_SYNC_MESSAGE_ROUTED1_2(AutomationMsg_TabURL, | 141 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_TabURL, |
154 int /* tab handle */, | 142 int /* tab handle */, |
155 bool /* success flag */, | 143 bool /* success flag */, |
156 GURL) | 144 GURL) |
157 | 145 |
158 // This message notifies the AutomationProxy that a handle that it has | 146 // This message notifies the AutomationProxy that a handle that it has |
159 // previously been given is now invalid. (For instance, if the handle | 147 // previously been given is now invalid. (For instance, if the handle |
160 // represented a window which has now been closed.) The parameter | 148 // represented a window which has now been closed.) The parameter |
161 // value is the handle. | 149 // value is the handle. |
162 IPC_MESSAGE_ROUTED1(AutomationMsg_InvalidateHandle, int) | 150 IPC_MESSAGE_CONTROL1(AutomationMsg_InvalidateHandle, |
| 151 int) |
163 | 152 |
164 // This message notifies the AutomationProvider that a handle is no | 153 // This message notifies the AutomationProvider that a handle is no |
165 // longer being used, so it can stop paying attention to the | 154 // longer being used, so it can stop paying attention to the |
166 // associated resource. The parameter value is the handle. | 155 // associated resource. The parameter value is the handle. |
167 IPC_MESSAGE_ROUTED1(AutomationMsg_HandleUnused, int) | 156 IPC_MESSAGE_CONTROL1(AutomationMsg_HandleUnused, |
| 157 int) |
168 | 158 |
169 // This message tells the AutomationProvider to provide the given | 159 // This message tells the AutomationProvider to provide the given |
170 // authentication data to the specified tab, in response to an HTTP/FTP | 160 // authentication data to the specified tab, in response to an HTTP/FTP |
171 // authentication challenge. | 161 // authentication challenge. |
172 IPC_SYNC_MESSAGE_ROUTED3_1(AutomationMsg_SetAuth, | 162 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_SetAuth, |
173 int, // tab handle | 163 int /* tab handle */, |
174 std::wstring, // username | 164 std::wstring /* username */, |
175 std::wstring, // password | 165 std::wstring /* password */, |
176 AutomationMsg_NavigationResponseValues) // status | 166 AutomationMsg_NavigationResponseValues /* status */) |
177 | 167 |
178 // This message tells the AutomationProvider to cancel the login in the | 168 // This message tells the AutomationProvider to cancel the login in the |
179 // specified tab. | 169 // specified tab. |
180 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_CancelAuth, | 170 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_CancelAuth, |
181 int, // tab handle | 171 int /* tab handle */, |
182 AutomationMsg_NavigationResponseValues) // status | 172 AutomationMsg_NavigationResponseValues /* status */) |
183 | 173 |
184 // Requests that the automation provider ask history for the most recent | 174 // Requests that the automation provider ask history for the most recent |
185 // chain of redirects coming from the given URL. The response must be | 175 // chain of redirects coming from the given URL. The response must be |
186 // decoded by the caller manually; it contains an integer indicating the | 176 // decoded by the caller manually; it contains an integer indicating the |
187 // number of URLs, followed by that many wstrings indicating a chain of | 177 // number of URLs, followed by that many wstrings indicating a chain of |
188 // redirects. On failure, the count will be negative. | 178 // redirects. On failure, the count will be negative. |
189 IPC_SYNC_MESSAGE_ROUTED2_2(AutomationMsg_RedirectsFrom, | 179 IPC_SYNC_MESSAGE_CONTROL2_2(AutomationMsg_RedirectsFrom, |
190 int, // tab handle | 180 int /* tab handle */, |
191 GURL, // source URL | 181 GURL /* source URL */, |
192 bool /* succeeded */, | 182 bool /* succeeded */, |
193 std::vector<GURL> /* redirects */) | 183 std::vector<GURL> /* redirects */) |
194 | 184 |
195 // This message asks the AutomationProvider whether a tab is waiting for | 185 // This message asks the AutomationProvider whether a tab is waiting for |
196 // login info. | 186 // login info. |
197 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_NeedsAuth, | 187 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_NeedsAuth, |
198 int, // tab handle | 188 int /* tab handle */, |
199 bool) // status | 189 bool /* status */) |
200 | |
201 // This message requests the AutomationProvider to apply a certain | |
202 // accelerator. It is completely asynchronous with the resulting accelerator | |
203 // action. | |
204 IPC_SYNC_MESSAGE_ROUTED2_0(AutomationMsg_ApplyAccelerator, | |
205 int, // window handle | |
206 int) // accelerator id like (IDC_BACK, | |
207 // IDC_FORWARD, etc) | |
208 // The list can be found at | |
209 // chrome/app/chrome_command_ids.h | |
210 | 190 |
211 // This message requests that the AutomationProvider executes a JavaScript, | 191 // This message requests that the AutomationProvider executes a JavaScript, |
212 // which is sent embedded in a 'javascript:' URL. | 192 // which is sent embedded in a 'javascript:' URL. |
213 // The javascript is executed in context of child frame whose xpath | 193 // The javascript is executed in context of child frame whose xpath |
214 // is passed as parameter (context_frame). The execution results in | 194 // is passed as parameter (context_frame). The execution results in |
215 // a serialized JSON string response. | 195 // a serialized JSON string response. |
216 IPC_SYNC_MESSAGE_ROUTED3_1(AutomationMsg_DomOperation, | 196 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_DomOperation, |
217 int, // tab handle | 197 int /* tab handle */, |
218 std::wstring, // context_frame | 198 std::wstring /* context_frame */, |
219 std::wstring, // the javascript to be executed | 199 std::wstring /* the javascript to be executed */, |
220 std::string) // the serialized json string | 200 std::string /* the serialized json string containg |
221 // containing the result of a | 201 the result of a javascript |
222 // javascript execution | 202 execution */) |
223 | 203 |
224 // Is the Download Shelf visible for the specified browser? | 204 // Is the Download Shelf visible for the specified browser? |
225 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_ShelfVisibility, | 205 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_ShelfVisibility, |
226 int /* browser_handle */, | 206 int /* browser_handle */, |
227 bool /* is_visible */) | 207 bool /* is_visible */) |
228 | 208 |
229 // This message requests the number of constrained windows in the tab with | 209 // This message requests the number of constrained windows in the tab with |
230 // the given handle. The return value contains the number of constrained | 210 // the given handle. The return value contains the number of constrained |
231 // windows, or -1 if the request failed. | 211 // windows, or -1 if the request failed. |
232 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_ConstrainedWindowCount, | 212 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_ConstrainedWindowCount, |
233 int /* tab_handle */, | 213 int /* tab_handle */, |
234 int /* constrained_window_count */) | 214 int /* constrained_window_count */) |
235 | 215 |
236 // This message requests the bounds of the specified View element in | 216 // This message requests the bounds of the specified View element in |
237 // window coordinates. | 217 // window coordinates. |
238 // Request: | 218 // Request: |
239 // int - the handle of the window in which the view appears | 219 // int - the handle of the window in which the view appears |
240 // int - the ID of the view, as specified in chrome/browser/ui/view_ids.h | 220 // int - the ID of the view, as specified in chrome/browser/ui/view_ids.h |
241 // bool - whether the bounds should be returned in the screen coordinates | 221 // bool - whether the bounds should be returned in the screen coordinates |
242 // (if true) or in the browser coordinates (if false). | 222 // (if true) or in the browser coordinates (if false). |
243 // Response: | 223 // Response: |
244 // bool - true if the view was found | 224 // bool - true if the view was found |
245 // gfx::Rect - the bounds of the view, in window coordinates | 225 // gfx::Rect - the bounds of the view, in window coordinates |
246 IPC_SYNC_MESSAGE_ROUTED3_2(AutomationMsg_WindowViewBounds, int, int, | 226 IPC_SYNC_MESSAGE_CONTROL3_2(AutomationMsg_WindowViewBounds, |
247 bool, bool, gfx::Rect) | 227 int, |
| 228 int, |
| 229 bool, |
| 230 bool, |
| 231 gfx::Rect) |
248 | 232 |
249 // This message sets the bounds of the window. | 233 // This message sets the bounds of the window. |
250 // Request: | 234 // Request: |
251 // int - the handle of the window to resize | 235 // int - the handle of the window to resize |
252 // gfx::Rect - the bounds of the window | 236 // gfx::Rect - the bounds of the window |
253 // Response: | 237 // Response: |
254 // bool - true if the resize was successful | 238 // bool - true if the resize was successful |
255 IPC_SYNC_MESSAGE_ROUTED2_1(AutomationMsg_SetWindowBounds, int, gfx::Rect, | 239 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_SetWindowBounds, |
256 bool) | 240 int, |
| 241 gfx::Rect, |
| 242 bool) |
257 | 243 |
258 #if defined(OS_WIN) | |
259 // TODO(port): Port these messages. | 244 // TODO(port): Port these messages. |
260 // | 245 // |
261 // This message requests that a drag be performed in window coordinate space | 246 // This message requests that a drag be performed in window coordinate space |
262 // Request: | 247 // Request: |
263 // int - the handle of the window that's the context for this drag | 248 // int - the handle of the window that's the context for this drag |
264 // std::vector<gfx::Point> - the path of the drag in window coordinate | 249 // std::vector<gfx::Point> - the path of the drag in window coordinate |
265 // space; it should have at least 2 points | 250 // space; it should have at least 2 points |
266 // (start and end) | 251 // (start and end) |
267 // int - the flags which identify the mouse button(s) for the drag, as | 252 // int - the flags which identify the mouse button(s) for the drag, as |
268 // defined in chrome/views/event.h | 253 // defined in chrome/views/event.h |
269 // Response: | 254 // Response: |
270 // bool - true if the drag could be performed | 255 // bool - true if the drag could be performed |
271 IPC_SYNC_MESSAGE_ROUTED4_1(AutomationMsg_WindowDrag, | 256 IPC_SYNC_MESSAGE_CONTROL4_1(AutomationMsg_WindowDrag, |
272 int, std::vector<gfx::Point>, int, bool, bool) | 257 int, |
273 #endif // defined(OS_WIN) | 258 std::vector<gfx::Point>, |
| 259 int, |
| 260 bool, |
| 261 bool) |
274 | 262 |
275 // Similar to AutomationMsg_InitialLoadsComplete, this indicates that the | 263 // Similar to AutomationMsg_InitialLoadsComplete, this indicates that the |
276 // new tab ui has completed the initial load of its data. | 264 // new tab ui has completed the initial load of its data. |
277 // Time is how many milliseconds the load took. | 265 // Time is how many milliseconds the load took. |
278 IPC_MESSAGE_ROUTED1(AutomationMsg_InitialNewTabUILoadComplete, | 266 IPC_MESSAGE_CONTROL1(AutomationMsg_InitialNewTabUILoadComplete, |
279 int /* time */) | 267 int /* time */) |
280 | 268 |
281 // This message starts a find within a tab corresponding to the supplied | |
282 // tab handle. The return value contains the number of matches found on the | |
283 // page within the tab specified. The parameter 'search_string' specifies | |
284 // what string to search for, 'forward' specifies whether to search in | |
285 // forward direction (1=forward, 0=back), 'match_case' specifies case | |
286 // sensitivity | |
287 // (1=case sensitive, 0=case insensitive). If an error occurs, matches_found | |
288 // will be -1. | |
289 // | |
290 // NOTE: This message has been deprecated, please use the new message | |
291 // AutomationMsg_Find below. | |
292 // | |
293 IPC_SYNC_MESSAGE_ROUTED4_2(AutomationMsg_FindInPage, // DEPRECATED. | |
294 int, /* tab_handle */ | |
295 std::wstring, /* find_request */ | |
296 int, /* forward */ | |
297 int /* match_case */, | |
298 int /* active_ordinal */, | |
299 int /* matches_found */) | |
300 | |
301 // This message sends a inspect element request for a given tab. The response | 269 // This message sends a inspect element request for a given tab. The response |
302 // contains the number of resources loaded by the inspector controller. | 270 // contains the number of resources loaded by the inspector controller. |
303 IPC_SYNC_MESSAGE_ROUTED3_1(AutomationMsg_InspectElement, | 271 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_InspectElement, |
304 int, /* tab_handle */ | 272 int, /* tab_handle */ |
305 int, /* x */ | 273 int, /* x */ |
306 int /* y */, | 274 int /* y */, |
307 int) | 275 int) |
308 | 276 |
309 // This message requests the process ID of the tab that corresponds | 277 // This message requests the process ID of the tab that corresponds |
310 // to the given automation handle. | 278 // to the given automation handle. |
311 // The return value has an integer corresponding to the PID of the tab's | 279 // The return value has an integer corresponding to the PID of the tab's |
312 // renderer, 0 if the tab currently has no renderer process, or -1 on error. | 280 // renderer, 0 if the tab currently has no renderer process, or -1 on error. |
313 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_TabProcessID, | 281 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_TabProcessID, |
314 int /* tab_handle */, | 282 int /* tab_handle */, |
315 int /* process ID */) | 283 int /* process ID */) |
316 | 284 |
317 // This tells the browser to enable or disable the filtered network layer. | 285 // This tells the browser to enable or disable the filtered network layer. |
318 IPC_MESSAGE_ROUTED1(AutomationMsg_SetFilteredInet, | 286 IPC_MESSAGE_CONTROL1(AutomationMsg_SetFilteredInet, |
319 bool /* enabled */) | 287 bool /* enabled */) |
320 | 288 |
321 // Gets the directory that downloads will occur in for the active profile. | 289 // Gets the directory that downloads will occur in for the active profile. |
322 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_DownloadDirectory, | 290 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DownloadDirectory, |
323 int /* tab_handle */, | 291 int /* tab_handle */, |
324 FilePath /* directory */) | 292 FilePath /* directory */) |
325 | 293 |
326 // This message requests the id of the view that has the focus in the | 294 // This message requests the id of the view that has the focus in the |
327 // specified window. If no view is focused, -1 is returned. Note that the | 295 // specified window. If no view is focused, -1 is returned. Note that the |
328 // window should either be a ViewWindow or a Browser. | 296 // window should either be a ViewWindow or a Browser. |
329 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_GetFocusedViewID, | 297 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_GetFocusedViewID, |
330 int /* view_handle */, | 298 int /* view_handle */, |
331 int /* focused_view_id */) | 299 int /* focused_view_id */) |
332 | 300 |
333 // This message shows/hides the window. | 301 // This message shows/hides the window. |
334 IPC_SYNC_MESSAGE_ROUTED2_1(AutomationMsg_SetWindowVisible, | 302 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_SetWindowVisible, |
335 int /* view_handle */, | 303 int /* view_handle */, |
336 bool /* visible */, | 304 bool /* visible */, |
337 bool /* success */) | 305 bool /* success */) |
338 | 306 |
339 // Gets the active status of a window. | 307 // Gets the active status of a window. |
340 IPC_SYNC_MESSAGE_ROUTED1_2(AutomationMsg_IsWindowActive, | 308 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_IsWindowActive, |
341 int /* view_handle */, | 309 int /* view_handle */, |
342 bool /* success */, | 310 bool /* success */, |
343 bool /* active */) | 311 bool /* active */) |
344 | 312 |
345 // Makes the specified window the active window. | 313 // Makes the specified window the active window. |
346 IPC_SYNC_MESSAGE_ROUTED1_0(AutomationMsg_ActivateWindow, | 314 IPC_SYNC_MESSAGE_CONTROL1_0(AutomationMsg_ActivateWindow, |
347 int /* view_handle */) | 315 int /* view_handle */) |
348 | 316 |
349 // Opens a new browser window. | 317 // Opens a new browser window. |
350 // TODO(sky): remove this and replace with OpenNewBrowserWindowOfType. | 318 // TODO(sky): remove this and replace with OpenNewBrowserWindowOfType. |
351 // Doing this requires updating the reference build. | 319 // Doing this requires updating the reference build. |
352 IPC_SYNC_MESSAGE_ROUTED1_0(AutomationMsg_OpenNewBrowserWindow, | 320 IPC_SYNC_MESSAGE_CONTROL1_0(AutomationMsg_OpenNewBrowserWindow, |
353 bool /* show */ ) | 321 bool /* show */ ) |
354 | 322 |
355 // This message requests the handle (int64 app-unique identifier) of the | 323 // This message requests the handle (int64 app-unique identifier) of the |
356 // current active top window. On error, the returned handle value is 0. | 324 // current active top window. On error, the returned handle value is 0. |
357 IPC_SYNC_MESSAGE_ROUTED0_1(AutomationMsg_ActiveWindow, int) | 325 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_ActiveWindow, |
| 326 int) |
358 | 327 |
359 // This message requests the browser associated with the specified window | 328 // This message requests the browser associated with the specified window |
360 // handle. | 329 // handle. |
361 // The return value contains a success flag and the handle of the browser. | 330 // The return value contains a success flag and the handle of the browser. |
362 IPC_SYNC_MESSAGE_ROUTED1_2(AutomationMsg_BrowserForWindow, | 331 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_BrowserForWindow, |
363 int /* window handle */, | 332 int /* window handle */, |
364 bool /* success flag */, | 333 bool /* success flag */, |
365 int /* browser handle */) | 334 int /* browser handle */) |
366 | 335 |
367 // This message requests the window associated with the specified browser | 336 // This message requests the window associated with the specified browser |
368 // handle. | 337 // handle. |
369 // The return value contains a success flag and the handle of the window. | 338 // The return value contains a success flag and the handle of the window. |
370 IPC_SYNC_MESSAGE_ROUTED1_2(AutomationMsg_WindowForBrowser, | 339 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_WindowForBrowser, |
371 int /* browser handle */, | 340 int /* browser handle */, |
372 bool /* success flag */, | 341 bool /* success flag */, |
373 int /* window handle */) | 342 int /* window handle */) |
374 | 343 |
375 // This message requests the AutocompleteEdit associated with the specified | 344 // This message requests the AutocompleteEdit associated with the specified |
376 // browser handle. | 345 // browser handle. |
377 // The return value contains a success flag and the handle of the omnibox. | 346 // The return value contains a success flag and the handle of the omnibox. |
378 IPC_SYNC_MESSAGE_ROUTED1_2(AutomationMsg_AutocompleteEditForBrowser, | 347 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_AutocompleteEditForBrowser, |
379 int /* browser handle */, | 348 int /* browser handle */, |
380 bool /* success flag */, | 349 bool /* success flag */, |
381 int /* AutocompleteEdit handle */) | 350 int /* AutocompleteEdit handle */) |
382 | 351 |
383 // This message requests that a mouse click be performed in window coordinate | 352 // This message requests that a mouse click be performed in window coordinate |
384 // space. | 353 // space. |
385 // Request: | 354 // Request: |
386 // int - the handle of the window that's the context for this click | 355 // int - the handle of the window that's the context for this click |
387 // gfx::Point - the point to click | 356 // gfx::Point - the point to click |
388 // int - the flags which identify the mouse button(s) for the click, as | 357 // int - the flags which identify the mouse button(s) for the click, as |
389 // defined in chrome/views/event.h | 358 // defined in chrome/views/event.h |
390 IPC_MESSAGE_ROUTED3(AutomationMsg_WindowClick, int, gfx::Point, int) | 359 IPC_MESSAGE_CONTROL3(AutomationMsg_WindowClick, |
| 360 int, |
| 361 gfx::Point, |
| 362 int) |
391 | 363 |
392 // This message requests that a key press be performed. | 364 // This message requests that a key press be performed. |
393 // Request: | 365 // Request: |
394 // int - the handle of the window that's the context for this click | 366 // int - the handle of the window that's the context for this click |
395 // int - the app::KeyboardCode of the key that was pressed. | 367 // int - the app::KeyboardCode of the key that was pressed. |
396 // int - the flags which identify the modifiers (shift, ctrl, alt) | 368 // int - the flags which identify the modifiers (shift, ctrl, alt) |
397 // associated for, as defined in chrome/views/event.h | 369 // associated for, as defined in chrome/views/event.h |
398 IPC_MESSAGE_ROUTED3(AutomationMsg_WindowKeyPress, int, int, int) | 370 IPC_MESSAGE_CONTROL3(AutomationMsg_WindowKeyPress, |
| 371 int, |
| 372 int, |
| 373 int) |
399 | 374 |
400 // This message notifies the AutomationProvider to create a tab which is | 375 // This message notifies the AutomationProvider to create a tab which is |
401 // hosted by an external process. | 376 // hosted by an external process. |
402 // Request: | 377 // Request: |
403 // ExternalTabSettings - settings for external tab | 378 // ExternalTabSettings - settings for external tab |
404 IPC_SYNC_MESSAGE_ROUTED1_4(AutomationMsg_CreateExternalTab, | 379 IPC_SYNC_MESSAGE_CONTROL1_4(AutomationMsg_CreateExternalTab, |
405 IPC::ExternalTabSettings /* settings*/, | 380 ExternalTabSettings /* settings*/, |
406 gfx::NativeWindow /* Tab container window */, | 381 gfx::NativeWindow /* Tab container window */, |
407 gfx::NativeWindow /* Tab window */, | 382 gfx::NativeWindow /* Tab window */, |
408 int /* Handle to the new tab */, | 383 int /* Handle to the new tab */, |
409 int /* Session Id of the new tab */) | 384 int /* Session Id of the new tab */) |
410 | 385 |
411 // This message notifies the AutomationProvider to navigate to a specified | 386 // This message notifies the AutomationProvider to navigate to a specified |
412 // url in the external tab with given handle. The first parameter is the | 387 // url in the external tab with given handle. The first parameter is the |
413 // handle to the tab resource. The second parameter is the target url. | 388 // handle to the tab resource. The second parameter is the target url. |
414 // The third parameter is the referrer. | 389 // The third parameter is the referrer. |
415 // The return value contains a status code which is nonnegative on success. | 390 // The return value contains a status code which is nonnegative on success. |
416 // see AutomationMsg_NavigationResponseValues for the navigation response. | 391 // see AutomationMsg_NavigationResponseValues for the navigation response. |
417 IPC_SYNC_MESSAGE_ROUTED3_1(AutomationMsg_NavigateInExternalTab, | 392 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_NavigateInExternalTab, |
418 int, | 393 int, |
419 GURL, | 394 GURL, |
420 GURL, | 395 GURL, |
421 AutomationMsg_NavigationResponseValues) | 396 AutomationMsg_NavigationResponseValues) |
422 | 397 |
423 // This message is an outgoing message from Chrome to an external host. | 398 // This message is an outgoing message from Chrome to an external host. |
424 // It is a notification that the NavigationState was changed | 399 // It is a notification that the NavigationState was changed |
425 // Request: | 400 // Request: |
426 // -int: The flags specifying what changed | 401 // -int: The flags specifying what changed |
427 // (see TabContents::InvalidateTypes) | 402 // (see TabContents::InvalidateTypes) |
428 // Response: | 403 // Response: |
429 // None expected | 404 // None expected |
430 IPC_MESSAGE_ROUTED3(AutomationMsg_NavigationStateChanged, | 405 IPC_MESSAGE_ROUTED2(AutomationMsg_NavigationStateChanged, |
431 int, // tab handle | |
432 int, // TabContents::InvalidateTypes | 406 int, // TabContents::InvalidateTypes |
433 IPC::NavigationInfo) // title, url etc. | 407 NavigationInfo) // title, url etc. |
434 | 408 |
435 // This message is an outgoing message from Chrome to an external host. | 409 // This message is an outgoing message from Chrome to an external host. |
436 // It is a notification that the target URL has changed (the target URL | 410 // It is a notification that the target URL has changed (the target URL |
437 // is the URL of the link that the user is hovering on) | 411 // is the URL of the link that the user is hovering on) |
438 // Request: | 412 // Request: |
439 // -int: The tab handle | |
440 // -std::wstring: The new target URL | 413 // -std::wstring: The new target URL |
441 // Response: | 414 // Response: |
442 // None expected | 415 // None expected |
443 IPC_MESSAGE_ROUTED2(AutomationMsg_UpdateTargetUrl, int, std::wstring) | 416 IPC_MESSAGE_ROUTED1(AutomationMsg_UpdateTargetUrl, |
| 417 std::wstring) |
444 | 418 |
445 // This message notifies the AutomationProvider to show the specified html | 419 // This message notifies the AutomationProvider to show the specified html |
446 // text in an interstitial page in the tab with given handle. The first | 420 // text in an interstitial page in the tab with given handle. The first |
447 // parameter is the handle to the tab resource. The second parameter is the | 421 // parameter is the handle to the tab resource. The second parameter is the |
448 // html text to be displayed. | 422 // html text to be displayed. |
449 // The return value contains a success flag. | 423 // The return value contains a success flag. |
450 IPC_SYNC_MESSAGE_ROUTED2_1(AutomationMsg_ShowInterstitialPage, | 424 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_ShowInterstitialPage, |
451 int, | 425 int, |
452 std::string, | 426 std::string, |
453 AutomationMsg_NavigationResponseValues) | 427 AutomationMsg_NavigationResponseValues) |
454 | 428 |
455 // This message notifies the AutomationProvider to hide the current | 429 // This message notifies the AutomationProvider to hide the current |
456 // interstitial page in the tab with given handle. The parameter is the | 430 // interstitial page in the tab with given handle. The parameter is the |
457 // handle to the tab resource. | 431 // handle to the tab resource. |
458 // The return value contains a success flag. | 432 // The return value contains a success flag. |
459 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_HideInterstitialPage, int, | 433 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_HideInterstitialPage, |
460 bool) | 434 int, |
| 435 bool) |
461 | 436 |
462 // This message requests that a tab be closed. | 437 // This message requests that a tab be closed. |
463 // Request: | 438 // Request: |
464 // - int: handle of the tab to close | 439 // - int: handle of the tab to close |
465 // - bool: if true the proxy blocks until the tab has completely closed, | 440 // - bool: if true the proxy blocks until the tab has completely closed, |
466 // otherwise the proxy only blocks until it initiates the close. | 441 // otherwise the proxy only blocks until it initiates the close. |
467 IPC_SYNC_MESSAGE_ROUTED2_1(AutomationMsg_CloseTab, int, bool, bool) | 442 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_CloseTab, |
| 443 int, |
| 444 bool, |
| 445 bool) |
468 | 446 |
469 // This message requests that the browser be closed. | 447 // This message requests that the browser be closed. |
470 // Request: | 448 // Request: |
471 // - int: handle of the browser which contains the tab | 449 // - int: handle of the browser which contains the tab |
472 // Response: | 450 // Response: |
473 // - bool: whether the operation was successfull. | 451 // - bool: whether the operation was successfull. |
474 // - bool: whether the browser process will be terminated as a result (if | 452 // - bool: whether the browser process will be terminated as a result (if |
475 // this was the last closed browser window). | 453 // this was the last closed browser window). |
476 IPC_SYNC_MESSAGE_ROUTED1_2(AutomationMsg_CloseBrowser, int, bool, | 454 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_CloseBrowser, |
477 bool) | 455 int, |
| 456 bool, |
| 457 bool) |
478 | 458 |
479 IPC_MESSAGE_ROUTED1(AutomationMsg_CloseBrowserRequestAsync, int) | 459 IPC_MESSAGE_CONTROL1(AutomationMsg_CloseBrowserRequestAsync, |
480 | 460 int) |
481 // Unused. | |
482 // Response: | |
483 // None expected | |
484 IPC_MESSAGE_ROUTED1(AutomationMsg_Unused, int) | |
485 | 461 |
486 #if defined(OS_WIN) | 462 #if defined(OS_WIN) |
487 // TODO(port): Port these messages. | 463 // TODO(port): Port these messages. |
488 // | 464 // |
489 // This message is an outgoing message from Chrome to an external host. | 465 // This message is an outgoing message from Chrome to an external host. |
490 // It is a request to process a keyboard accelerator. | 466 // It is a request to process a keyboard accelerator. |
491 // Request: | 467 // Request: |
492 // -int: Tab handle | |
493 // -MSG: The keyboard message | 468 // -MSG: The keyboard message |
494 // Response: | 469 // Response: |
495 // None expected | 470 // None expected |
496 // TODO(sanjeevr): Ideally we need to add a response from the external | 471 // TODO(sanjeevr): Ideally we need to add a response from the external |
497 // host saying whether it processed the accelerator | 472 // host saying whether it processed the accelerator |
498 IPC_MESSAGE_ROUTED2(AutomationMsg_HandleAccelerator, int, MSG) | 473 IPC_MESSAGE_ROUTED1(AutomationMsg_HandleAccelerator, |
| 474 MSG) |
499 | 475 |
500 // This message is sent by the container of an externally hosted tab to | 476 // This message is sent by the container of an externally hosted tab to |
501 // reflect any accelerator keys that it did not process. This gives the | 477 // reflect any accelerator keys that it did not process. This gives the |
502 // tab a chance to handle the keys | 478 // tab a chance to handle the keys |
503 // Request: | 479 // Request: |
504 // - int: handle of the tab | 480 // - int: handle of the tab |
505 // -MSG: The keyboard message that the container did not handle | 481 // -MSG: The keyboard message that the container did not handle |
506 // Response: | 482 // Response: |
507 // None expected | 483 // None expected |
508 IPC_MESSAGE_ROUTED2(AutomationMsg_ProcessUnhandledAccelerator, int, MSG) | 484 IPC_MESSAGE_CONTROL2(AutomationMsg_ProcessUnhandledAccelerator, |
| 485 int, |
| 486 MSG) |
509 #endif // defined(OS_WIN) | 487 #endif // defined(OS_WIN) |
510 | 488 |
511 // Sent by the external tab to the host to notify that the user has tabbed | 489 // Sent by the external tab to the host to notify that the user has tabbed |
512 // out of the tab. | 490 // out of the tab. |
513 // Request: | 491 // Request: |
514 // - int: Tab handle | |
515 // - bool: |reverse| set to true when shift-tabbing out of the tab, false | 492 // - bool: |reverse| set to true when shift-tabbing out of the tab, false |
516 // otherwise. | 493 // otherwise. |
517 // Response: | 494 // Response: |
518 // None expected | 495 // None expected |
519 IPC_MESSAGE_ROUTED2(AutomationMsg_TabbedOut, int, bool) | 496 IPC_MESSAGE_ROUTED1(AutomationMsg_TabbedOut, |
| 497 bool) |
520 | 498 |
521 // Sent by the external tab host to ask focus to be set to either the first | 499 // Sent by the external tab host to ask focus to be set to either the first |
522 // or last element on the page. | 500 // or last element on the page. |
523 // Request: | 501 // Request: |
524 // - int: handle of the tab | 502 // - int: handle of the tab |
525 // - bool: |reverse| | 503 // - bool: |reverse| |
526 // true: Focus will be set to the last focusable element | 504 // true: Focus will be set to the last focusable element |
527 // false: Focus will be set to the first focusable element | 505 // false: Focus will be set to the first focusable element |
528 // - bool: |restore_focus_to_view| | 506 // - bool: |restore_focus_to_view| |
529 // true: The renderer view associated with the current tab will be | 507 // true: The renderer view associated with the current tab will be |
530 // infomed that it is receiving focus. | 508 // infomed that it is receiving focus. |
531 // Response: | 509 // Response: |
532 // None expected | 510 // None expected |
533 IPC_MESSAGE_ROUTED3(AutomationMsg_SetInitialFocus, int, bool, bool) | 511 IPC_MESSAGE_CONTROL3(AutomationMsg_SetInitialFocus, |
| 512 int, |
| 513 bool, |
| 514 bool) |
534 | 515 |
535 // This message is an outgoing message from Chrome to an external host. | 516 // This message is an outgoing message from Chrome to an external host. |
536 // It is a request to open a url | 517 // It is a request to open a url |
537 // Request: | 518 // Request: |
538 // -int: Tab handle | |
539 // -GURL: The URL to open | 519 // -GURL: The URL to open |
540 // -GURL: The referrer | 520 // -GURL: The referrer |
541 // -int: The WindowOpenDisposition that specifies where the URL should | 521 // -int: The WindowOpenDisposition that specifies where the URL should |
542 // be opened (new tab, new window etc). | 522 // be opened (new tab, new window etc). |
543 // Response: | 523 // Response: |
544 // None expected | 524 // None expected |
545 IPC_MESSAGE_ROUTED4(AutomationMsg_OpenURL, int, GURL, GURL, int) | 525 IPC_MESSAGE_ROUTED3(AutomationMsg_OpenURL, |
| 526 GURL, |
| 527 GURL, |
| 528 int) |
546 | 529 |
547 // This message requests the provider to wait until the specified tab has | 530 // This message requests the provider to wait until the specified tab has |
548 // finished restoring after session restore. | 531 // finished restoring after session restore. |
549 // Request: | 532 // Request: |
550 // - int: handle of the tab | 533 // - int: handle of the tab |
551 // Response: | 534 // Response: |
552 // - bool: whether the operation was successful. | 535 // - bool: whether the operation was successful. |
553 IPC_SYNC_MESSAGE_ROUTED1_0(AutomationMsg_WaitForTabToBeRestored, int) | 536 IPC_SYNC_MESSAGE_CONTROL1_0(AutomationMsg_WaitForTabToBeRestored, |
| 537 int) |
554 | 538 |
555 // This message is an outgoing message from Chrome to an external host. | 539 // This message is an outgoing message from Chrome to an external host. |
556 // It is a notification that a navigation happened | 540 // It is a notification that a navigation happened |
557 // Request: | 541 // Request: |
558 // -int: Tab handle | |
559 // | 542 // |
560 // Response: | 543 // Response: |
561 // None expected | 544 // None expected |
562 IPC_MESSAGE_ROUTED2(AutomationMsg_DidNavigate, int, IPC::NavigationInfo) | 545 IPC_MESSAGE_ROUTED1(AutomationMsg_DidNavigate, |
| 546 NavigationInfo) |
563 | 547 |
564 // This message requests the different security states of the page displayed | 548 // This message requests the different security states of the page displayed |
565 // in the specified tab. | 549 // in the specified tab. |
566 // Request: | 550 // Request: |
567 // - int: handle of the tab | 551 // - int: handle of the tab |
568 // Response: | 552 // Response: |
569 // - bool: whether the operation was successful. | 553 // - bool: whether the operation was successful. |
570 // - SecurityStyle: the security style of the tab. | 554 // - SecurityStyle: the security style of the tab. |
571 // - int: the status of the server's ssl cert (0 means no errors or no ssl | 555 // - int: the status of the server's ssl cert (0 means no errors or no ssl |
572 // was used). | 556 // was used). |
573 // - int: the insecure content state, 0 means no insecure contents. | 557 // - int: the insecure content state, 0 means no insecure contents. |
574 | 558 |
575 IPC_SYNC_MESSAGE_ROUTED1_4(AutomationMsg_GetSecurityState, | 559 IPC_SYNC_MESSAGE_CONTROL1_4(AutomationMsg_GetSecurityState, |
576 int, | 560 int, |
577 bool, | 561 bool, |
578 SecurityStyle, | 562 SecurityStyle, |
579 int, | 563 int, |
580 int) | 564 int) |
581 | 565 |
582 // This message requests the page type of the page displayed in the specified | 566 // This message requests the page type of the page displayed in the specified |
583 // tab (normal, error or interstitial). | 567 // tab (normal, error or interstitial). |
584 // Request: | 568 // Request: |
585 // - int: handle of the tab | 569 // - int: handle of the tab |
586 // Response: | 570 // Response: |
587 // - bool: whether the operation was successful. | 571 // - bool: whether the operation was successful. |
588 // - PageType: the type of the page currently displayed. | 572 // - PageType: the type of the page currently displayed. |
589 IPC_SYNC_MESSAGE_ROUTED1_2(AutomationMsg_GetPageType, int, bool, PageType) | 573 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_GetPageType, |
| 574 int, |
| 575 bool, |
| 576 PageType) |
590 | 577 |
591 // This message simulates the user action on the SSL blocking page showing in | 578 // This message simulates the user action on the SSL blocking page showing in |
592 // the specified tab. This message is only effective if an interstitial page | 579 // the specified tab. This message is only effective if an interstitial page |
593 // is showing in the tab. | 580 // is showing in the tab. |
594 // Request: | 581 // Request: |
595 // - int: handle of the tab | 582 // - int: handle of the tab |
596 // - bool: whether to proceed or abort the navigation | 583 // - bool: whether to proceed or abort the navigation |
597 // Response: | 584 // Response: |
598 // - AutomationMsg_NavigationResponseValues: result of the operation. | 585 // - AutomationMsg_NavigationResponseValues: result of the operation. |
599 IPC_SYNC_MESSAGE_ROUTED2_1(AutomationMsg_ActionOnSSLBlockingPage, int, bool, | 586 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_ActionOnSSLBlockingPage, |
600 AutomationMsg_NavigationResponseValues) | 587 int, |
| 588 bool, |
| 589 AutomationMsg_NavigationResponseValues) |
601 | 590 |
602 // Message to request that a browser window is brought to the front and | 591 // Message to request that a browser window is brought to the front and |
603 // activated. | 592 // activated. |
604 // Request: | 593 // Request: |
605 // - int: handle of the browser window. | 594 // - int: handle of the browser window. |
606 // Response: | 595 // Response: |
607 // - bool: True if the browser is brought to the front. | 596 // - bool: True if the browser is brought to the front. |
608 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_BringBrowserToFront, int, bool) | 597 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_BringBrowserToFront, |
| 598 int, |
| 599 bool) |
609 | 600 |
610 // Message to request whether a certain item is enabled of disabled in the | 601 // Message to request whether a certain item is enabled of disabled in the |
611 // menu in the browser window | 602 // menu in the browser window |
612 // | 603 // |
613 // Request: | 604 // Request: |
614 // - int: handle of the browser window. | 605 // - int: handle of the browser window. |
615 // - int: IDC message identifier to query if enabled | 606 // - int: IDC message identifier to query if enabled |
616 // Response: | 607 // Response: |
617 // - bool: True if the command is enabled on the menu | 608 // - bool: True if the command is enabled on the menu |
618 IPC_SYNC_MESSAGE_ROUTED2_1(AutomationMsg_IsMenuCommandEnabled, int, int, bool) | 609 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_IsMenuCommandEnabled, |
| 610 int, |
| 611 int, |
| 612 bool) |
619 | 613 |
620 // This message notifies the AutomationProvider to print the tab with given | 614 // This message notifies the AutomationProvider to print the tab with given |
621 // handle. The first parameter is the handle to the tab resource. The | 615 // handle. The first parameter is the handle to the tab resource. The |
622 // return value contains a bool which is true on success. | 616 // return value contains a bool which is true on success. |
623 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_PrintNow, int, bool) | 617 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_PrintNow, |
| 618 int, |
| 619 bool) |
624 | 620 |
625 // This message notifies the AutomationProvider to reload the current page in | 621 // This message notifies the AutomationProvider to reload the current page in |
626 // the tab with given handle. The first parameter is the handle to the tab | 622 // the tab with given handle. The first parameter is the handle to the tab |
627 // resource. The return value contains a status code which is nonnegative on | 623 // resource. The return value contains a status code which is nonnegative on |
628 // success. | 624 // success. |
629 // see AutomationMsg_NavigationResponseValues for the navigation response. | 625 // see AutomationMsg_NavigationResponseValues for the navigation response. |
630 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_Reload, int, | 626 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_Reload, |
631 AutomationMsg_NavigationResponseValues) | 627 int, |
| 628 AutomationMsg_NavigationResponseValues) |
632 | 629 |
633 // This message requests the handle (int64 app-unique identifier) of the | 630 // This message requests the handle (int64 app-unique identifier) of the |
634 // last active browser window, or the browser at index 0 if there is no last | 631 // last active browser window, or the browser at index 0 if there is no last |
635 // active browser, or it no longer exists. Returns 0 if no browser windows | 632 // active browser, or it no longer exists. Returns 0 if no browser windows |
636 // exist. | 633 // exist. |
637 IPC_SYNC_MESSAGE_ROUTED0_1(AutomationMsg_LastActiveBrowserWindow, int) | 634 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_LastActiveBrowserWindow, |
| 635 int) |
638 | 636 |
639 // This message notifies the AutomationProvider to save the page with given | 637 // This message notifies the AutomationProvider to save the page with given |
640 // handle. The first parameter is the handle to the tab resource. The second | 638 // handle. The first parameter is the handle to the tab resource. The second |
641 // parameter is the main HTML file name. The third parameter is the directory | 639 // parameter is the main HTML file name. The third parameter is the directory |
642 // for saving resources. The fourth parameter is the saving type: 0 for HTML | 640 // for saving resources. The fourth parameter is the saving type: 0 for HTML |
643 // only; 1 for complete web page. | 641 // only; 1 for complete web page. |
644 // The return value contains a bool which is true on success. | 642 // The return value contains a bool which is true on success. |
645 IPC_SYNC_MESSAGE_ROUTED4_1(AutomationMsg_SavePage, int, FilePath, FilePath, | 643 IPC_SYNC_MESSAGE_CONTROL4_1(AutomationMsg_SavePage, |
646 int, bool) | 644 int, |
| 645 FilePath, |
| 646 FilePath, |
| 647 int, |
| 648 bool) |
647 | 649 |
648 // This message requests the text currently being displayed in the | 650 // This message requests the text currently being displayed in the |
649 // AutocompleteEdit. The parameter is the handle to the AutocompleteEdit. | 651 // AutocompleteEdit. The parameter is the handle to the AutocompleteEdit. |
650 // The return value is a string indicating the text in the AutocompleteEdit. | 652 // The return value is a string indicating the text in the AutocompleteEdit. |
651 IPC_SYNC_MESSAGE_ROUTED1_2(AutomationMsg_AutocompleteEditGetText, | 653 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_AutocompleteEditGetText, |
652 int /* autocomplete edit handle */, | 654 int /* autocomplete edit handle */, |
653 bool /* the requested autocomplete edit exists */, | 655 bool /* the requested autocomplete edit exists */, |
654 std::wstring /* omnibox text */) | 656 std::wstring /* omnibox text */) |
655 | 657 |
656 // This message sets the text being displayed in the AutocompleteEdit. The | 658 // This message sets the text being displayed in the AutocompleteEdit. The |
657 // first parameter is the handle to the omnibox and the second parameter is | 659 // first parameter is the handle to the omnibox and the second parameter is |
658 // the text to be displayed in the AutocompleteEdit. | 660 // the text to be displayed in the AutocompleteEdit. |
659 // The return value has no parameters and is returned when the operation has | 661 // The return value has no parameters and is returned when the operation has |
660 // completed. | 662 // completed. |
661 IPC_SYNC_MESSAGE_ROUTED2_1(AutomationMsg_AutocompleteEditSetText, | 663 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_AutocompleteEditSetText, |
662 int /* autocomplete edit handle */, | 664 int /* autocomplete edit handle */, |
663 std::wstring /* text to set */, | 665 std::wstring /* text to set */, |
664 bool /* the requested autocomplete edit exists */) | 666 bool /* the requested autocomplete edit exists */) |
665 | 667 |
666 // This message requests if a query to a autocomplete provider is still in | 668 // This message requests if a query to a autocomplete provider is still in |
667 // progress. The first parameter in the request is the handle to the | 669 // progress. The first parameter in the request is the handle to the |
668 // autocomplete edit. | 670 // autocomplete edit. |
669 // The first return value indicates if the request succeeded. | 671 // The first return value indicates if the request succeeded. |
670 // The second return value indicates if a query is still in progress. | 672 // The second return value indicates if a query is still in progress. |
671 IPC_SYNC_MESSAGE_ROUTED1_2( \ | 673 IPC_SYNC_MESSAGE_CONTROL1_2( \ |
672 AutomationMsg_AutocompleteEditIsQueryInProgress, | 674 AutomationMsg_AutocompleteEditIsQueryInProgress, |
673 int /* autocomplete edit handle*/, | 675 int /* autocomplete edit handle*/, |
674 bool /* the requested autocomplete edit exists */, | 676 bool /* the requested autocomplete edit exists */, |
675 bool /* indicates if a query is in progress */) | 677 bool /* indicates if a query is in progress */) |
676 | 678 |
677 // This message requests a list of the autocomplete messages currently being | 679 // This message requests a list of the autocomplete messages currently being |
678 // displayed by the popup. The parameter in the request is a handle to the | 680 // displayed by the popup. The parameter in the request is a handle to the |
679 // autocomplete edit. | 681 // autocomplete edit. |
680 // The first return value indicates if the request was successful, while | 682 // The first return value indicates if the request was successful, while |
681 // while the second is the actual list of matches. | 683 // while the second is the actual list of matches. |
682 IPC_SYNC_MESSAGE_ROUTED1_2(AutomationMsg_AutocompleteEditGetMatches, | 684 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_AutocompleteEditGetMatches, |
683 int /* autocomplete edit handle*/, | 685 int /* autocomplete edit handle*/, |
684 bool /* the requested autocomplete edit exists */, | 686 bool /* the requested autocomplete edit exists */, |
685 std::vector<AutocompleteMatchData> /* matches */) | 687 std::vector<AutocompleteMatchData> /* matches */) |
686 | 688 |
687 // This message requests the execution of a browser command in the browser | 689 // This message requests the execution of a browser command in the browser |
688 // for which the handle is specified. | 690 // for which the handle is specified. |
689 // The return value contains a boolean, whether the command was dispatched. | 691 // The return value contains a boolean, whether the command was dispatched. |
690 IPC_SYNC_MESSAGE_ROUTED2_1(AutomationMsg_WindowExecuteCommandAsync, | 692 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_WindowExecuteCommandAsync, |
691 int /* automation handle */, | 693 int /* automation handle */, |
692 int /* browser command */, | 694 int /* browser command */, |
693 bool /* success flag */) | 695 bool /* success flag */) |
694 | 696 |
695 // This message requests the execution of a browser command in the browser | 697 // This message requests the execution of a browser command in the browser |
696 // for which the handle is specified. | 698 // for which the handle is specified. |
697 // The return value contains a boolean, whether the command was dispatched | 699 // The return value contains a boolean, whether the command was dispatched |
698 // and successful executed. | 700 // and successful executed. |
699 IPC_SYNC_MESSAGE_ROUTED2_1(AutomationMsg_WindowExecuteCommand, | 701 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_WindowExecuteCommand, |
700 int /* automation handle */, | 702 int /* automation handle */, |
701 int /* browser command */, | 703 int /* browser command */, |
702 bool /* success flag */) | 704 bool /* success flag */) |
703 | 705 |
704 | 706 |
705 // This message opens the Find window within a tab corresponding to the | 707 // This message opens the Find window within a tab corresponding to the |
706 // supplied tab handle. | 708 // supplied tab handle. |
707 IPC_MESSAGE_ROUTED1(AutomationMsg_OpenFindInPage, | 709 IPC_MESSAGE_CONTROL1(AutomationMsg_OpenFindInPage, |
708 int /* tab_handle */) | 710 int /* tab_handle */) |
709 | 711 |
710 // Posts a message from external host to chrome renderer. | 712 // Posts a message from external host to chrome renderer. |
711 IPC_MESSAGE_ROUTED4(AutomationMsg_HandleMessageFromExternalHost, | 713 IPC_MESSAGE_CONTROL4(AutomationMsg_HandleMessageFromExternalHost, |
712 int /* automation handle */, | 714 int /* automation handle */, |
| 715 std::string /* message */, |
| 716 std::string /* origin */, |
| 717 std::string /* target */) |
| 718 |
| 719 // A message for an external host. |
| 720 IPC_MESSAGE_ROUTED3(AutomationMsg_ForwardMessageToExternalHost, |
713 std::string /* message */, | 721 std::string /* message */, |
714 std::string /* origin */, | 722 std::string /* origin */, |
715 std::string /* target */) | 723 std::string /* target */) |
716 | |
717 // A message for an external host. | |
718 IPC_MESSAGE_ROUTED4(AutomationMsg_ForwardMessageToExternalHost, | |
719 int, /* handle */ | |
720 std::string /* message */, | |
721 std::string /* origin */, | |
722 std::string /* target */) | |
723 | 724 |
724 // This message starts a find within a tab corresponding to the supplied | 725 // This message starts a find within a tab corresponding to the supplied |
725 // tab handle. The parameter |request| specifies what to search for. | 726 // tab handle. The parameter |request| specifies what to search for. |
726 // If an error occurs, |matches_found| will be -1. | 727 // If an error occurs, |matches_found| will be -1. |
727 // | 728 // |
728 IPC_SYNC_MESSAGE_ROUTED2_2(AutomationMsg_Find, | 729 IPC_SYNC_MESSAGE_CONTROL2_2(AutomationMsg_Find, |
729 int /* tab_handle */, | 730 int /* tab_handle */, |
730 AutomationMsg_Find_Params /* params */, | 731 AutomationMsg_Find_Params /* params */, |
731 int /* active_ordinal */, | 732 int /* active_ordinal */, |
732 int /* matches_found */) | 733 int /* matches_found */) |
733 | 734 |
734 // Is the Find window fully visible (and not animating) for the specified | 735 // Is the Find window fully visible (and not animating) for the specified |
735 // tab? | 736 // tab? |
736 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_FindWindowVisibility, | 737 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_FindWindowVisibility, |
737 int /* tab_handle */, | 738 int /* tab_handle */, |
738 bool /* is_visible */) | 739 bool /* is_visible */) |
739 | 740 |
740 // Where is the Find window located. |x| and |y| will be -1, -1 on failure. | 741 // Where is the Find window located. |x| and |y| will be -1, -1 on failure. |
741 IPC_SYNC_MESSAGE_ROUTED1_2(AutomationMsg_FindWindowLocation, | 742 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_FindWindowLocation, |
742 int /* tab_handle */, | 743 int /* tab_handle */, |
743 int /* x */, | 744 int /* x */, |
744 int /* y */) | 745 int /* y */) |
745 | 746 |
746 // Is the Bookmark bar visible? The return value will indicate whether it is | 747 // Is the Bookmark bar visible? The return value will indicate whether it is |
747 // visible or not and whether it is being animated into (or out of its place). | 748 // visible or not and whether it is being animated into (or out of its place). |
748 IPC_SYNC_MESSAGE_ROUTED1_2(AutomationMsg_BookmarkBarVisibility, | 749 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_BookmarkBarVisibility, |
749 int /* browser_handle */, | 750 int /* browser_handle */, |
750 bool, /* is_visible */ | 751 bool, /* is_visible */ |
751 bool /* still_animating */) | 752 bool /* still_animating */) |
752 | 753 |
753 // This message requests the number of related info bars opened. It | 754 // This message requests the number of related info bars opened. It |
754 // returns -1 if an error occurred. | 755 // returns -1 if an error occurred. |
755 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_GetInfoBarCount, | 756 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_GetInfoBarCount, |
756 int /* tab_handle */, | 757 int /* tab_handle */, |
757 int /* info bar count */) | 758 int /* info bar count */) |
758 | 759 |
759 // This message triggers the action associated with the "accept" button in | 760 // This message triggers the action associated with the "accept" button in |
760 // the info-bar at the specified index. If |wait for navigation| is true, it | 761 // the info-bar at the specified index. If |wait for navigation| is true, it |
761 // won't return until a navigation has occurred. | 762 // won't return until a navigation has occurred. |
762 IPC_SYNC_MESSAGE_ROUTED3_1(AutomationMsg_ClickInfoBarAccept, | 763 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_ClickInfoBarAccept, |
763 int /* tab_handle */, | 764 int /* tab_handle */, |
764 int /* info bar index */, | 765 int /* info bar index */, |
765 bool /* wait for navigation */, | 766 bool /* wait for navigation */, |
766 | 767 |
767 /* navigation result */ | 768 /* navigation result */ |
768 AutomationMsg_NavigationResponseValues) | 769 AutomationMsg_NavigationResponseValues) |
769 | 770 |
770 // This message retrieves the last time a navigation occurred in the specified | 771 // This message retrieves the last time a navigation occurred in the specified |
771 // tab. The value is intended to be used with WaitForNavigation. | 772 // tab. The value is intended to be used with WaitForNavigation. |
772 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_GetLastNavigationTime, | 773 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_GetLastNavigationTime, |
773 int /* tab_handle */, | 774 int /* tab_handle */, |
774 int64 /* last navigation time */) | 775 int64 /* last navigation time */) |
775 | 776 |
776 // This messages is used to block until a new navigation occurs (if there is | 777 // This messages is used to block until a new navigation occurs (if there is |
777 // none more recent then the time specified). | 778 // none more recent then the time specified). |
778 IPC_SYNC_MESSAGE_ROUTED2_1(AutomationMsg_WaitForNavigation, | 779 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_WaitForNavigation, |
779 int /* tab_handle */, | 780 int /* tab_handle */, |
780 int64 /* last navigation time */, | 781 int64 /* last navigation time */, |
781 | 782 |
782 /* navigation result */ | 783 /* navigation result */ |
783 AutomationMsg_NavigationResponseValues) | 784 AutomationMsg_NavigationResponseValues) |
784 | 785 |
785 // This messages sets an int-value preference. | 786 // This messages sets an int-value preference. |
786 IPC_SYNC_MESSAGE_ROUTED3_1(AutomationMsg_SetIntPreference, | 787 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_SetIntPreference, |
787 int /* browser handle */, | 788 int /* browser handle */, |
788 std::string /* pref name */, | 789 std::string /* pref name */, |
789 int /* value */, | 790 int /* value */, |
790 bool /* success */) | 791 bool /* success */) |
791 | 792 |
792 // Queries whether an app modal dialog is currently being shown. (i.e. a | 793 // Queries whether an app modal dialog is currently being shown. (i.e. a |
793 // javascript alert) and which buttons it contains. | 794 // javascript alert) and which buttons it contains. |
794 IPC_SYNC_MESSAGE_ROUTED0_2(AutomationMsg_ShowingAppModalDialog, | 795 IPC_SYNC_MESSAGE_CONTROL0_2(AutomationMsg_ShowingAppModalDialog, |
795 bool /* showing dialog */, | 796 bool /* showing dialog */, |
796 int /* view::DelegateDialog::DialogButton */) | 797 int /* view::DelegateDialog::DialogButton */) |
797 | 798 |
798 // This message triggers the specified button for the currently showing | 799 // This message triggers the specified button for the currently showing |
799 // modal dialog. | 800 // modal dialog. |
800 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_ClickAppModalDialogButton, | 801 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_ClickAppModalDialogButton, |
801 int /* view::DelegateDialog::DialogButton */, | 802 int /* view::DelegateDialog::DialogButton */, |
802 bool /* success */) | 803 bool /* success */) |
803 | 804 |
804 // This messages sets a string-value preference. | 805 // This messages sets a string-value preference. |
805 IPC_SYNC_MESSAGE_ROUTED3_1(AutomationMsg_SetStringPreference, | 806 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_SetStringPreference, |
806 int /* browser handle */, | 807 int /* browser handle */, |
807 std::string /* pref name */, | 808 std::string /* pref name */, |
808 std::string /* pref value */, | 809 std::string /* pref value */, |
809 bool) | 810 bool) |
810 | 811 |
811 // This messages gets a boolean-value preference. | 812 // This messages gets a boolean-value preference. |
812 IPC_SYNC_MESSAGE_ROUTED2_2(AutomationMsg_GetBooleanPreference, | 813 IPC_SYNC_MESSAGE_CONTROL2_2(AutomationMsg_GetBooleanPreference, |
813 int /* browser handle */, | 814 int /* browser handle */, |
814 std::string /* pref name */, | 815 std::string /* pref name */, |
815 bool /* success */, | 816 bool /* success */, |
816 bool /* pref value */) | 817 bool /* pref value */) |
817 | 818 |
818 // This messages sets a boolean-value preference. | 819 // This messages sets a boolean-value preference. |
819 IPC_SYNC_MESSAGE_ROUTED3_1(AutomationMsg_SetBooleanPreference, | 820 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_SetBooleanPreference, |
820 int /* browser handle */, | 821 int /* browser handle */, |
821 std::string /* pref name */, | 822 std::string /* pref name */, |
822 bool /* pref value */, | 823 bool /* pref value */, |
823 bool /* success */) | 824 bool /* success */) |
824 | 825 |
825 // Queries the current used encoding name of the page in the specified | 826 // Queries the current used encoding name of the page in the specified |
826 // web content tab. | 827 // web content tab. |
827 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_GetPageCurrentEncoding, | 828 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_GetPageCurrentEncoding, |
828 int /* tab handle */, | 829 int /* tab handle */, |
829 std::string /* current used encoding name */) | 830 std::string /* current used encoding name */) |
830 | 831 |
831 // Uses the specified encoding to override the encoding of the page in the | 832 // Uses the specified encoding to override the encoding of the page in the |
832 // specified web content tab. | 833 // specified web content tab. |
833 IPC_SYNC_MESSAGE_ROUTED2_1(AutomationMsg_OverrideEncoding, | 834 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_OverrideEncoding, |
834 int /* tab handle */, | 835 int /* tab handle */, |
835 std::string /* overrided encoding name */, | 836 std::string /* overrided encoding name */, |
836 bool /* success */) | 837 bool /* success */) |
837 | 838 |
838 // Used to disable the dialog box that prompts the user for a path when | 839 // Used to disable the dialog box that prompts the user for a path when |
839 // saving a web page. | 840 // saving a web page. |
840 IPC_SYNC_MESSAGE_ROUTED1_0(AutomationMsg_SavePackageShouldPromptUser, | 841 IPC_SYNC_MESSAGE_CONTROL1_0(AutomationMsg_SavePackageShouldPromptUser, |
841 bool /* false if we want to not show the dialog */) | 842 bool /* false if we want to not show the dialog */) |
842 | 843 |
843 // This message is an outgoing message from Chrome to an external host. | 844 // This message is an outgoing message from Chrome to an external host. |
844 // It is a notification that a navigation failed | 845 // It is a notification that a navigation failed |
845 // Request: | 846 // Request: |
846 // -int : Tab handle | |
847 // -int : The status code. | 847 // -int : The status code. |
848 // -GURL: The URL we failed to navigate to. | 848 // -GURL: The URL we failed to navigate to. |
849 // Response: | 849 // Response: |
850 // None expected | 850 // None expected |
851 IPC_MESSAGE_ROUTED3(AutomationMsg_NavigationFailed, int, int, GURL) | 851 IPC_MESSAGE_ROUTED2(AutomationMsg_NavigationFailed, |
| 852 int, |
| 853 GURL) |
852 | 854 |
853 #if defined(OS_WIN) | 855 #if defined(OS_WIN) |
854 // This message is an outgoing message from an automation client to Chrome. | 856 // This message is an outgoing message from an automation client to Chrome. |
855 // It is used to reposition a chrome tab window. | 857 // It is used to reposition a chrome tab window. |
856 IPC_MESSAGE_ROUTED2(AutomationMsg_TabReposition, | 858 IPC_MESSAGE_CONTROL2(AutomationMsg_TabReposition, |
857 int /* tab handle */, | 859 int /* tab handle */, |
858 IPC::Reposition_Params /* SetWindowPos params */) | 860 Reposition_Params /* SetWindowPos params */) |
859 #endif // defined(OS_WIN) | 861 #endif // defined(OS_WIN) |
860 | 862 |
861 // Gets the title of the top level browser window. | 863 // Gets the title of the top level browser window. |
862 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_WindowTitle, | 864 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_WindowTitle, |
863 int /* automation handle */, | 865 int /* automation handle */, |
864 string16 /* title text */ ) | 866 string16 /* title text */ ) |
865 | 867 |
866 // Tab load complete | 868 // Tab load complete |
867 IPC_MESSAGE_ROUTED2(AutomationMsg_TabLoaded, | 869 IPC_MESSAGE_ROUTED1(AutomationMsg_TabLoaded, |
868 int, // tab handle | |
869 GURL) | 870 GURL) |
870 | 871 |
871 // This message requests the tabstrip index of the tab with the given handle. | 872 // This message requests the tabstrip index of the tab with the given handle. |
872 // The return value contains the index, which will be -1 on failure. | 873 // The return value contains the index, which will be -1 on failure. |
873 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_TabIndex, int, int) | 874 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_TabIndex, |
| 875 int, |
| 876 int) |
874 | 877 |
875 // This message requests the handle (int64 app-unique identifier) of | 878 // This message requests the handle (int64 app-unique identifier) of |
876 // a valid normal browser window, i.e. normal type and non-incognito mode. | 879 // a valid normal browser window, i.e. normal type and non-incognito mode. |
877 // On error, the returned handle value is 0. | 880 // On error, the returned handle value is 0. |
878 IPC_SYNC_MESSAGE_ROUTED0_1(AutomationMsg_FindNormalBrowserWindow, int) | 881 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_FindNormalBrowserWindow, |
| 882 int) |
879 | 883 |
880 // This message requests the number of normal browser windows, i.e. normal | 884 // This message requests the number of normal browser windows, i.e. normal |
881 // type and non-incognito mode that the app currently has open. The return | 885 // type and non-incognito mode that the app currently has open. The return |
882 // value is the number of windows. | 886 // value is the number of windows. |
883 IPC_SYNC_MESSAGE_ROUTED0_1(AutomationMsg_NormalBrowserWindowCount, int) | 887 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_NormalBrowserWindowCount, |
| 888 int) |
884 | 889 |
885 // Used to put the browser into "extension automation mode" for a given | 890 // Used to put the browser into "extension automation mode" for a given |
886 // set of Chrome Extensions API functions for the current profile, or turn | 891 // set of Chrome Extensions API functions for the current profile, or turn |
887 // off automation mode. The specified tab is used as the conduit for all | 892 // off automation mode. The specified tab is used as the conduit for all |
888 // automated API functions. It must be an external tab (as in | 893 // automated API functions. It must be an external tab (as in |
889 // AutomationMsg_CreateExternalTab). | 894 // AutomationMsg_CreateExternalTab). |
890 IPC_MESSAGE_ROUTED2(AutomationMsg_SetEnableExtensionAutomation, | 895 IPC_MESSAGE_CONTROL2(AutomationMsg_SetEnableExtensionAutomation, |
891 // Tab handle. | 896 // Tab handle. |
892 int, | 897 int, |
893 // Empty to disable automation, non-empty to enable | 898 // Empty to disable automation, non-empty to enable |
894 // automation of the specified API functions, single | 899 // automation of the specified API functions, single |
895 // entry of "*" to enable automation of all API | 900 // entry of "*" to enable automation of all API |
896 // functions. | 901 // functions. |
897 std::vector<std::string>) | 902 std::vector<std::string>) |
898 | 903 |
899 // This message tells the browser to start using the new proxy configuration | 904 // This message tells the browser to start using the new proxy configuration |
900 // represented by the given JSON string. The parameters used in the JSON | 905 // represented by the given JSON string. The parameters used in the JSON |
901 // string are defined in automation_constants.h. | 906 // string are defined in automation_constants.h. |
902 IPC_MESSAGE_ROUTED1(AutomationMsg_SetProxyConfig, | 907 IPC_MESSAGE_CONTROL1(AutomationMsg_SetProxyConfig, |
903 std::string /* proxy_config_json_string */) | 908 std::string /* proxy_config_json_string */) |
904 | 909 |
905 // Sets Download Shelf visibility for the specified browser. | 910 // Sets Download Shelf visibility for the specified browser. |
906 IPC_SYNC_MESSAGE_ROUTED2_0(AutomationMsg_SetShelfVisibility, | 911 IPC_SYNC_MESSAGE_CONTROL2_0(AutomationMsg_SetShelfVisibility, |
907 int /* browser_handle */, | 912 int /* browser_handle */, |
908 bool /* is_visible */) | 913 bool /* is_visible */) |
909 | 914 |
910 // This message requests the number of blocked popups in a certain tab with | 915 // This message requests the number of blocked popups in a certain tab with |
911 // the given handle. The return value is the number of blocked popups, or -1 | 916 // the given handle. The return value is the number of blocked popups, or -1 |
912 // if this request failed. | 917 // if this request failed. |
913 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_BlockedPopupCount, | 918 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_BlockedPopupCount, |
914 int /* tab_handle */, | 919 int /* tab_handle */, |
915 int /* blocked_popup_count */) | 920 int /* blocked_popup_count */) |
916 | 921 |
917 // This message retrieves the locale of the browser process. On success | 922 // This message retrieves the locale of the browser process. On success |
918 // |chrome_locale| will contain the locale as reported by ICU. On failure | 923 // |chrome_locale| will contain the locale as reported by ICU. On failure |
919 // |chrome_locale| is the empty string. | 924 // |chrome_locale| is the empty string. |
920 IPC_SYNC_MESSAGE_ROUTED0_1(AutomationMsg_GetBrowserLocale, | 925 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_GetBrowserLocale, |
921 string16 /* chrome_locale */) | 926 string16 /* chrome_locale */) |
922 | 927 |
923 #if defined(OS_WIN) | 928 #if defined(OS_WIN) |
924 IPC_MESSAGE_ROUTED4(AutomationMsg_ForwardContextMenuToExternalHost, | 929 IPC_MESSAGE_ROUTED3(AutomationMsg_ForwardContextMenuToExternalHost, |
925 int /* tab_handle */, | |
926 HANDLE /* source menu handle */, | 930 HANDLE /* source menu handle */, |
927 int /* align flags */, | 931 int /* align flags */, |
928 IPC::MiniContextMenuParams /* params */) | 932 MiniContextMenuParams /* params */) |
929 | 933 |
930 IPC_MESSAGE_ROUTED2(AutomationMsg_ForwardContextMenuCommandToChrome, | 934 IPC_MESSAGE_CONTROL2(AutomationMsg_ForwardContextMenuCommandToChrome, |
931 int /* tab_handle */, | 935 int /* tab_handle */, |
932 int /* selected_command */) | 936 int /* selected_command */) |
933 #endif // OS_WIN | 937 #endif // OS_WIN |
934 | 938 |
935 // A URL request to be fetched via automation | 939 // A URL request to be fetched via automation |
936 IPC_MESSAGE_ROUTED3(AutomationMsg_RequestStart, | 940 IPC_MESSAGE_ROUTED2(AutomationMsg_RequestStart, |
937 int /* tab_handle */, | 941 int /* request_id */, |
938 int /* request_id */, | 942 AutomationURLRequest /* request */) |
939 IPC::AutomationURLRequest /* request */) | |
940 | 943 |
941 // Read data from a URL request to be fetched via automation | 944 // Read data from a URL request to be fetched via automation |
942 IPC_MESSAGE_ROUTED3(AutomationMsg_RequestRead, | 945 IPC_MESSAGE_ROUTED2(AutomationMsg_RequestRead, |
943 int /* tab_handle */, | |
944 int /* request_id */, | 946 int /* request_id */, |
945 int /* bytes_to_read */) | 947 int /* bytes_to_read */) |
946 | 948 |
947 // Response to a AutomationMsg_RequestStart message | 949 // Response to a AutomationMsg_RequestStart message |
948 IPC_MESSAGE_ROUTED3(AutomationMsg_RequestStarted, | 950 IPC_MESSAGE_ROUTED2(AutomationMsg_RequestStarted, |
949 int /* tab_handle */, | 951 int /* request_id */, |
950 int /* request_id */, | 952 AutomationURLResponse /* response */) |
951 IPC::AutomationURLResponse /* response */) | |
952 | 953 |
953 // Data read via automation | 954 // Data read via automation |
954 IPC_MESSAGE_ROUTED3(AutomationMsg_RequestData, | 955 IPC_MESSAGE_ROUTED2(AutomationMsg_RequestData, |
955 int /* tab_handle */, | |
956 int /* request_id */, | 956 int /* request_id */, |
957 std::string /* data */) | 957 std::string /* data */) |
958 | 958 |
959 IPC_MESSAGE_ROUTED3(AutomationMsg_RequestEnd, | 959 IPC_MESSAGE_ROUTED2(AutomationMsg_RequestEnd, |
960 int /* tab_handle */, | |
961 int /* request_id */, | 960 int /* request_id */, |
962 URLRequestStatus /* status */) | 961 URLRequestStatus /* status */) |
963 | 962 |
964 IPC_MESSAGE_ROUTED1(AutomationMsg_PrintAsync, | 963 IPC_MESSAGE_CONTROL1(AutomationMsg_PrintAsync, |
965 int /* tab_handle */) | 964 int /* tab_handle */) |
966 | 965 |
967 IPC_MESSAGE_ROUTED3(AutomationMsg_SetCookieAsync, | 966 IPC_MESSAGE_ROUTED2(AutomationMsg_SetCookieAsync, |
968 int /* tab_handle */, | |
969 GURL /* url */, | 967 GURL /* url */, |
970 std::string /* cookie */) | 968 std::string /* cookie */) |
971 | 969 |
972 IPC_MESSAGE_ROUTED1(AutomationMsg_SelectAll, | 970 IPC_MESSAGE_CONTROL1(AutomationMsg_SelectAll, |
973 int /* tab handle */) | 971 int /* tab handle */) |
974 | 972 |
975 IPC_MESSAGE_ROUTED1(AutomationMsg_Cut, | 973 IPC_MESSAGE_CONTROL1(AutomationMsg_Cut, |
976 int /* tab handle */) | 974 int /* tab handle */) |
977 | 975 |
978 IPC_MESSAGE_ROUTED1(AutomationMsg_Copy, | 976 IPC_MESSAGE_CONTROL1(AutomationMsg_Copy, |
979 int /* tab handle */) | 977 int /* tab handle */) |
980 | 978 |
981 IPC_MESSAGE_ROUTED1(AutomationMsg_Paste, | 979 IPC_MESSAGE_CONTROL1(AutomationMsg_Paste, |
982 int /* tab handle */) | 980 int /* tab handle */) |
983 | 981 |
984 IPC_MESSAGE_ROUTED1(AutomationMsg_ReloadAsync, | 982 IPC_MESSAGE_CONTROL1(AutomationMsg_ReloadAsync, |
985 int /* tab handle */) | 983 int /* tab handle */) |
986 | 984 |
987 IPC_MESSAGE_ROUTED1(AutomationMsg_StopAsync, | 985 IPC_MESSAGE_CONTROL1(AutomationMsg_StopAsync, |
988 int /* tab handle */) | 986 int /* tab handle */) |
989 | 987 |
990 // Returns the number of times a filter was used to service an URL request. | 988 // Returns the number of times a filter was used to service an URL request. |
991 // See AutomationMsg_SetFilteredInet. | 989 // See AutomationMsg_SetFilteredInet. |
992 IPC_SYNC_MESSAGE_ROUTED0_1(AutomationMsg_GetFilteredInetHitCount, | 990 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_GetFilteredInetHitCount, |
993 int /* hit_count */) | 991 int /* hit_count */) |
994 | 992 |
995 // Is the browser in fullscreen mode? | 993 // Is the browser in fullscreen mode? |
996 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_IsFullscreen, | 994 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_IsFullscreen, |
997 int /* browser_handle */, | 995 int /* browser_handle */, |
998 bool /* is_fullscreen */) | 996 bool /* is_fullscreen */) |
999 | 997 |
1000 // Is the fullscreen bubble visible? | 998 // Is the fullscreen bubble visible? |
1001 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_IsFullscreenBubbleVisible, | 999 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_IsFullscreenBubbleVisible, |
1002 int /* browser_handle */, | 1000 int /* browser_handle */, |
1003 bool /* is_visible */) | 1001 bool /* is_visible */) |
1004 | 1002 |
1005 // This message notifies the AutomationProvider to navigate to a specified | 1003 // This message notifies the AutomationProvider to navigate to a specified |
1006 // url in the tab with given handle. The first parameter is the handle to | 1004 // url in the tab with given handle. The first parameter is the handle to |
1007 // the tab resource. The second parameter is the target url. The third | 1005 // the tab resource. The second parameter is the target url. The third |
1008 // parameter is the number of navigations that are required for a successful | 1006 // parameter is the number of navigations that are required for a successful |
1009 // return value. See AutomationMsg_NavigationResponseValues for the return | 1007 // return value. See AutomationMsg_NavigationResponseValues for the return |
1010 // value. | 1008 // value. |
1011 IPC_SYNC_MESSAGE_ROUTED3_1( | 1009 IPC_SYNC_MESSAGE_CONTROL3_1( |
1012 AutomationMsg_NavigateToURLBlockUntilNavigationsComplete, int, GURL, int, | 1010 AutomationMsg_NavigateToURLBlockUntilNavigationsComplete, |
| 1011 int, |
| 1012 GURL, |
| 1013 int, |
1013 AutomationMsg_NavigationResponseValues) | 1014 AutomationMsg_NavigationResponseValues) |
1014 | 1015 |
1015 // This message notifies the AutomationProvider to navigate to a specified | 1016 // This message notifies the AutomationProvider to navigate to a specified |
1016 // navigation entry index in the external tab with given handle. The first | 1017 // navigation entry index in the external tab with given handle. The first |
1017 // parameter is the handle to the tab resource. The second parameter is the | 1018 // parameter is the handle to the tab resource. The second parameter is the |
1018 // index of navigation entry. | 1019 // index of navigation entry. |
1019 // The return value contains a status code which is nonnegative on success. | 1020 // The return value contains a status code which is nonnegative on success. |
1020 // see AutomationMsg_NavigationResponseValues for the navigation response. | 1021 // see AutomationMsg_NavigationResponseValues for the navigation response. |
1021 IPC_SYNC_MESSAGE_ROUTED2_1(AutomationMsg_NavigateExternalTabAtIndex, int, int, | 1022 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_NavigateExternalTabAtIndex, |
1022 AutomationMsg_NavigationResponseValues) | 1023 int, |
| 1024 int, |
| 1025 AutomationMsg_NavigationResponseValues) |
1023 | 1026 |
1024 // This message requests the provider to wait until the window count | 1027 // This message requests the provider to wait until the window count |
1025 // reached the specified value. | 1028 // reached the specified value. |
1026 // Request: | 1029 // Request: |
1027 // - int: target browser window count | 1030 // - int: target browser window count |
1028 // Response: | 1031 // Response: |
1029 // - bool: whether the operation was successful. | 1032 // - bool: whether the operation was successful. |
1030 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_WaitForBrowserWindowCountToBecome, | 1033 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_WaitForBrowserWindowCountToBecome, |
1031 int, bool) | 1034 int, |
| 1035 bool) |
1032 | 1036 |
1033 // This message requests the provider to wait until an application modal | 1037 // This message requests the provider to wait until an application modal |
1034 // dialog is shown. | 1038 // dialog is shown. |
1035 // Response: | 1039 // Response: |
1036 // - bool: whether the operation was successful | 1040 // - bool: whether the operation was successful |
1037 IPC_SYNC_MESSAGE_ROUTED0_1(AutomationMsg_WaitForAppModalDialogToBeShown, bool) | 1041 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_WaitForAppModalDialogToBeShown, |
| 1042 bool) |
1038 | 1043 |
1039 // This message notifies the AutomationProvider to navigate back in session | 1044 // This message notifies the AutomationProvider to navigate back in session |
1040 // history in the tab with given handle. The first parameter is the handle | 1045 // history in the tab with given handle. The first parameter is the handle |
1041 // to the tab resource. The second parameter is the number of navigations the | 1046 // to the tab resource. The second parameter is the number of navigations the |
1042 // provider will wait for. | 1047 // provider will wait for. |
1043 // See AutomationMsg_NavigationResponseValues for the navigation response | 1048 // See AutomationMsg_NavigationResponseValues for the navigation response |
1044 // values. | 1049 // values. |
1045 IPC_SYNC_MESSAGE_ROUTED2_1(AutomationMsg_GoBackBlockUntilNavigationsComplete, | 1050 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_GoBackBlockUntilNavigationsComplete, |
1046 int, int, | 1051 int, |
1047 AutomationMsg_NavigationResponseValues) | 1052 int, |
| 1053 AutomationMsg_NavigationResponseValues) |
1048 | 1054 |
1049 // This message notifies the AutomationProvider to navigate forward in session | 1055 // This message notifies the AutomationProvider to navigate forward in session |
1050 // history in the tab with given handle. The first parameter is the handle | 1056 // history in the tab with given handle. The first parameter is the handle |
1051 // to the tab resource. The second parameter is the number of navigations | 1057 // to the tab resource. The second parameter is the number of navigations |
1052 // the provider will wait for. | 1058 // the provider will wait for. |
1053 // See AutomationMsg_NavigationResponseValues for the navigation response | 1059 // See AutomationMsg_NavigationResponseValues for the navigation response |
1054 // values. | 1060 // values. |
1055 IPC_SYNC_MESSAGE_ROUTED2_1( | 1061 IPC_SYNC_MESSAGE_CONTROL2_1( |
1056 AutomationMsg_GoForwardBlockUntilNavigationsComplete, int, int, | 1062 AutomationMsg_GoForwardBlockUntilNavigationsComplete, |
| 1063 int, |
| 1064 int, |
1057 AutomationMsg_NavigationResponseValues) | 1065 AutomationMsg_NavigationResponseValues) |
1058 | 1066 |
1059 // This message is used by automation clients to upload histogram data to the | 1067 // This message is used by automation clients to upload histogram data to the |
1060 // browser process. | 1068 // browser process. |
1061 IPC_MESSAGE_ROUTED1(AutomationMsg_RecordHistograms, | 1069 IPC_MESSAGE_CONTROL1(AutomationMsg_RecordHistograms, |
1062 std::vector<std::string> /* histogram_list */) | 1070 std::vector<std::string> /* histogram_list */) |
1063 | 1071 |
1064 IPC_MESSAGE_ROUTED2(AutomationMsg_AttachExternalTab, | 1072 IPC_MESSAGE_ROUTED1(AutomationMsg_AttachExternalTab, |
1065 int /* 'source' tab_handle */, | 1073 AttachExternalTabParams) |
1066 IPC::AttachExternalTabParams) | |
1067 | 1074 |
1068 // Sent when the automation client connects to an existing tab. | 1075 // Sent when the automation client connects to an existing tab. |
1069 IPC_SYNC_MESSAGE_ROUTED3_4(AutomationMsg_ConnectExternalTab, | 1076 IPC_SYNC_MESSAGE_CONTROL3_4(AutomationMsg_ConnectExternalTab, |
1070 uint64 /* cookie */, | 1077 uint64 /* cookie */, |
1071 bool /* allow/block tab*/, | 1078 bool /* allow/block tab*/, |
1072 gfx::NativeWindow /* parent window */, | 1079 gfx::NativeWindow /* parent window */, |
1073 gfx::NativeWindow /* Tab container window */, | 1080 gfx::NativeWindow /* Tab container window */, |
1074 gfx::NativeWindow /* Tab window */, | 1081 gfx::NativeWindow /* Tab window */, |
1075 int /* Handle to the new tab */, | 1082 int /* Handle to the new tab */, |
1076 int /* Session Id of the new tab */) | 1083 int /* Session Id of the new tab */) |
1077 | |
1078 #if defined(OS_POSIX) | |
1079 // TODO(estade): this should be merged with the windows message of the same | |
1080 // name. See comment for WindowClick. | |
1081 IPC_SYNC_MESSAGE_ROUTED4_1(AutomationMsg_WindowDrag, | |
1082 int, std::vector<gfx::Point>, int, bool, bool) | |
1083 #endif // defined(OS_POSIX) | |
1084 | 1084 |
1085 // This message gets the bounds of the window. | 1085 // This message gets the bounds of the window. |
1086 // Request: | 1086 // Request: |
1087 // int - the handle of the window to query | 1087 // int - the handle of the window to query |
1088 // Response: | 1088 // Response: |
1089 // gfx::Rect - the bounds of the window | 1089 // gfx::Rect - the bounds of the window |
1090 // bool - true if the query was successful | 1090 // bool - true if the query was successful |
1091 IPC_SYNC_MESSAGE_ROUTED1_2(AutomationMsg_GetWindowBounds, int, gfx::Rect, | 1091 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_GetWindowBounds, |
1092 bool) | 1092 int, |
| 1093 gfx::Rect, |
| 1094 bool) |
1093 | 1095 |
1094 // Simulate an end of session. Normally this happens when the user | 1096 // Simulate an end of session. Normally this happens when the user |
1095 // shuts down the machine or logs off. | 1097 // shuts down the machine or logs off. |
1096 // Request: | 1098 // Request: |
1097 // int - the handle of the browser | 1099 // int - the handle of the browser |
1098 // Response: | 1100 // Response: |
1099 // bool - true if succesful | 1101 // bool - true if succesful |
1100 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_TerminateSession, int, bool) | 1102 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_TerminateSession, |
| 1103 int, |
| 1104 bool) |
1101 | 1105 |
1102 // Returns whether the window is maximized. | 1106 // Returns whether the window is maximized. |
1103 // Request: | 1107 // Request: |
1104 // int - the handle of the window | 1108 // int - the handle of the window |
1105 // Response: | 1109 // Response: |
1106 // bool - true if the window is maximized | 1110 // bool - true if the window is maximized |
1107 // bool - true if query is successful | 1111 // bool - true if query is successful |
1108 IPC_SYNC_MESSAGE_ROUTED1_2(AutomationMsg_IsWindowMaximized, int, bool, bool) | 1112 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_IsWindowMaximized, |
| 1113 int, |
| 1114 bool, |
| 1115 bool) |
1109 | 1116 |
1110 IPC_MESSAGE_ROUTED2(AutomationMsg_SetPageFontSize, | 1117 IPC_MESSAGE_CONTROL2(AutomationMsg_SetPageFontSize, |
1111 int /* tab_handle */, | 1118 int /* tab_handle */, |
1112 int /* The font size */) | 1119 int /* The font size */) |
1113 | 1120 |
1114 // Returns a metric event duration that was last recorded. Returns -1 if the | 1121 // Returns a metric event duration that was last recorded. Returns -1 if the |
1115 // event hasn't occurred yet. | 1122 // event hasn't occurred yet. |
1116 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_GetMetricEventDuration, | 1123 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_GetMetricEventDuration, |
1117 std::string /* event_name */, | 1124 std::string /* event_name */, |
1118 int /* duration ms */) | 1125 int /* duration ms */) |
1119 | 1126 |
1120 // Sent by automation provider - go to history entry via automation. | 1127 // Sent by automation provider - go to history entry via automation. |
1121 IPC_MESSAGE_ROUTED2(AutomationMsg_RequestGoToHistoryEntryOffset, | 1128 IPC_MESSAGE_ROUTED1(AutomationMsg_RequestGoToHistoryEntryOffset, |
1122 int, // tab handle | 1129 int) // numbers of entries (negative or positive) |
1123 int) // numbers of entries (negative or positive) | |
1124 | 1130 |
1125 // Silently install the extension in the given crx file. | 1131 // Silently install the extension in the given crx file. |
1126 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_InstallExtension, | 1132 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_InstallExtension, |
1127 FilePath /* full path to crx file */, | 1133 FilePath /* full path to crx file */, |
1128 AutomationMsg_ExtensionResponseValues) | 1134 AutomationMsg_ExtensionResponseValues) |
1129 | 1135 |
1130 // Silently load the extension in the given directory. This expects an | 1136 // Silently load the extension in the given directory. This expects an |
1131 // extension expanded into the directory, not a crx file. | 1137 // extension expanded into the directory, not a crx file. |
1132 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_LoadExpandedExtension, | 1138 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_LoadExpandedExtension, |
1133 FilePath /* root directory of extension */, | 1139 FilePath /* root directory of extension */, |
1134 AutomationMsg_ExtensionResponseValues) | 1140 AutomationMsg_ExtensionResponseValues) |
1135 | 1141 |
1136 // Retrieves a list of the root directories of all enabled extensions | 1142 // Retrieves a list of the root directories of all enabled extensions |
1137 // that have been installed into Chrome by dropping a .crx file onto | 1143 // that have been installed into Chrome by dropping a .crx file onto |
1138 // Chrome or an equivalent action (including loaded extensions). | 1144 // Chrome or an equivalent action (including loaded extensions). |
1139 // Other types of extensions are not included on the list (e.g. "component", | 1145 // Other types of extensions are not included on the list (e.g. "component", |
1140 // "app" or "external" extensions) since since CEEE does not yet support them | 1146 // "app" or "external" extensions) since since CEEE does not yet support them |
1141 // (and it actually only support a single extension in its profile for now). | 1147 // (and it actually only support a single extension in its profile for now). |
1142 IPC_SYNC_MESSAGE_ROUTED0_1(AutomationMsg_GetEnabledExtensions, | 1148 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_GetEnabledExtensions, |
1143 std::vector<FilePath>) | 1149 std::vector<FilePath>) |
1144 | 1150 |
1145 // This message requests the type of the window with the given handle. The | 1151 // This message requests the type of the window with the given handle. The |
1146 // return value contains the type (Browser::Type), or -1 if the request | 1152 // return value contains the type (Browser::Type), or -1 if the request |
1147 // failed. | 1153 // failed. |
1148 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_Type, int, int) | 1154 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_Type, |
| 1155 int, |
| 1156 int) |
1149 | 1157 |
1150 // Opens a new browser window of a specific type. | 1158 // Opens a new browser window of a specific type. |
1151 IPC_SYNC_MESSAGE_ROUTED2_0(AutomationMsg_OpenNewBrowserWindowOfType, | 1159 IPC_SYNC_MESSAGE_CONTROL2_0(AutomationMsg_OpenNewBrowserWindowOfType, |
1152 int /* Type (Browser::Type) */, | 1160 int /* Type (Browser::Type) */, |
1153 bool /* show */ ) | 1161 bool /* show */ ) |
1154 | 1162 |
1155 // This message requests that the mouse be moved to this location, in | 1163 // This message requests that the mouse be moved to this location, in |
1156 // window coordinate space. | 1164 // window coordinate space. |
1157 // Request: | 1165 // Request: |
1158 // int - the handle of the window that's the context for this click | 1166 // int - the handle of the window that's the context for this click |
1159 // gfx::Point - the location to move to | 1167 // gfx::Point - the location to move to |
1160 IPC_MESSAGE_ROUTED2(AutomationMsg_WindowMouseMove, int, gfx::Point) | 1168 IPC_MESSAGE_CONTROL2(AutomationMsg_WindowMouseMove, |
| 1169 int, |
| 1170 gfx::Point) |
1161 | 1171 |
1162 // Called when requests should be downloaded using a host browser's | 1172 // Called when requests should be downloaded using a host browser's |
1163 // download mechanism when chrome is being embedded. | 1173 // download mechanism when chrome is being embedded. |
1164 IPC_MESSAGE_ROUTED2(AutomationMsg_DownloadRequestInHost, | 1174 IPC_MESSAGE_ROUTED1(AutomationMsg_DownloadRequestInHost, |
1165 int /* tab_handle */, | |
1166 int /* request_id */) | 1175 int /* request_id */) |
1167 | 1176 |
1168 // Shuts down the session service for the browser identified by | 1177 // Shuts down the session service for the browser identified by |
1169 // |browser_handle|. On success |result| is set to true. | 1178 // |browser_handle|. On success |result| is set to true. |
1170 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_ShutdownSessionService, | 1179 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_ShutdownSessionService, |
1171 int /* browser_handle */, | 1180 int /* browser_handle */, |
1172 bool /* result */) | 1181 bool /* result */) |
1173 | 1182 |
1174 IPC_MESSAGE_ROUTED1(AutomationMsg_SaveAsAsync, | 1183 IPC_MESSAGE_CONTROL1(AutomationMsg_SaveAsAsync, |
1175 int /* tab handle */) | 1184 int /* tab handle */) |
1176 | 1185 |
1177 #if defined(OS_WIN) | 1186 #if defined(OS_WIN) |
1178 // An incoming message from an automation host to Chrome. Signals that | 1187 // An incoming message from an automation host to Chrome. Signals that |
1179 // the browser containing |tab_handle| has moved. | 1188 // the browser containing |tab_handle| has moved. |
1180 IPC_MESSAGE_ROUTED1(AutomationMsg_BrowserMove, | 1189 IPC_MESSAGE_CONTROL1(AutomationMsg_BrowserMove, |
1181 int /* tab handle */) | 1190 int /* tab handle */) |
1182 #endif | 1191 #endif |
1183 | 1192 |
1184 // Used to get cookies for the given URL. | 1193 // Used to get cookies for the given URL. |
1185 IPC_MESSAGE_ROUTED3(AutomationMsg_GetCookiesFromHost, | 1194 IPC_MESSAGE_ROUTED2(AutomationMsg_GetCookiesFromHost, |
1186 int /* tab_handle */, | |
1187 GURL /* url */, | 1195 GURL /* url */, |
1188 int /* opaque_cookie_id */) | 1196 int /* opaque_cookie_id */) |
1189 | 1197 |
1190 IPC_MESSAGE_ROUTED5(AutomationMsg_GetCookiesHostResponse, | 1198 IPC_MESSAGE_CONTROL5(AutomationMsg_GetCookiesHostResponse, |
1191 int /* tab_handle */, | 1199 int /* tab_handle */, |
1192 bool /* success */, | 1200 bool /* success */, |
1193 GURL /* url */, | 1201 GURL /* url */, |
1194 std::string /* cookies */, | 1202 std::string /* cookies */, |
1195 int /* opaque_cookie_id */) | 1203 int /* opaque_cookie_id */) |
1196 | 1204 |
1197 // If the given host is empty, then the default content settings are | 1205 // If the given host is empty, then the default content settings are |
1198 // modified. | 1206 // modified. |
1199 IPC_SYNC_MESSAGE_ROUTED4_1(AutomationMsg_SetContentSetting, | 1207 IPC_SYNC_MESSAGE_CONTROL4_1(AutomationMsg_SetContentSetting, |
1200 int /* browser handle */, | 1208 int /* browser handle */, |
1201 std::string /* host */, | 1209 std::string /* host */, |
1202 ContentSettingsType /* content type */, | 1210 ContentSettingsType /* content type */, |
1203 ContentSetting /* setting */, | 1211 ContentSetting /* setting */, |
1204 bool /* success */) | 1212 bool /* success */) |
1205 | 1213 |
1206 #if defined(OS_CHROMEOS) | 1214 #if defined(OS_CHROMEOS) |
1207 // Logs in through the browser's login wizard if available. | 1215 // Logs in through the browser's login wizard if available. |
1208 IPC_SYNC_MESSAGE_ROUTED2_1(AutomationMsg_LoginWithUserAndPass, | 1216 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_LoginWithUserAndPass, |
1209 std::string /* username*/, | 1217 std::string /* username*/, |
1210 std::string /* password*/, | 1218 std::string /* password*/, |
1211 bool /* Whether successful*/) | 1219 bool /* Whether successful*/) |
1212 #endif | 1220 #endif |
1213 | 1221 |
1214 // Return the bookmarks encoded as a JSON string. | 1222 // Return the bookmarks encoded as a JSON string. |
1215 IPC_SYNC_MESSAGE_ROUTED1_2(AutomationMsg_GetBookmarksAsJSON, | 1223 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_GetBookmarksAsJSON, |
1216 int /* browser_handle */, | 1224 int /* browser_handle */, |
1217 std::string /* bookmarks as a JSON string */, | 1225 std::string /* bookmarks as a JSON string */, |
1218 bool /* success */) | 1226 bool /* success */) |
1219 | 1227 |
1220 // Wait for the bookmark model to load. | 1228 // Wait for the bookmark model to load. |
1221 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_WaitForBookmarkModelToLoad, | 1229 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_WaitForBookmarkModelToLoad, |
1222 int /* browser_handle */, | 1230 int /* browser_handle */, |
1223 bool /* success */) | 1231 bool /* success */) |
1224 | 1232 |
1225 // Bookmark addition, modification, and removal. | 1233 // Bookmark addition, modification, and removal. |
1226 // Bookmarks are indexed by their id. | 1234 // Bookmarks are indexed by their id. |
1227 IPC_SYNC_MESSAGE_ROUTED4_1(AutomationMsg_AddBookmarkGroup, | 1235 IPC_SYNC_MESSAGE_CONTROL4_1(AutomationMsg_AddBookmarkGroup, |
1228 int /* browser_handle */, | 1236 int /* browser_handle */, |
1229 int64 /* parent_id */, | 1237 int64 /* parent_id */, |
1230 int /* index */, | 1238 int /* index */, |
1231 std::wstring /* title */, | 1239 std::wstring /* title */, |
1232 bool /* success */) | 1240 bool /* success */) |
1233 IPC_SYNC_MESSAGE_ROUTED5_1(AutomationMsg_AddBookmarkURL, | 1241 IPC_SYNC_MESSAGE_CONTROL5_1(AutomationMsg_AddBookmarkURL, |
1234 int /* browser_handle */, | 1242 int /* browser_handle */, |
1235 int64 /* parent_id */, | 1243 int64 /* parent_id */, |
1236 int /* index */, | 1244 int /* index */, |
1237 std::wstring /* title */, | 1245 std::wstring /* title */, |
1238 GURL /* url */, | 1246 GURL /* url */, |
1239 bool /* success */) | 1247 bool /* success */) |
1240 IPC_SYNC_MESSAGE_ROUTED4_1(AutomationMsg_ReparentBookmark, | 1248 IPC_SYNC_MESSAGE_CONTROL4_1(AutomationMsg_ReparentBookmark, |
1241 int /* browser_handle */, | 1249 int /* browser_handle */, |
1242 int64 /* id */, | 1250 int64 /* id */, |
1243 int64 /* new_parent_id */, | 1251 int64 /* new_parent_id */, |
1244 int /* index */, | 1252 int /* index */, |
1245 bool /* success */) | 1253 bool /* success */) |
1246 IPC_SYNC_MESSAGE_ROUTED3_1(AutomationMsg_SetBookmarkTitle, | 1254 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_SetBookmarkTitle, |
1247 int /* browser_handle */, | 1255 int /* browser_handle */, |
1248 int64 /* id */, | 1256 int64 /* id */, |
1249 std::wstring /* title */, | 1257 std::wstring /* title */, |
1250 bool /* success */) | 1258 bool /* success */) |
1251 IPC_SYNC_MESSAGE_ROUTED3_1(AutomationMsg_SetBookmarkURL, | 1259 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_SetBookmarkURL, |
1252 int /* browser_handle */, | 1260 int /* browser_handle */, |
1253 int64 /* id */, | 1261 int64 /* id */, |
1254 GURL /* url */, | 1262 GURL /* url */, |
1255 bool /* success */) | 1263 bool /* success */) |
1256 IPC_SYNC_MESSAGE_ROUTED2_1(AutomationMsg_RemoveBookmark, | 1264 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_RemoveBookmark, |
1257 int /* browser_handle */, | 1265 int /* browser_handle */, |
1258 int64 /* id */, | 1266 int64 /* id */, |
1259 bool /* success */) | 1267 bool /* success */) |
1260 | 1268 |
1261 // This message informs the browser process to remove the history entries | 1269 // This message informs the browser process to remove the history entries |
1262 // for the specified types across all time ranges. See | 1270 // for the specified types across all time ranges. See |
1263 // browsing_data_remover.h for a list of REMOVE_* types supported in the | 1271 // browsing_data_remover.h for a list of REMOVE_* types supported in the |
1264 // remove_mask parameter. | 1272 // remove_mask parameter. |
1265 IPC_MESSAGE_ROUTED1(AutomationMsg_RemoveBrowsingData, int) | 1273 IPC_MESSAGE_CONTROL1(AutomationMsg_RemoveBrowsingData, |
| 1274 int) |
1266 | 1275 |
1267 // Block until the focused view id changes to something other than | 1276 // Block until the focused view id changes to something other than |
1268 // |previous_view_id|. | 1277 // |previous_view_id|. |
1269 IPC_SYNC_MESSAGE_ROUTED2_2(AutomationMsg_WaitForFocusedViewIDToChange, | 1278 IPC_SYNC_MESSAGE_CONTROL2_2(AutomationMsg_WaitForFocusedViewIDToChange, |
1270 int /* window handle */, | 1279 int /* window handle */, |
1271 int /* previous_view_id */, | 1280 int /* previous_view_id */, |
1272 bool /* success */, | 1281 bool /* success */, |
1273 int /* new_view_id */) | 1282 int /* new_view_id */) |
1274 | 1283 |
1275 // To avoid race conditions, waiting until a popup menu opens is a | 1284 // To avoid race conditions, waiting until a popup menu opens is a |
1276 // three-step process: | 1285 // three-step process: |
1277 // 1. Call StartTrackingPopupMenus. | 1286 // 1. Call StartTrackingPopupMenus. |
1278 // 2. Call an automation method that results in opening the popup menu. | 1287 // 2. Call an automation method that results in opening the popup menu. |
1279 // 3. Call WaitForPopupMenuToOpen and check for success. | 1288 // 3. Call WaitForPopupMenuToOpen and check for success. |
1280 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_StartTrackingPopupMenus, | 1289 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_StartTrackingPopupMenus, |
1281 int /* browser handle */, | 1290 int /* browser handle */, |
1282 bool /* success */) | 1291 bool /* success */) |
1283 IPC_SYNC_MESSAGE_ROUTED0_1(AutomationMsg_WaitForPopupMenuToOpen, | 1292 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_WaitForPopupMenuToOpen, |
1284 bool /* success */) | 1293 bool /* success */) |
1285 | 1294 |
1286 // Generic pyauto pattern to help avoid future addition of | 1295 // Generic pyauto pattern to help avoid future addition of |
1287 // automation messages. | 1296 // automation messages. |
1288 IPC_SYNC_MESSAGE_ROUTED2_2(AutomationMsg_SendJSONRequest, | 1297 IPC_SYNC_MESSAGE_CONTROL2_2(AutomationMsg_SendJSONRequest, |
1289 int /* browser_handle */, | 1298 int /* browser_handle */, |
1290 std::string /* JSON request */, | 1299 std::string /* JSON request */, |
1291 std::string /* JSON response */, | 1300 std::string /* JSON response */, |
1292 bool /* success */) | 1301 bool /* success */) |
1293 | 1302 |
1294 // Installs an extension from the crx file and returns its id. | 1303 // Installs an extension from the crx file and returns its id. |
1295 // On error, |extension handle| will be 0. | 1304 // On error, |extension handle| will be 0. |
1296 IPC_SYNC_MESSAGE_ROUTED2_1(AutomationMsg_InstallExtensionAndGetHandle, | 1305 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_InstallExtensionAndGetHandle, |
1297 FilePath /* full path to crx file */, | 1306 FilePath /* full path to crx file */, |
1298 bool /* with UI */, | 1307 bool /* with UI */, |
1299 int /* extension handle */) | 1308 int /* extension handle */) |
1300 | 1309 |
1301 // Waits for the next extension test result. Sets |test result| as the | 1310 // Waits for the next extension test result. Sets |test result| as the |
1302 // received result and |message| as any accompanying message with the | 1311 // received result and |message| as any accompanying message with the |
1303 // result, which could be the empty string. | 1312 // result, which could be the empty string. |
1304 IPC_SYNC_MESSAGE_ROUTED0_2(AutomationMsg_WaitForExtensionTestResult, | 1313 IPC_SYNC_MESSAGE_CONTROL0_2(AutomationMsg_WaitForExtensionTestResult, |
1305 bool /* test result */, | 1314 bool /* test result */, |
1306 std::string /* message */) | 1315 std::string /* message */) |
1307 | 1316 |
1308 // Uninstalls an extension. On success |success| is true. | 1317 // Uninstalls an extension. On success |success| is true. |
1309 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_UninstallExtension, | 1318 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_UninstallExtension, |
1310 int /* extension handle */, | 1319 int /* extension handle */, |
1311 bool /* success */) | 1320 bool /* success */) |
1312 | 1321 |
1313 // Enables an extension. On success |success| is true. | 1322 // Enables an extension. On success |success| is true. |
1314 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_EnableExtension, | 1323 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_EnableExtension, |
1315 int /* extension handle */, | 1324 int /* extension handle */, |
1316 bool /* success */) | 1325 bool /* success */) |
1317 | 1326 |
1318 // Disables an extension. On success |success| is true. | 1327 // Disables an extension. On success |success| is true. |
1319 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_DisableExtension, | 1328 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DisableExtension, |
1320 int /* extension handle */, | 1329 int /* extension handle */, |
1321 bool /* success */) | 1330 bool /* success */) |
1322 | 1331 |
1323 // Executes the action associated with the given extension. This executes | 1332 // Executes the action associated with the given extension. This executes |
1324 // the extension's page or browser action in the given browser, but does | 1333 // the extension's page or browser action in the given browser, but does |
1325 // not open popups. On success |success| is true. | 1334 // not open popups. On success |success| is true. |
1326 IPC_SYNC_MESSAGE_ROUTED2_1( | 1335 IPC_SYNC_MESSAGE_CONTROL2_1( |
1327 AutomationMsg_ExecuteExtensionActionInActiveTabAsync, | 1336 AutomationMsg_ExecuteExtensionActionInActiveTabAsync, |
1328 int /* extension handle */, | 1337 int /* extension handle */, |
1329 int /* browser handle */, | 1338 int /* browser handle */, |
1330 bool /* success */) | 1339 bool /* success */) |
1331 | 1340 |
1332 // Moves the browser action to the given index in the browser action toolbar. | 1341 // Moves the browser action to the given index in the browser action toolbar. |
1333 // On success |success| is true. | 1342 // On success |success| is true. |
1334 IPC_SYNC_MESSAGE_ROUTED2_1(AutomationMsg_MoveExtensionBrowserAction, | 1343 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_MoveExtensionBrowserAction, |
1335 int /* extension handle */, | 1344 int /* extension handle */, |
1336 int /* index */, | 1345 int /* index */, |
1337 bool /* success */) | 1346 bool /* success */) |
1338 | 1347 |
1339 // Gets an extension property |property type|. On success |success| is true, | 1348 // Gets an extension property |property type|. On success |success| is true, |
1340 // and |property value| is set. | 1349 // and |property value| is set. |
1341 IPC_SYNC_MESSAGE_ROUTED2_2(AutomationMsg_GetExtensionProperty, | 1350 IPC_SYNC_MESSAGE_CONTROL2_2(AutomationMsg_GetExtensionProperty, |
1342 int /* extension handle */, | 1351 int /* extension handle */, |
1343 AutomationMsg_ExtensionProperty /* property type */, | 1352 AutomationMsg_ExtensionProperty /* property type */, |
1344 bool /* success */, | 1353 bool /* success */, |
1345 std::string /* property value */) | 1354 std::string /* property value */) |
1346 | 1355 |
1347 // Resets to the default theme. | 1356 // Resets to the default theme. |
1348 IPC_SYNC_MESSAGE_ROUTED0_0(AutomationMsg_ResetToDefaultTheme) | 1357 IPC_SYNC_MESSAGE_CONTROL0_0(AutomationMsg_ResetToDefaultTheme) |
1349 | 1358 |
1350 // Navigates asynchronously to a URL with a certain disposition, | 1359 // Navigates asynchronously to a URL with a certain disposition, |
1351 // like in a new tab. | 1360 // like in a new tab. |
1352 IPC_SYNC_MESSAGE_ROUTED3_1(AutomationMsg_NavigationAsyncWithDisposition, | 1361 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_NavigationAsyncWithDisposition, |
1353 int /* tab handle */, | 1362 int /* tab handle */, |
1354 GURL, | 1363 GURL, |
1355 WindowOpenDisposition, | 1364 WindowOpenDisposition, |
1356 bool /* result */) | 1365 bool /* result */) |
1357 | 1366 |
1358 | 1367 |
1359 // This message requests the cookie be deleted for given url in the | 1368 // This message requests the cookie be deleted for given url in the |
1360 // profile of the tab identified by the first parameter. The second | 1369 // profile of the tab identified by the first parameter. The second |
1361 // parameter is the cookie name. | 1370 // parameter is the cookie name. |
1362 IPC_SYNC_MESSAGE_ROUTED3_1(AutomationMsg_DeleteCookie, GURL, std::string, | 1371 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_DeleteCookie, |
1363 int /* tab handle */, | 1372 GURL, |
1364 bool /* result */) | 1373 std::string, |
| 1374 int /* tab handle */, |
| 1375 bool /* result */) |
1365 | 1376 |
1366 // This message triggers the collected cookies dialog for a specific tab. | 1377 // This message triggers the collected cookies dialog for a specific tab. |
1367 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_ShowCollectedCookiesDialog, | 1378 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_ShowCollectedCookiesDialog, |
1368 int /* tab handle */, | 1379 int /* tab handle */, |
1369 bool /* result */) | 1380 bool /* result */) |
1370 | 1381 |
1371 // This message requests the external tab identified by the tab handle | 1382 // This message requests the external tab identified by the tab handle |
1372 // passed in be closed. | 1383 // passed in be closed. |
1373 // Request: | 1384 // Request: |
1374 // -int: Tab handle | |
1375 // Response: | 1385 // Response: |
1376 // None expected | 1386 // None expected |
1377 IPC_MESSAGE_ROUTED1(AutomationMsg_CloseExternalTab, int) | 1387 IPC_MESSAGE_ROUTED0(AutomationMsg_CloseExternalTab) |
1378 | 1388 |
1379 // This message requests that the external tab identified by the tab handle | 1389 // This message requests that the external tab identified by the tab handle |
1380 // runs unload handlers if any on the current page. | 1390 // runs unload handlers if any on the current page. |
1381 // Request: | 1391 // Request: |
1382 // -int: Tab handle | 1392 // -int: Tab handle |
1383 // -bool: result: true->unload, false->don't unload | 1393 // -bool: result: true->unload, false->don't unload |
1384 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_RunUnloadHandlers, int, bool) | 1394 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_RunUnloadHandlers, |
| 1395 int, |
| 1396 bool) |
1385 | 1397 |
1386 // This message sets the current zoom level on the tab | 1398 // This message sets the current zoom level on the tab |
1387 // Request: | 1399 // Request: |
1388 // -int: Tab handle | 1400 // -int: Tab handle |
1389 // -int: Zoom level. Values ZOOM_OUT = -1, RESET = 0, ZOOM_IN = 1 | 1401 // -int: Zoom level. Values ZOOM_OUT = -1, RESET = 0, ZOOM_IN = 1 |
1390 // Response: | 1402 // Response: |
1391 // None expected | 1403 // None expected |
1392 IPC_MESSAGE_ROUTED2(AutomationMsg_SetZoomLevel, int, int) | 1404 IPC_MESSAGE_CONTROL2(AutomationMsg_SetZoomLevel, |
| 1405 int, |
| 1406 int) |
1393 | 1407 |
1394 // Waits for tab count to reach target value. | 1408 // Waits for tab count to reach target value. |
1395 IPC_SYNC_MESSAGE_ROUTED2_1(AutomationMsg_WaitForTabCountToBecome, | 1409 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_WaitForTabCountToBecome, |
1396 int /* browser handle */, | 1410 int /* browser handle */, |
1397 int /* target tab count */, | 1411 int /* target tab count */, |
1398 bool /* success */) | 1412 bool /* success */) |
1399 | 1413 |
1400 // Waits for the infobar count to reach given number. | 1414 // Waits for the infobar count to reach given number. |
1401 IPC_SYNC_MESSAGE_ROUTED2_1(AutomationMsg_WaitForInfoBarCount, | 1415 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_WaitForInfoBarCount, |
1402 int /* tab handle */, | 1416 int /* tab handle */, |
1403 int /* target count */, | 1417 int /* target count */, |
1404 bool /* success */) | 1418 bool /* success */) |
1405 | 1419 |
1406 // Waits for the autocomplete edit to receive focus. | 1420 // Waits for the autocomplete edit to receive focus. |
1407 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_WaitForAutocompleteEditFocus, | 1421 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_WaitForAutocompleteEditFocus, |
1408 int /* autocomplete edit handle */, | 1422 int /* autocomplete edit handle */, |
1409 bool /* success */) | 1423 bool /* success */) |
1410 | 1424 |
1411 // Loads all blocked plug-ins on the page. | 1425 // Loads all blocked plug-ins on the page. |
1412 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_LoadBlockedPlugins, | 1426 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_LoadBlockedPlugins, |
1413 int /* tab handle */, | 1427 int /* tab handle */, |
1414 bool /* success */) | 1428 bool /* success */) |
1415 | 1429 |
1416 // Captures the entire page for the tab, including those portions not in | 1430 // Captures the entire page for the tab, including those portions not in |
1417 // view, and saves the image as a PNG in the given file location. | 1431 // view, and saves the image as a PNG in the given file location. |
1418 // Request: | 1432 // Request: |
1419 // -int: Tab handle | 1433 // -int: Tab handle |
1420 // -FilePath: Path to save the captured image to | 1434 // -FilePath: Path to save the captured image to |
1421 // Response: | 1435 // Response: |
1422 // -bool: Whether the method succeeded | 1436 // -bool: Whether the method succeeded |
1423 IPC_SYNC_MESSAGE_ROUTED2_1(AutomationMsg_CaptureEntirePageAsPNG, int, | 1437 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_CaptureEntirePageAsPNG, |
1424 FilePath, bool) | 1438 int, |
| 1439 FilePath, |
| 1440 bool) |
OLD | NEW |