Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(224)

Side by Side Diff: chrome/common/automation_messages_internal.h

Issue 10383232: Remove all the unused automation IPCs. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/automation_messages.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Defines the IPC messages used by the automation interface. 5 // Defines the IPC messages used by the automation interface.
6 6
7 // NOTE: All IPC messages have either a routing_id of 0 (for asynchronous 7 // NOTE: All IPC messages have either a routing_id of 0 (for asynchronous
8 // messages), or one that's been assigned by the proxy (for calls 8 // messages), or one that's been assigned by the proxy (for calls
9 // which expect a response). The routing_id shouldn't be used for 9 // which expect a response). The routing_id shouldn't be used for
10 // any other purpose in these message types. 10 // any other purpose in these message types.
11 11
12 // NOTE: All the new IPC messages should go at the end. 12 // NOTE: All the new IPC messages should go at the end.
13 // The test <--> browser IPC message IDs need to match the reference 13 // The test <--> browser IPC message IDs need to match the reference
14 // builds. Since we now define the IDs based on __LINE__, to allow these 14 // builds. Since we now define the IDs based on __LINE__, to allow these
15 // IPC messages to be used to control an old version of Chrome we need 15 // IPC messages to be used to control an old version of Chrome we need
16 // the message IDs to remain the same. This means that you should not 16 // the message IDs to remain the same. This means that you should not
17 // change the line number of these types of messages. You can, however, 17 // change the line number of these types of messages. You can, however,
18 // change the browser <--> renderer messages. 18 // change the browser <--> renderer messages.
19 19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34 #define IPC_MESSAGE_START AutomationMsgStart 20 #define IPC_MESSAGE_START AutomationMsgStart
35 21
36 // This message is fired when the AutomationProvider is up and running 22 // 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 23 // 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 24 // message is the version string of the automation provider. This parameter
39 // is defined to be the version string as returned by 25 // is defined to be the version string as returned by
40 // chrome::VersionInfo::Version(). 26 // chrome::VersionInfo::Version().
41 // The client can choose to use this version string to decide whether or not 27 // The client can choose to use this version string to decide whether or not
42 // it can talk to the provider. 28 // it can talk to the provider.
43 IPC_MESSAGE_CONTROL1(AutomationMsg_Hello, 29 IPC_MESSAGE_CONTROL1(AutomationMsg_Hello,
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 // value is the handle. 135 // value is the handle.
150 IPC_MESSAGE_CONTROL1(AutomationMsg_InvalidateHandle, 136 IPC_MESSAGE_CONTROL1(AutomationMsg_InvalidateHandle,
151 int) 137 int)
152 138
153 // This message notifies the AutomationProvider that a handle is no 139 // This message notifies the AutomationProvider that a handle is no
154 // longer being used, so it can stop paying attention to the 140 // longer being used, so it can stop paying attention to the
155 // associated resource. The parameter value is the handle. 141 // associated resource. The parameter value is the handle.
156 IPC_MESSAGE_CONTROL1(AutomationMsg_HandleUnused, 142 IPC_MESSAGE_CONTROL1(AutomationMsg_HandleUnused,
157 int) 143 int)
158 144
159 // This message tells the AutomationProvider to provide the given
160 // authentication data to the specified tab, in response to an HTTP/FTP
161 // authentication challenge.
162 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_DEPRECATED_SetAuth,
163 int /* tab handle */,
164 std::wstring /* username */,
165 std::wstring /* password */,
166 AutomationMsg_NavigationResponseValues /* status */)
167
168 // This message tells the AutomationProvider to cancel the login in the
169 // specified tab.
170 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_CancelAuth,
171 int /* tab handle */,
172 AutomationMsg_NavigationResponseValues /* status */)
173
174 // Requests that the automation provider ask history for the most recent
175 // chain of redirects coming from the given URL. The response must be
176 // decoded by the caller manually; it contains an integer indicating the
177 // number of URLs, followed by that many wstrings indicating a chain of
178 // redirects. On failure, the count will be negative.
179 IPC_SYNC_MESSAGE_CONTROL2_2(AutomationMsg_DEPRECATED_RedirectsFrom,
180 int /* tab handle */,
181 GURL /* source URL */,
182 bool /* succeeded */,
183 std::vector<GURL> /* redirects */)
184
185 // This message asks the AutomationProvider whether a tab is waiting for
186 // login info.
187 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_NeedsAuth,
188 int /* tab handle */,
189 bool /* status */)
190
191 // This message requests that the AutomationProvider executes a JavaScript, 145 // This message requests that the AutomationProvider executes a JavaScript,
192 // which is sent embedded in a 'javascript:' URL. 146 // which is sent embedded in a 'javascript:' URL.
193 // The javascript is executed in context of child frame whose xpath 147 // The javascript is executed in context of child frame whose xpath
194 // is passed as parameter (context_frame). The execution results in 148 // is passed as parameter (context_frame). The execution results in
195 // a serialized JSON string response. 149 // a serialized JSON string response.
196 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_DomOperation, 150 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_DomOperation,
197 int /* tab handle */, 151 int /* tab handle */,
198 std::wstring /* context_frame */, 152 std::wstring /* context_frame */,
199 std::wstring /* the javascript to be executed */, 153 std::wstring /* the javascript to be executed */,
200 std::string /* the serialized json string containg 154 std::string /* the serialized json string containg
201 the result of a javascript 155 the result of a javascript
202 execution */) 156 execution */)
203 157
204 // Is the Download Shelf visible for the specified browser? 158 // Is the Download Shelf visible for the specified browser?
205 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_ShelfVisibility, 159 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_ShelfVisibility,
206 int /* browser_handle */, 160 int /* browser_handle */,
207 bool /* is_visible */) 161 bool /* is_visible */)
208 162
209 // This message requests the number of constrained windows in the tab with
210 // the given handle. The return value contains the number of constrained
211 // windows, or -1 if the request failed.
212 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_ConstrainedWindowCount,
213 int /* tab_handle */,
214 int /* constrained_window_count */)
215
216 // This message requests the bounds of the specified View element in 163 // This message requests the bounds of the specified View element in
217 // window coordinates. 164 // window coordinates.
218 // Request: 165 // Request:
219 // int - the handle of the window in which the view appears 166 // int - the handle of the window in which the view appears
220 // int - the ID of the view, as specified in chrome/browser/ui/view_ids.h 167 // int - the ID of the view, as specified in chrome/browser/ui/view_ids.h
221 // bool - whether the bounds should be returned in the screen coordinates 168 // bool - whether the bounds should be returned in the screen coordinates
222 // (if true) or in the browser coordinates (if false). 169 // (if true) or in the browser coordinates (if false).
223 // Response: 170 // Response:
224 // bool - true if the view was found 171 // bool - true if the view was found
225 // gfx::Rect - the bounds of the view, in window coordinates 172 // gfx::Rect - the bounds of the view, in window coordinates
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 int, 206 int,
260 bool, 207 bool,
261 bool) 208 bool)
262 209
263 // Similar to AutomationMsg_InitialLoadsComplete, this indicates that the 210 // Similar to AutomationMsg_InitialLoadsComplete, this indicates that the
264 // new tab ui has completed the initial load of its data. 211 // new tab ui has completed the initial load of its data.
265 // Time is how many milliseconds the load took. 212 // Time is how many milliseconds the load took.
266 IPC_MESSAGE_CONTROL1(AutomationMsg_InitialNewTabUILoadComplete, 213 IPC_MESSAGE_CONTROL1(AutomationMsg_InitialNewTabUILoadComplete,
267 int /* time */) 214 int /* time */)
268 215
269 // This message sends a inspect element request for a given tab. The response
270 // contains the number of resources loaded by the inspector controller.
271 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_DEPRECATED_InspectElement,
272 int, /* tab_handle */
273 int, /* x */
274 int /* y */,
275 int)
276
277 // This message requests the process ID of the tab that corresponds
278 // to the given automation handle.
279 // The return value has an integer corresponding to the PID of the tab's
280 // renderer, 0 if the tab currently has no renderer process, or -1 on error.
281 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_TabProcessID,
282 int /* tab_handle */,
283 int /* process ID */)
284
285 // This tells the browser to enable or disable the filtered network layer. 216 // This tells the browser to enable or disable the filtered network layer.
286 IPC_MESSAGE_CONTROL1(AutomationMsg_SetFilteredInet, 217 IPC_MESSAGE_CONTROL1(AutomationMsg_SetFilteredInet,
287 bool /* enabled */) 218 bool /* enabled */)
288 219
289 // Gets the directory that downloads will occur in for the active profile. 220 // Gets the directory that downloads will occur in for the active profile.
290 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DownloadDirectory, 221 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DownloadDirectory,
291 int /* tab_handle */, 222 int /* tab_handle */,
292 FilePath /* directory */) 223 FilePath /* directory */)
293 224
294 // This message requests the id of the view that has the focus in the
295 // specified window. If no view is focused, -1 is returned. Note that the
296 // window should either be a ViewWindow or a Browser.
297 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_GetFocusedViewID,
298 int /* view_handle */,
299 int /* focused_view_id */)
300
301 // This message shows/hides the window.
302 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_DEPRECATED_SetWindowVisible,
303 int /* view_handle */,
304 bool /* visible */,
305 bool /* success */)
306
307 // Gets the active status of a window.
308 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_DEPRECATED_IsWindowActive,
309 int /* view_handle */,
310 bool /* success */,
311 bool /* active */)
312
313 // Makes the specified window the active window.
314 IPC_SYNC_MESSAGE_CONTROL1_0(AutomationMsg_DEPRECATED_ActivateWindow,
315 int /* view_handle */)
316
317 // Opens a new browser window. 225 // Opens a new browser window.
318 // TODO(sky): remove this and replace with OpenNewBrowserWindowOfType. 226 // TODO(sky): remove this and replace with OpenNewBrowserWindowOfType.
319 // Doing this requires updating the reference build. 227 // Doing this requires updating the reference build.
320 IPC_SYNC_MESSAGE_CONTROL1_0(AutomationMsg_OpenNewBrowserWindow, 228 IPC_SYNC_MESSAGE_CONTROL1_0(AutomationMsg_OpenNewBrowserWindow,
321 bool /* show */ ) 229 bool /* show */ )
322 230
323 // This message requests the handle (int64 app-unique identifier) of the 231 // This message requests the handle (int64 app-unique identifier) of the
324 // current active top window. On error, the returned handle value is 0. 232 // current active top window. On error, the returned handle value is 0.
325 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_ActiveWindow, 233 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_ActiveWindow,
326 int) 234 int)
327 235
328 // This message requests the browser associated with the specified window
329 // handle.
330 // The return value contains a success flag and the handle of the browser.
331 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_DEPRECATED_BrowserForWindow,
332 int /* window handle */,
333 bool /* success flag */,
334 int /* browser handle */)
335
336 // This message requests the window associated with the specified browser 236 // This message requests the window associated with the specified browser
337 // handle. 237 // handle.
338 // The return value contains a success flag and the handle of the window. 238 // The return value contains a success flag and the handle of the window.
339 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_WindowForBrowser, 239 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_WindowForBrowser,
340 int /* browser handle */, 240 int /* browser handle */,
341 bool /* success flag */, 241 bool /* success flag */,
342 int /* window handle */) 242 int /* window handle */)
343 243
344 // TODO(phajdan.jr): Remove when the reference build is updated (this and
345 // all others marked "DEPRECATED MESSAGE").
346 // (intentionally blank line)
347 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_DEPRECATED_AutocompleteEditForBrowser,
348 int /* browser handle */,
349 bool /* success flag */,
350 int /* AutocompleteEdit handle */)
351
352 // This message requests that a mouse click be performed in window coordinate
353 // space.
354 // Request:
355 // int - the handle of the window that's the context for this click
356 // gfx::Point - the point to click
357 // int - the flags which identify the mouse button(s) for the click, as
358 // defined in chrome/views/event.h
359 IPC_MESSAGE_CONTROL3(AutomationMsg_DEPRECATED_WindowClick,
360 int,
361 gfx::Point,
362 int)
363
364 // This message requests that a key press be performed. 244 // This message requests that a key press be performed.
365 // Request: 245 // Request:
366 // int - the handle of the window that's the context for this click 246 // int - the handle of the window that's the context for this click
367 // int - the ui::KeyboardCode of the key that was pressed. 247 // int - the ui::KeyboardCode of the key that was pressed.
368 // int - the flags which identify the modifiers (shift, ctrl, alt) 248 // int - the flags which identify the modifiers (shift, ctrl, alt)
369 // associated for, as defined in chrome/views/event.h 249 // associated for, as defined in chrome/views/event.h
370 IPC_MESSAGE_CONTROL3(AutomationMsg_WindowKeyPress, 250 IPC_MESSAGE_CONTROL3(AutomationMsg_WindowKeyPress,
371 int, 251 int,
372 int, 252 int,
373 int) 253 int)
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 // This message is an outgoing message from Chrome to an external host. 289 // This message is an outgoing message from Chrome to an external host.
410 // It is a notification that the target URL has changed (the target URL 290 // It is a notification that the target URL has changed (the target URL
411 // is the URL of the link that the user is hovering on) 291 // is the URL of the link that the user is hovering on)
412 // Request: 292 // Request:
413 // -std::wstring: The new target URL 293 // -std::wstring: The new target URL
414 // Response: 294 // Response:
415 // None expected 295 // None expected
416 IPC_MESSAGE_ROUTED1(AutomationMsg_UpdateTargetUrl, 296 IPC_MESSAGE_ROUTED1(AutomationMsg_UpdateTargetUrl,
417 std::wstring) 297 std::wstring)
418 298
419 // This message notifies the AutomationProvider to show the specified html
420 // text in an interstitial page in the tab with given handle. The first
421 // parameter is the handle to the tab resource. The second parameter is the
422 // html text to be displayed.
423 // The return value contains a success flag.
424 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_DEPRECATED_ShowInterstitialPage,
425 int,
426 std::string,
427 AutomationMsg_NavigationResponseValues)
428
429 // This message notifies the AutomationProvider to hide the current
430 // interstitial page in the tab with given handle. The parameter is the
431 // handle to the tab resource.
432 // The return value contains a success flag.
433 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_HideInterstitialPage,
434 int,
435 bool)
436 299
437 // This message requests that a tab be closed. 300 // This message requests that a tab be closed.
438 // Request: 301 // Request:
439 // - int: handle of the tab to close 302 // - int: handle of the tab to close
440 // - bool: if true the proxy blocks until the tab has completely closed, 303 // - bool: if true the proxy blocks until the tab has completely closed,
441 // otherwise the proxy only blocks until it initiates the close. 304 // otherwise the proxy only blocks until it initiates the close.
442 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_CloseTab, 305 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_CloseTab,
443 int, 306 int,
444 bool, 307 bool,
445 bool) 308 bool)
446 309
447 // This message requests that the browser be closed. 310 // This message requests that the browser be closed.
448 // Request: 311 // Request:
449 // - int: handle of the browser which contains the tab 312 // - int: handle of the browser which contains the tab
450 // Response: 313 // Response:
451 // - bool: whether the operation was successfull. 314 // - bool: whether the operation was successfull.
452 // - bool: whether the browser process will be terminated as a result (if 315 // - bool: whether the browser process will be terminated as a result (if
453 // this was the last closed browser window). 316 // this was the last closed browser window).
454 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_CloseBrowser, 317 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_CloseBrowser,
455 int, 318 int,
456 bool, 319 bool,
457 bool) 320 bool)
458 321
459 IPC_MESSAGE_CONTROL1(AutomationMsg_DEPRECATED_CloseBrowserRequestAsync,
460 int)
461
462 #if defined(OS_WIN) 322 #if defined(OS_WIN)
463 // TODO(port): Port these messages. 323 // TODO(port): Port these messages.
464 // 324 //
465 // This message is an outgoing message from Chrome to an external host. 325 // This message is an outgoing message from Chrome to an external host.
466 // It is a request to process a keyboard accelerator. 326 // It is a request to process a keyboard accelerator.
467 // Request: 327 // Request:
468 // -MSG: The keyboard message 328 // -MSG: The keyboard message
469 // Response: 329 // Response:
470 // None expected 330 // None expected
471 // TODO(sanjeevr): Ideally we need to add a response from the external 331 // TODO(sanjeevr): Ideally we need to add a response from the external
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 // Request: 464 // Request:
605 // - int: handle of the browser window. 465 // - int: handle of the browser window.
606 // - int: IDC message identifier to query if enabled 466 // - int: IDC message identifier to query if enabled
607 // Response: 467 // Response:
608 // - bool: True if the command is enabled on the menu 468 // - bool: True if the command is enabled on the menu
609 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_IsMenuCommandEnabled, 469 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_IsMenuCommandEnabled,
610 int, 470 int,
611 int, 471 int,
612 bool) 472 bool)
613 473
614 // This message notifies the AutomationProvider to print the tab with given
615 // handle. The first parameter is the handle to the tab resource. The
616 // return value contains a bool which is true on success.
617 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_PrintNow,
618 int,
619 bool)
620
621 // This message notifies the AutomationProvider to reload the current page in 474 // This message notifies the AutomationProvider to reload the current page in
622 // the tab with given handle. The first parameter is the handle to the tab 475 // the tab with given handle. The first parameter is the handle to the tab
623 // resource. The return value contains a status code which is nonnegative on 476 // resource. The return value contains a status code which is nonnegative on
624 // success. 477 // success.
625 // see AutomationMsg_NavigationResponseValues for the navigation response. 478 // see AutomationMsg_NavigationResponseValues for the navigation response.
626 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_Reload, 479 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_Reload,
627 int, 480 int,
628 AutomationMsg_NavigationResponseValues) 481 AutomationMsg_NavigationResponseValues)
629 482
630 // This message requests the handle (int64 app-unique identifier) of the
631 // last active browser window, or the browser at index 0 if there is no last
632 // active browser, or it no longer exists. Returns 0 if no browser windows
633 // exist.
634 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_DEPRECATED_LastActiveBrowserWindow,
635 int)
636
637 // This message notifies the AutomationProvider to save the page with given
638 // handle. The first parameter is the handle to the tab resource. The second
639 // parameter is the main HTML file name. The third parameter is the directory
640 // for saving resources. The fourth parameter is the saving type: 0 for HTML
641 // only; 1 for complete web page.
642 // The return value contains a bool which is true on success.
643 IPC_SYNC_MESSAGE_CONTROL4_1(AutomationMsg_DEPRECATED_SavePage,
644 int,
645 FilePath,
646 FilePath,
647 int,
648 bool)
649
650 // TODO(phajdan.jr): Remove when the reference build is updated (this and
651 // all others marked "DEPRECATED MESSAGE").
652 // (intentionally blank line)
653 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_DEPRECATED_AutocompleteEditGetText,
654 int /* autocomplete edit handle */,
655 bool /* the requested autocomplete edit exists */,
656 string16 /* omnibox text */)
657
658 // TODO(phajdan.jr): Remove when the reference build is updated (this and
659 // all others marked "DEPRECATED MESSAGE").
660 // (intentionally blank line)
661 // (intentionally blank line)
662 // (intentionally blank line)
663 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_DEPRECATED_AutocompleteEditSetText,
664 int /* autocomplete edit handle */,
665 string16 /* text to set */,
666 bool /* the requested autocomplete edit exists */)
667
668 // TODO(phajdan.jr): Remove when the reference build is updated (this and
669 // all others marked "DEPRECATED MESSAGE").
670 // (intentionally blank line)
671 // (intentionally blank line)
672 // (intentionally blank line)
673 IPC_SYNC_MESSAGE_CONTROL1_2( \
674 AutomationMsg_DEPRECATED_AutocompleteEditIsQueryInProgress,
675 int /* autocomplete edit handle*/,
676 bool /* the requested autocomplete edit exists */,
677 bool /* indicates if a query is in progress */)
678
679 // TODO(phajdan.jr): Remove when the reference build is updated (this and
680 // all others marked "DEPRECATED MESSAGE").
681 // (intentionally blank line)
682 // (intentionally blank line)
683 // (intentionally blank line)
684 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_DEPRECATED_AutocompleteEditGetMatches,
685 int /* autocomplete edit handle*/,
686 bool /* the requested autocomplete edit exists */,
687 std::vector<int> /* matches */)
688
689 // This message requests the execution of a browser command in the browser 483 // This message requests the execution of a browser command in the browser
690 // for which the handle is specified. 484 // for which the handle is specified.
691 // The return value contains a boolean, whether the command was dispatched. 485 // The return value contains a boolean, whether the command was dispatched.
692 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_WindowExecuteCommandAsync, 486 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_WindowExecuteCommandAsync,
693 int /* automation handle */, 487 int /* automation handle */,
694 int /* browser command */, 488 int /* browser command */,
695 bool /* success flag */) 489 bool /* success flag */)
696 490
697 // This message requests the execution of a browser command in the browser 491 // This message requests the execution of a browser command in the browser
698 // for which the handle is specified. 492 // for which the handle is specified.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 AutomationMsg_Find_Params /* params */, 525 AutomationMsg_Find_Params /* params */,
732 int /* active_ordinal */, 526 int /* active_ordinal */,
733 int /* matches_found */) 527 int /* matches_found */)
734 528
735 // Is the Find window fully visible (and not animating) for the specified 529 // Is the Find window fully visible (and not animating) for the specified
736 // tab? 530 // tab?
737 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_FindWindowVisibility, 531 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_FindWindowVisibility,
738 int /* tab_handle */, 532 int /* tab_handle */,
739 bool /* is_visible */) 533 bool /* is_visible */)
740 534
741 // Where is the Find window located. |x| and |y| will be -1, -1 on failure.
742 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_DEPRECATED_FindWindowLocation,
743 int /* tab_handle */,
744 int /* x */,
745 int /* y */)
746
747 // Gets the bookmark bar visibility, animating and detached states. 535 // Gets the bookmark bar visibility, animating and detached states.
748 // TODO(phajdan.jr): Adjust the last param when the reference build is updated. 536 // TODO(phajdan.jr): Adjust the last param when the reference build is updated.
749 IPC_SYNC_MESSAGE_CONTROL1_3(AutomationMsg_BookmarkBarVisibility, 537 IPC_SYNC_MESSAGE_CONTROL1_3(AutomationMsg_BookmarkBarVisibility,
750 int /* browser_handle */, 538 int /* browser_handle */,
751 bool, /* is_visible */ 539 bool, /* is_visible */
752 bool, /* still_animating */ bool /* is_detached */) 540 bool, /* still_animating */ bool /* is_detached */)
753 541
754 // This message requests the number of related info bars opened. It
755 // returns -1 if an error occurred.
756 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_GetInfoBarCount,
757 int /* tab_handle */,
758 size_t /* info bar count */)
759
760 // This message triggers the action associated with the "accept" button in
761 // the info-bar at the specified index. If |wait for navigation| is true, it
762 // won't return until a navigation has occurred.
763 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_DEPRECATED_ClickInfoBarAccept,
764 int /* tab_handle */,
765 size_t /* info bar index */,
766 bool /* wait for navigation */,
767 // (intentionally blank line), see comment atop file about __LINE__.
768 /* navigation result */
769 AutomationMsg_NavigationResponseValues)
770
771 // This message retrieves the last time a navigation occurred in the specified
772 // tab. The value is intended to be used with WaitForNavigation.
773 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_GetLastNavigationTime,
774 int /* tab_handle */,
775 int64 /* last navigation time */)
776
777 // This messages is used to block until a new navigation occurs (if there is
778 // none more recent then the time specified).
779 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_DEPRECATED_WaitForNavigation,
780 int /* tab_handle */,
781 int64 /* last navigation time */,
782 // (intentionally blank line), see comment atop file about __LINE__.
783 /* navigation result */
784 AutomationMsg_NavigationResponseValues)
785
786 // This messages sets an int-value preference.
787 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_DEPRECATED_SetIntPreference,
788 int /* browser handle */,
789 std::string /* pref name */,
790 int /* value */,
791 bool /* success */)
792
793 // Queries whether an app modal dialog is currently being shown. (i.e. a
794 // javascript alert) and which buttons it contains.
795 IPC_SYNC_MESSAGE_CONTROL0_2(AutomationMsg_DEPRECATED_ShowingAppModalDialog,
796 bool /* showing dialog */,
797 int /* view::DelegateDialog::DialogButton */)
798
799 // This message triggers the specified button for the currently showing
800 // modal dialog.
801 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_ClickAppModalDialogButton,
802 int /* view::DelegateDialog::DialogButton */,
803 bool /* success */)
804
805 // This messages sets a string-value preference.
806 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_DEPRECATED_SetStringPreference,
807 int /* browser handle */,
808 std::string /* pref name */,
809 std::string /* pref value */,
810 bool)
811
812 // This messages gets a boolean-value preference.
813 IPC_SYNC_MESSAGE_CONTROL2_2(AutomationMsg_DEPRECATED_GetBooleanPreference,
814 int /* browser handle */,
815 std::string /* pref name */,
816 bool /* success */,
817 bool /* pref value */)
818
819 // This messages sets a boolean-value preference.
820 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_DEPRECATED_SetBooleanPreference,
821 int /* browser handle */,
822 std::string /* pref name */,
823 bool /* pref value */,
824 bool /* success */)
825
826 // Queries the current used encoding name of the page in the specified
827 // web content tab.
828 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_GetPageCurrentEncoding,
829 int /* tab handle */,
830 std::string /* current used encoding name */)
831
832 // Uses the specified encoding to override the encoding of the page in the 542 // Uses the specified encoding to override the encoding of the page in the
833 // specified web content tab. 543 // specified web content tab.
834 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_OverrideEncoding, 544 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_OverrideEncoding,
835 int /* tab handle */, 545 int /* tab handle */,
836 std::string /* overrided encoding name */, 546 std::string /* overrided encoding name */,
837 bool /* success */) 547 bool /* success */)
838 548
839 // Used to disable the dialog box that prompts the user for a path when
840 // saving a web page.
841 IPC_SYNC_MESSAGE_CONTROL1_0(AutomationMsg_DEPRECATED_SavePackageShouldPromptUser ,
842 bool /* false if we want to not show the dialog */)
843
844 // This message is an outgoing message from Chrome to an external host. 549 // This message is an outgoing message from Chrome to an external host.
845 // It is a notification that a navigation failed 550 // It is a notification that a navigation failed
846 // Request: 551 // Request:
847 // -int : The status code. 552 // -int : The status code.
848 // -GURL: The URL we failed to navigate to. 553 // -GURL: The URL we failed to navigate to.
849 // Response: 554 // Response:
850 // None expected 555 // None expected
851 IPC_MESSAGE_ROUTED2(AutomationMsg_NavigationFailed, 556 IPC_MESSAGE_ROUTED2(AutomationMsg_NavigationFailed,
852 int, 557 int,
853 GURL) 558 GURL)
854 559
855 #if defined(OS_WIN) && !defined(USE_AURA) 560 #if defined(OS_WIN) && !defined(USE_AURA)
856 // This message is an outgoing message from an automation client to Chrome. 561 // This message is an outgoing message from an automation client to Chrome.
857 // It is used to reposition a chrome tab window. 562 // It is used to reposition a chrome tab window.
858 IPC_MESSAGE_CONTROL2(AutomationMsg_TabReposition, 563 IPC_MESSAGE_CONTROL2(AutomationMsg_TabReposition,
859 int /* tab handle */, 564 int /* tab handle */,
860 Reposition_Params /* SetWindowPos params */) 565 Reposition_Params /* SetWindowPos params */)
861 #endif // defined(OS_WIN) 566 #endif // defined(OS_WIN)
862 567
863 // Gets the title of the top level browser window.
864 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_WindowTitle,
865 int /* automation handle */,
866 string16 /* title text */ )
867
868 // Tab load complete 568 // Tab load complete
869 IPC_MESSAGE_ROUTED1(AutomationMsg_TabLoaded, 569 IPC_MESSAGE_ROUTED1(AutomationMsg_TabLoaded,
870 GURL) 570 GURL)
871 571
872 // This message requests the tabstrip index of the tab with the given handle. 572 // This message requests the tabstrip index of the tab with the given handle.
873 // The return value contains the index, which will be -1 on failure. 573 // The return value contains the index, which will be -1 on failure.
874 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_TabIndex, 574 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_TabIndex,
875 int, 575 int,
876 int) 576 int)
877 577
878 // This message requests the handle (int64 app-unique identifier) of 578 // This message requests the handle (int64 app-unique identifier) of
879 // a valid tabbed browser window, i.e. normal type and non-incognito mode. 579 // a valid tabbed browser window, i.e. normal type and non-incognito mode.
880 // On error, the returned handle value is 0. 580 // On error, the returned handle value is 0.
881 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_FindTabbedBrowserWindow, 581 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_FindTabbedBrowserWindow,
882 int) 582 int)
883 583
884 // This message requests the number of normal browser windows, i.e. normal 584 // This message requests the number of normal browser windows, i.e. normal
885 // type and non-incognito mode that the app currently has open. The return 585 // type and non-incognito mode that the app currently has open. The return
886 // value is the number of windows. 586 // value is the number of windows.
887 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_NormalBrowserWindowCount, 587 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_NormalBrowserWindowCount,
888 int) 588 int)
889 589
890 // DEPRECATED MESSAGE - But we must leave this comment and message so as
891 // not to perturb line numbers (see comment at top of file re __LINE__).
892 // TODO(phajdan.jr): Remove when the reference build is updated (this and
893 // all others marked "DEPRECATED MESSAGE").
894 // (intentionally blank line)
895 IPC_MESSAGE_CONTROL2(AutomationMsg_DEPRECATED_MessageOne,
896 // (intentionally blank line)
897 int,
898 // (intentionally blank line)
899 // (intentionally blank line)
900 // (intentionally blank line)
901 // (intentionally blank line)
902 int)
903
904 // This message tells the browser to start using the new proxy configuration 590 // This message tells the browser to start using the new proxy configuration
905 // represented by the given JSON string. The parameters used in the JSON 591 // represented by the given JSON string. The parameters used in the JSON
906 // string are defined in automation_constants.h. 592 // string are defined in automation_constants.h.
907 IPC_MESSAGE_CONTROL1(AutomationMsg_SetProxyConfig, 593 IPC_MESSAGE_CONTROL1(AutomationMsg_SetProxyConfig,
908 std::string /* proxy_config_json_string */) 594 std::string /* proxy_config_json_string */)
909 595
910 // Sets Download Shelf visibility for the specified browser. 596 // Sets Download Shelf visibility for the specified browser.
911 IPC_SYNC_MESSAGE_CONTROL2_0(AutomationMsg_SetShelfVisibility, 597 IPC_SYNC_MESSAGE_CONTROL2_0(AutomationMsg_SetShelfVisibility,
912 int /* browser_handle */, 598 int /* browser_handle */,
913 bool /* is_visible */) 599 bool /* is_visible */)
914 600
915 // This message requests the number of blocked popups in a certain tab with
916 // the given handle. The return value is the number of blocked popups, or -1
917 // if this request failed.
918 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_BlockedPopupCount,
919 int /* tab_handle */,
920 int /* blocked_popup_count */)
921
922 // This message retrieves the locale of the browser process. On success
923 // |chrome_locale| will contain the locale as reported by ICU. On failure
924 // |chrome_locale| is the empty string.
925 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_DEPRECATED_GetBrowserLocale,
926 string16 /* chrome_locale */)
927
928 #if defined(OS_WIN) 601 #if defined(OS_WIN)
929 IPC_MESSAGE_ROUTED3(AutomationMsg_ForwardContextMenuToExternalHost, 602 IPC_MESSAGE_ROUTED3(AutomationMsg_ForwardContextMenuToExternalHost,
930 ContextMenuModel /* description of menu */, 603 ContextMenuModel /* description of menu */,
931 int /* align flags */, 604 int /* align flags */,
932 MiniContextMenuParams /* params */) 605 MiniContextMenuParams /* params */)
933 606
934 IPC_MESSAGE_CONTROL2(AutomationMsg_ForwardContextMenuCommandToChrome, 607 IPC_MESSAGE_CONTROL2(AutomationMsg_ForwardContextMenuCommandToChrome,
935 int /* tab_handle */, 608 int /* tab_handle */,
936 int /* selected_command */) 609 int /* selected_command */)
937 #endif // OS_WIN 610 #endif // OS_WIN
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
978 651
979 IPC_MESSAGE_CONTROL1(AutomationMsg_Paste, 652 IPC_MESSAGE_CONTROL1(AutomationMsg_Paste,
980 int /* tab handle */) 653 int /* tab handle */)
981 654
982 IPC_MESSAGE_CONTROL1(AutomationMsg_ReloadAsync, 655 IPC_MESSAGE_CONTROL1(AutomationMsg_ReloadAsync,
983 int /* tab handle */) 656 int /* tab handle */)
984 657
985 IPC_MESSAGE_CONTROL1(AutomationMsg_StopAsync, 658 IPC_MESSAGE_CONTROL1(AutomationMsg_StopAsync,
986 int /* tab handle */) 659 int /* tab handle */)
987 660
988 // Returns the number of times a filter was used to service an URL request.
989 // See AutomationMsg_SetFilteredInet.
990 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_DEPRECATED_GetFilteredInetHitCount,
991 int /* hit_count */)
992
993 // Is the browser in fullscreen mode?
994 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_IsFullscreen,
995 int /* browser_handle */,
996 bool /* is_fullscreen */)
997
998 // Is the fullscreen bubble visible?
999 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_IsFullscreenBubbleVisible,
1000 int /* browser_handle */,
1001 bool /* is_visible */)
1002
1003 // This message notifies the AutomationProvider to navigate to a specified 661 // This message notifies the AutomationProvider to navigate to a specified
1004 // url in the tab with given handle. The first parameter is the handle to 662 // url in the tab with given handle. The first parameter is the handle to
1005 // the tab resource. The second parameter is the target url. The third 663 // the tab resource. The second parameter is the target url. The third
1006 // parameter is the number of navigations that are required for a successful 664 // parameter is the number of navigations that are required for a successful
1007 // return value. See AutomationMsg_NavigationResponseValues for the return 665 // return value. See AutomationMsg_NavigationResponseValues for the return
1008 // value. 666 // value.
1009 IPC_SYNC_MESSAGE_CONTROL3_1( 667 IPC_SYNC_MESSAGE_CONTROL3_1(
1010 AutomationMsg_NavigateToURLBlockUntilNavigationsComplete, 668 AutomationMsg_NavigateToURLBlockUntilNavigationsComplete,
1011 int, 669 int,
1012 GURL, 670 GURL,
(...skipping 14 matching lines...) Expand all
1027 // This message requests the provider to wait until the window count 685 // This message requests the provider to wait until the window count
1028 // reached the specified value. 686 // reached the specified value.
1029 // Request: 687 // Request:
1030 // - int: target browser window count 688 // - int: target browser window count
1031 // Response: 689 // Response:
1032 // - bool: whether the operation was successful. 690 // - bool: whether the operation was successful.
1033 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_WaitForBrowserWindowCountToBecome, 691 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_WaitForBrowserWindowCountToBecome,
1034 int, 692 int,
1035 bool) 693 bool)
1036 694
1037 // This message requests the provider to wait until an application modal
1038 // dialog is shown.
1039 // Response:
1040 // - bool: whether the operation was successful
1041 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_DEPRECATED_WaitForAppModalDialogToBeSh own,
1042 bool)
1043
1044 // This message notifies the AutomationProvider to navigate back in session 695 // This message notifies the AutomationProvider to navigate back in session
1045 // history in the tab with given handle. The first parameter is the handle 696 // history in the tab with given handle. The first parameter is the handle
1046 // to the tab resource. The second parameter is the number of navigations the 697 // to the tab resource. The second parameter is the number of navigations the
1047 // provider will wait for. 698 // provider will wait for.
1048 // See AutomationMsg_NavigationResponseValues for the navigation response 699 // See AutomationMsg_NavigationResponseValues for the navigation response
1049 // values. 700 // values.
1050 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_GoBackBlockUntilNavigationsComplete, 701 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_GoBackBlockUntilNavigationsComplete,
1051 int, 702 int,
1052 int, 703 int,
1053 AutomationMsg_NavigationResponseValues) 704 AutomationMsg_NavigationResponseValues)
1054 705
1055 // This message notifies the AutomationProvider to navigate forward in session 706 // This message notifies the AutomationProvider to navigate forward in session
1056 // history in the tab with given handle. The first parameter is the handle 707 // history in the tab with given handle. The first parameter is the handle
1057 // to the tab resource. The second parameter is the number of navigations 708 // to the tab resource. The second parameter is the number of navigations
1058 // the provider will wait for. 709 // the provider will wait for.
1059 // See AutomationMsg_NavigationResponseValues for the navigation response 710 // See AutomationMsg_NavigationResponseValues for the navigation response
1060 // values. 711 // values.
1061 IPC_SYNC_MESSAGE_CONTROL2_1( 712 IPC_SYNC_MESSAGE_CONTROL2_1(
1062 AutomationMsg_GoForwardBlockUntilNavigationsComplete, 713 AutomationMsg_GoForwardBlockUntilNavigationsComplete,
1063 int, 714 int,
1064 int, 715 int,
1065 AutomationMsg_NavigationResponseValues) 716 AutomationMsg_NavigationResponseValues)
1066 717
1067 // This message is used by automation clients to upload histogram data to the
1068 // browser process.
1069 IPC_MESSAGE_CONTROL1(AutomationMsg_DEPRECATED_RecordHistograms,
1070 std::vector<std::string> /* histogram_list */)
1071
1072 IPC_MESSAGE_ROUTED1(AutomationMsg_AttachExternalTab, 718 IPC_MESSAGE_ROUTED1(AutomationMsg_AttachExternalTab,
1073 AttachExternalTabParams) 719 AttachExternalTabParams)
1074 720
1075 // Sent when the automation client connects to an existing tab. 721 // Sent when the automation client connects to an existing tab.
1076 IPC_SYNC_MESSAGE_CONTROL3_4(AutomationMsg_ConnectExternalTab, 722 IPC_SYNC_MESSAGE_CONTROL3_4(AutomationMsg_ConnectExternalTab,
1077 uint64 /* cookie */, 723 uint64 /* cookie */,
1078 bool /* allow/block tab*/, 724 bool /* allow/block tab*/,
1079 gfx::NativeWindow /* parent window */, 725 gfx::NativeWindow /* parent window */,
1080 gfx::NativeWindow /* Tab container window */, 726 gfx::NativeWindow /* Tab container window */,
1081 gfx::NativeWindow /* Tab window */, 727 gfx::NativeWindow /* Tab window */,
1082 int /* Handle to the new tab */, 728 int /* Handle to the new tab */,
1083 int /* Session Id of the new tab */) 729 int /* Session Id of the new tab */)
1084 730
1085 // This message gets the bounds of the window.
1086 // Request:
1087 // int - the handle of the window to query
1088 // Response:
1089 // gfx::Rect - the bounds of the window
1090 // bool - true if the query was successful
1091 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_DEPRECATED_GetWindowBounds,
1092 int,
1093 gfx::Rect,
1094 bool)
1095
1096 // Simulate an end of session. Normally this happens when the user 731 // Simulate an end of session. Normally this happens when the user
1097 // shuts down the machine or logs off. 732 // shuts down the machine or logs off.
1098 // Request: 733 // Request:
1099 // int - the handle of the browser 734 // int - the handle of the browser
1100 // Response: 735 // Response:
1101 // bool - true if succesful 736 // bool - true if succesful
1102 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_TerminateSession, 737 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_TerminateSession,
1103 int, 738 int,
1104 bool) 739 bool)
1105 740
1106 // Returns whether the window is maximized.
1107 // Request:
1108 // int - the handle of the window
1109 // Response:
1110 // bool - true if the window is maximized
1111 // bool - true if query is successful
1112 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_DEPRECATED_IsWindowMaximized,
1113 int,
1114 bool,
1115 bool)
1116
1117 IPC_MESSAGE_CONTROL2(AutomationMsg_SetPageFontSize, 741 IPC_MESSAGE_CONTROL2(AutomationMsg_SetPageFontSize,
1118 int /* tab_handle */, 742 int /* tab_handle */,
1119 int /* The font size */) 743 int /* The font size */)
1120 744
1121 // Returns a metric event duration that was last recorded. Returns -1 if the 745 // Returns a metric event duration that was last recorded. Returns -1 if the
1122 // event hasn't occurred yet. 746 // event hasn't occurred yet.
1123 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_GetMetricEventDuration, 747 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_GetMetricEventDuration,
1124 std::string /* event_name */, 748 std::string /* event_name */,
1125 int /* duration ms */) 749 int /* duration ms */)
1126 750
1127 // Sent by automation provider - go to history entry via automation. 751 // Sent by automation provider - go to history entry via automation.
1128 IPC_MESSAGE_ROUTED1(AutomationMsg_RequestGoToHistoryEntryOffset, 752 IPC_MESSAGE_ROUTED1(AutomationMsg_RequestGoToHistoryEntryOffset,
1129 int) // numbers of entries (negative or positive) 753 int) // numbers of entries (negative or positive)
1130 754
1131 // DEPRECATED MESSAGE.
1132 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_InstallExtension,
1133 FilePath /* full path to crx file */,
1134 int)
1135
1136 // DEPRECATED MESSAGE - But we must leave this comment and message so as
1137 // not to perturb line numbers (see comment at top of file re __LINE__).
1138 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_MessageTwo,
1139 int,
1140 int)
1141
1142 // DEPRECATED MESSAGE - But we must leave this comment and message so as
1143 // not to perturb line numbers (see comment at top of file re __LINE__).
1144 // (intentionally blank line)
1145 // (intentionally blank line)
1146 // (intentionally blank line)
1147 // (intentionally blank line)
1148 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_DEPRECATED_MessageThree,
1149 int)
1150
1151 // This message requests the type of the window with the given handle. The 755 // This message requests the type of the window with the given handle. The
1152 // return value contains the type (Browser::Type), or -1 if the request 756 // return value contains the type (Browser::Type), or -1 if the request
1153 // failed. 757 // failed.
1154 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_Type, 758 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_Type,
1155 int, 759 int,
1156 int) 760 int)
1157 761
1158 // Opens a new browser window of a specific type. 762 // Opens a new browser window of a specific type.
1159 IPC_SYNC_MESSAGE_CONTROL2_0(AutomationMsg_OpenNewBrowserWindowOfType, 763 IPC_SYNC_MESSAGE_CONTROL2_0(AutomationMsg_OpenNewBrowserWindowOfType,
1160 int /* Type (Browser::Type) */, 764 int /* Type (Browser::Type) */,
1161 bool /* show */ ) 765 bool /* show */ )
1162 766
1163 // This message requests that the mouse be moved to this location, in 767 // This message requests that the mouse be moved to this location, in
1164 // window coordinate space. 768 // window coordinate space.
1165 // Request: 769 // Request:
1166 // int - the handle of the window that's the context for this click 770 // int - the handle of the window that's the context for this click
1167 // gfx::Point - the location to move to 771 // gfx::Point - the location to move to
1168 IPC_MESSAGE_CONTROL2(AutomationMsg_WindowMouseMove, 772 IPC_MESSAGE_CONTROL2(AutomationMsg_WindowMouseMove,
1169 int, 773 int,
1170 gfx::Point) 774 gfx::Point)
1171 775
1172 // Called when requests should be downloaded using a host browser's 776 // Called when requests should be downloaded using a host browser's
1173 // download mechanism when chrome is being embedded. 777 // download mechanism when chrome is being embedded.
1174 IPC_MESSAGE_ROUTED1(AutomationMsg_DownloadRequestInHost, 778 IPC_MESSAGE_ROUTED1(AutomationMsg_DownloadRequestInHost,
1175 int /* request_id */) 779 int /* request_id */)
1176 780
1177 // Shuts down the session service for the browser identified by
1178 // |browser_handle|. On success |result| is set to true.
1179 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_ShutdownSessionService,
1180 int /* browser_handle */,
1181 bool /* result */)
1182
1183 IPC_MESSAGE_CONTROL1(AutomationMsg_SaveAsAsync, 781 IPC_MESSAGE_CONTROL1(AutomationMsg_SaveAsAsync,
1184 int /* tab handle */) 782 int /* tab handle */)
1185 783
1186 #if defined(OS_WIN) 784 #if defined(OS_WIN)
1187 // An incoming message from an automation host to Chrome. Signals that 785 // An incoming message from an automation host to Chrome. Signals that
1188 // the browser containing |tab_handle| has moved. 786 // the browser containing |tab_handle| has moved.
1189 IPC_MESSAGE_CONTROL1(AutomationMsg_BrowserMove, 787 IPC_MESSAGE_CONTROL1(AutomationMsg_BrowserMove,
1190 int /* tab handle */) 788 int /* tab handle */)
1191 #endif 789 #endif
1192 790
1193 // Used to get cookies for the given URL. 791 // Used to get cookies for the given URL.
1194 IPC_MESSAGE_ROUTED2(AutomationMsg_GetCookiesFromHost, 792 IPC_MESSAGE_ROUTED2(AutomationMsg_GetCookiesFromHost,
1195 GURL /* url */, 793 GURL /* url */,
1196 int /* opaque_cookie_id */) 794 int /* opaque_cookie_id */)
1197 795
1198 IPC_MESSAGE_CONTROL5(AutomationMsg_GetCookiesHostResponse, 796 IPC_MESSAGE_CONTROL5(AutomationMsg_GetCookiesHostResponse,
1199 int /* tab_handle */, 797 int /* tab_handle */,
1200 bool /* success */, 798 bool /* success */,
1201 GURL /* url */, 799 GURL /* url */,
1202 std::string /* cookies */, 800 std::string /* cookies */,
1203 int /* opaque_cookie_id */) 801 int /* opaque_cookie_id */)
1204 802
1205 // If the given host is empty, then the default content settings are
1206 // modified.
1207 IPC_SYNC_MESSAGE_CONTROL4_1(AutomationMsg_DEPRECATED_SetContentSetting,
1208 int /* browser handle */,
1209 std::string /* host */,
1210 ContentSettingsType /* content type */,
1211 ContentSetting /* setting */,
1212 bool /* success */)
1213
1214 #if defined(OS_CHROMEOS)
1215 // Logs in through the browser's login wizard if available.
1216 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_DEPRECATED_LoginWithUserAndPass,
1217 std::string /* username*/,
1218 std::string /* password*/,
1219 bool /* Whether successful*/)
1220 #endif
1221
1222 // Return the bookmarks encoded as a JSON string. 803 // Return the bookmarks encoded as a JSON string.
1223 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_GetBookmarksAsJSON, 804 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_GetBookmarksAsJSON,
1224 int /* browser_handle */, 805 int /* browser_handle */,
1225 std::string /* bookmarks as a JSON string */, 806 std::string /* bookmarks as a JSON string */,
1226 bool /* success */) 807 bool /* success */)
1227 808
1228 // Wait for the bookmark model to load. 809 // Wait for the bookmark model to load.
1229 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_WaitForBookmarkModelToLoad, 810 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_WaitForBookmarkModelToLoad,
1230 int /* browser_handle */, 811 int /* browser_handle */,
1231 bool /* success */) 812 bool /* success */)
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
1266 int64 /* id */, 847 int64 /* id */,
1267 bool /* success */) 848 bool /* success */)
1268 849
1269 // This message informs the browser process to remove the history entries 850 // This message informs the browser process to remove the history entries
1270 // for the specified types across all time ranges. See 851 // for the specified types across all time ranges. See
1271 // browsing_data_remover.h for a list of REMOVE_* types supported in the 852 // browsing_data_remover.h for a list of REMOVE_* types supported in the
1272 // remove_mask parameter. 853 // remove_mask parameter.
1273 IPC_MESSAGE_CONTROL1(AutomationMsg_RemoveBrowsingData, 854 IPC_MESSAGE_CONTROL1(AutomationMsg_RemoveBrowsingData,
1274 int) 855 int)
1275 856
1276 // Block until the focused view id changes to something other than
1277 // |previous_view_id|.
1278 IPC_SYNC_MESSAGE_CONTROL2_2(AutomationMsg_DEPRECATED_WaitForFocusedViewIDToChang e,
1279 int /* window handle */,
1280 int /* previous_view_id */,
1281 bool /* success */,
1282 int /* new_view_id */)
1283
1284 // To avoid race conditions, waiting until a popup menu opens is a
1285 // three-step process:
1286 // 1. Call StartTrackingPopupMenus.
1287 // 2. Call an automation method that results in opening the popup menu.
1288 // 3. Call WaitForPopupMenuToOpen and check for success.
1289 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_StartTrackingPopupMenus,
1290 int /* browser handle */,
1291 bool /* success */)
1292 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_DEPRECATED_WaitForPopupMenuToOpen,
1293 bool /* success */)
1294
1295 // Generic pyauto pattern to help avoid future addition of 857 // Generic pyauto pattern to help avoid future addition of
1296 // automation messages. 858 // automation messages.
1297 IPC_SYNC_MESSAGE_CONTROL2_2(AutomationMsg_SendJSONRequest, 859 IPC_SYNC_MESSAGE_CONTROL2_2(AutomationMsg_SendJSONRequest,
1298 int /* browser_handle */, 860 int /* browser_handle */,
1299 std::string /* JSON request */, 861 std::string /* JSON request */,
1300 std::string /* JSON response */, 862 std::string /* JSON response */,
1301 bool /* success */) 863 bool /* success */)
1302 864
1303 // Installs an extension from a crx file or unpacked extension folder
1304 // and returns its id. On error, |extension handle| will be 0.
1305 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_DEPRECATED2_InstallExtension,
1306 FilePath /* full path to crx or unpacked dir */,
1307 bool /* with UI */,
1308 int /* extension handle */)
1309
1310 // Waits for the next extension test result. Sets |test result| as the
1311 // received result and |message| as any accompanying message with the
1312 // result, which could be the empty string.
1313 IPC_SYNC_MESSAGE_CONTROL0_2(AutomationMsg_DEPRECATED_WaitForExtensionTestResult,
1314 bool /* test result */,
1315 std::string /* message */)
1316
1317 // Uninstalls an extension. On success |success| is true.
1318 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_UninstallExtension,
1319 int /* extension handle */,
1320 bool /* success */)
1321
1322 // Enables an extension. On success |success| is true.
1323 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_EnableExtension,
1324 int /* extension handle */,
1325 bool /* success */)
1326
1327 // Disables an extension. On success |success| is true.
1328 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_DisableExtension,
1329 int /* extension handle */,
1330 bool /* success */)
1331
1332 // Executes the action associated with the given extension. This executes
1333 // the extension's page or browser action in the given browser, but does
1334 // not open popups. On success |success| is true.
1335 IPC_SYNC_MESSAGE_CONTROL2_1(
1336 AutomationMsg_DEPRECATED_ExecuteExtensionActionInActiveTabAsync,
1337 int /* extension handle */,
1338 int /* browser handle */,
1339 bool /* success */)
1340
1341 // Moves the browser action to the given index in the browser action toolbar.
1342 // On success |success| is true.
1343 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_DEPRECATED_MoveExtensionBrowserAction,
1344 int /* extension handle */,
1345 int /* index */,
1346 bool /* success */)
1347
1348 // Gets an extension property |property type|. On success |success| is true,
1349 // and |property value| is set.
1350 IPC_SYNC_MESSAGE_CONTROL2_2(AutomationMsg_DEPRECATED_GetExtensionProperty,
1351 int /* extension handle */,
1352 AutomationMsg_DEPRECATED_ExtensionProperty /* property type */,
1353 bool /* success */,
1354 std::string /* property value */)
1355
1356 // Resets to the default theme. 865 // Resets to the default theme.
1357 IPC_SYNC_MESSAGE_CONTROL0_0(AutomationMsg_ResetToDefaultTheme) 866 IPC_SYNC_MESSAGE_CONTROL0_0(AutomationMsg_ResetToDefaultTheme)
1358 867
1359 // Navigates asynchronously to a URL with a certain disposition,
1360 // like in a new tab.
1361 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_DEPRECATED_NavigationAsyncWithDisposit ion,
1362 int /* tab handle */,
1363 GURL,
1364 WindowOpenDisposition,
1365 bool /* result */)
1366
1367
1368 // This message requests the cookie be deleted for given url in the
1369 // profile of the tab identified by the first parameter. The second
1370 // parameter is the cookie name.
1371 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_DEPRECATED_DeleteCookie,
1372 GURL,
1373 std::string,
1374 int /* tab handle */,
1375 bool /* result */)
1376
1377 // This message triggers the collected cookies dialog for a specific tab.
1378 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_ShowCollectedCookiesDialog,
1379 int /* tab handle */,
1380 bool /* result */)
1381
1382 // This message requests the external tab identified by the tab handle 868 // This message requests the external tab identified by the tab handle
1383 // passed in be closed. 869 // passed in be closed.
1384 // Request: 870 // Request:
1385 // Response: 871 // Response:
1386 // None expected 872 // None expected
1387 IPC_MESSAGE_ROUTED0(AutomationMsg_CloseExternalTab) 873 IPC_MESSAGE_ROUTED0(AutomationMsg_CloseExternalTab)
1388 874
1389 // This message requests that the external tab identified by the tab handle 875 // This message requests that the external tab identified by the tab handle
1390 // runs unload handlers if any on the current page. 876 // runs unload handlers if any on the current page.
1391 // Request: 877 // Request:
(...skipping 18 matching lines...) Expand all
1410 int /* browser handle */, 896 int /* browser handle */,
1411 int /* target tab count */, 897 int /* target tab count */,
1412 bool /* success */) 898 bool /* success */)
1413 899
1414 // Waits for the infobar count to reach given number. 900 // Waits for the infobar count to reach given number.
1415 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_WaitForInfoBarCount, 901 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_WaitForInfoBarCount,
1416 int /* tab handle */, 902 int /* tab handle */,
1417 size_t /* target count */, 903 size_t /* target count */,
1418 bool /* success */) 904 bool /* success */)
1419 905
1420 // TODO(phajdan.jr): Remove this message.
1421 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_WaitForAutocompleteEditFocu s,
1422 int /* autocomplete edit handle */,
1423 bool /* success */)
1424
1425 // Loads all blocked plug-ins on the page.
1426 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_LoadBlockedPlugins,
1427 int /* tab handle */,
1428 bool /* success */)
1429
1430 // TODO(phajdan.jr): Remove this message.
1431 // Captures the entire page for the tab, including those portions not in
1432 // view, and saves the image as a PNG in the given file location.
1433 // This message is deprecated, use the JSON testing interface for
1434 // similar functionality.
1435 // Request:
1436 // -int: Tab handle
1437 // -FilePath: Path to save the captured image to
1438 // Response:
1439 // -bool: Whether the method succeeded
1440 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_DEPRECATED_CaptureEntirePageAsPNG,
1441 int,
1442 FilePath,
1443 bool)
1444
1445 // Notify the JavaScript engine in the render to change its parameters 906 // Notify the JavaScript engine in the render to change its parameters
1446 // while performing stress testing. 907 // while performing stress testing.
1447 IPC_MESSAGE_CONTROL3(AutomationMsg_JavaScriptStressTestControl, 908 IPC_MESSAGE_CONTROL3(AutomationMsg_JavaScriptStressTestControl,
1448 int /* tab handle */, 909 int /* tab handle */,
1449 int /* command */, 910 int /* command */,
1450 int /* type or run */) 911 int /* type or run */)
1451 912
1452 // This message posts a task to the PROCESS_LAUNCHER thread. Once processed 913 // This message posts a task to the PROCESS_LAUNCHER thread. Once processed
1453 // the response is sent back. This is useful when you want to make sure all 914 // the response is sent back. This is useful when you want to make sure all
1454 // changes to the number of processes have completed. 915 // changes to the number of processes have completed.
1455 IPC_SYNC_MESSAGE_CONTROL0_0(AutomationMsg_WaitForProcessLauncherThreadToGoIdle) 916 IPC_SYNC_MESSAGE_CONTROL0_0(AutomationMsg_WaitForProcessLauncherThreadToGoIdle)
1456 917
1457 // Gets a handle of the browser that owns the given tab.
1458 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_DEPRECATED_GetParentBrowserOfTab,
1459 int /* tab handle */,
1460 int /* browser handle */,
1461 bool /* success */)
1462
1463 // This message is an outgoing message from Chrome to an external host. 918 // This message is an outgoing message from Chrome to an external host.
1464 // It is a notification that a popup window position or dimentions have 919 // It is a notification that a popup window position or dimentions have
1465 // changed 920 // changed
1466 // Request: 921 // Request:
1467 // gfx::Rect - the bounds of the window 922 // gfx::Rect - the bounds of the window
1468 // Response: 923 // Response:
1469 // None expected 924 // None expected
1470 IPC_MESSAGE_ROUTED1(AutomationMsg_MoveWindow, 925 IPC_MESSAGE_ROUTED1(AutomationMsg_MoveWindow,
1471 gfx::Rect /* window position and dimentions */) 926 gfx::Rect /* window position and dimentions */)
1472 927
1473 // Is the browser in application mode?
1474 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_DEPRECATED_IsBrowserInApplicationMode,
1475 int /* browser_handle */,
1476 bool /* is_application */,
1477 bool /* success */)
1478
1479 // Call BeginTracing on the browser TraceController. This will tell all 928 // Call BeginTracing on the browser TraceController. This will tell all
1480 // processes to start collecting trace events via base/debug/trace_event.h. 929 // processes to start collecting trace events via base/debug/trace_event.h.
1481 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_BeginTracing, 930 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_BeginTracing,
1482 std::string /* categories */, 931 std::string /* categories */,
1483 bool /* success */) 932 bool /* success */)
1484 933
1485 // End tracing (called after BeginTracing). This blocks until tracing has 934 // End tracing (called after BeginTracing). This blocks until tracing has
1486 // stopped on all processes and all the events are ready to be retrieved. 935 // stopped on all processes and all the events are ready to be retrieved.
1487 IPC_SYNC_MESSAGE_CONTROL0_2(AutomationMsg_EndTracing, 936 IPC_SYNC_MESSAGE_CONTROL0_2(AutomationMsg_EndTracing,
1488 size_t /* num_trace_chunks */, 937 size_t /* num_trace_chunks */,
1489 bool /* success */) 938 bool /* success */)
1490 939
1491 // Retrieve trace event data (called after EndTracing). Must call exactly 940 // Retrieve trace event data (called after EndTracing). Must call exactly
1492 // |num_trace_chunks| times. 941 // |num_trace_chunks| times.
1493 // TODO(jbates): See bug 100255, IPC send fails if message is too big. This 942 // TODO(jbates): See bug 100255, IPC send fails if message is too big. This
1494 // code can be removed if that limitation is fixed. 943 // code can be removed if that limitation is fixed.
1495 IPC_SYNC_MESSAGE_CONTROL0_2(AutomationMsg_GetTracingOutput, 944 IPC_SYNC_MESSAGE_CONTROL0_2(AutomationMsg_GetTracingOutput,
1496 std::string /* trace_chunk */, 945 std::string /* trace_chunk */,
1497 bool /* success */) 946 bool /* success */)
1498 947
1499 // This message notifies the AutomationProvider to append a new tab to the
1500 // window with the given handle. The tab will be opened in the background
1501 // like it was middle-clicked. The return value contains the index of
1502 // the new tab, or -1 if the request failed.
1503 // The second parameter is the url to be loaded in the new tab.
1504 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_DEPRECATED_AppendBackgroundTab,
1505 int,
1506 GURL,
1507 int)
1508
1509 // Used on Mac OS X to read the number of active Mach ports used in the browser 948 // Used on Mac OS X to read the number of active Mach ports used in the browser
1510 // process. 949 // process.
1511 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_GetMachPortCount, 950 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_GetMachPortCount,
1512 int /* number of Mach ports */) 951 int /* number of Mach ports */)
1513 952
1514 // Browser -> renderer messages. 953 // Browser -> renderer messages.
1515 954
1516 // Requests a snapshot. 955 // Requests a snapshot.
1517 IPC_MESSAGE_ROUTED0(AutomationMsg_SnapshotEntirePage) 956 IPC_MESSAGE_ROUTED0(AutomationMsg_SnapshotEntirePage)
1518 957
(...skipping 19 matching lines...) Expand all
1538 // Sent when the renderer has completed or canceled a client redirect for a 977 // Sent when the renderer has completed or canceled a client redirect for a
1539 // particular frame. This message may be sent multiple times for the same 978 // particular frame. This message may be sent multiple times for the same
1540 // redirect. 979 // redirect.
1541 IPC_MESSAGE_ROUTED1(AutomationMsg_DidCompleteOrCancelClientRedirect, 980 IPC_MESSAGE_ROUTED1(AutomationMsg_DidCompleteOrCancelClientRedirect,
1542 int64 /* frame_id */) 981 int64 /* frame_id */)
1543 982
1544 // YOUR NEW MESSAGE MIGHT NOT BELONG HERE. 983 // YOUR NEW MESSAGE MIGHT NOT BELONG HERE.
1545 // This is the section for renderer -> browser automation messages. If it is 984 // This is the section for renderer -> browser automation messages. If it is
1546 // an automation <-> browser message, put it above this section. The "no line 985 // an automation <-> browser message, put it above this section. The "no line
1547 // number change" applies only to the automation <-> browser messages. 986 // number change" applies only to the automation <-> browser messages.
OLDNEW
« no previous file with comments | « chrome/common/automation_messages.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698