OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Defines the IPC messages used by the automation interface. | 5 // Defines the IPC messages used by the automation interface. |
6 | 6 |
7 // NOTE: All IPC messages have either a routing_id of 0 (for asynchronous | 7 // NOTE: All IPC messages have either a routing_id of 0 (for asynchronous |
8 // messages), or one that's been assigned by the proxy (for calls | 8 // messages), or one that's been assigned by the proxy (for calls |
9 // which expect a response). The routing_id shouldn't be used for | 9 // which expect a response). The routing_id shouldn't be used for |
10 // any other purpose in these message types. | 10 // any other purpose in these message types. |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 execution */) | 202 execution */) |
203 | 203 |
204 // Is the Download Shelf visible for the specified browser? | 204 // Is the Download Shelf visible for the specified browser? |
205 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_ShelfVisibility, | 205 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_ShelfVisibility, |
206 int /* browser_handle */, | 206 int /* browser_handle */, |
207 bool /* is_visible */) | 207 bool /* is_visible */) |
208 | 208 |
209 // 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 |
210 // the given handle. The return value contains the number of constrained | 210 // the given handle. The return value contains the number of constrained |
211 // windows, or -1 if the request failed. | 211 // windows, or -1 if the request failed. |
212 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_ConstrainedWindowCount, | 212 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_ConstrainedWindowCount, |
213 int /* tab_handle */, | 213 int /* tab_handle */, |
214 int /* constrained_window_count */) | 214 int /* constrained_window_count */) |
215 | 215 |
216 // This message requests the bounds of the specified View element in | 216 // This message requests the bounds of the specified View element in |
217 // window coordinates. | 217 // window coordinates. |
218 // Request: | 218 // Request: |
219 // int - the handle of the window in which the view appears | 219 // 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 | 220 // 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 | 221 // bool - whether the bounds should be returned in the screen coordinates |
222 // (if true) or in the browser coordinates (if false). | 222 // (if true) or in the browser coordinates (if false). |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 bool) | 261 bool) |
262 | 262 |
263 // Similar to AutomationMsg_InitialLoadsComplete, this indicates that the | 263 // Similar to AutomationMsg_InitialLoadsComplete, this indicates that the |
264 // new tab ui has completed the initial load of its data. | 264 // new tab ui has completed the initial load of its data. |
265 // Time is how many milliseconds the load took. | 265 // Time is how many milliseconds the load took. |
266 IPC_MESSAGE_CONTROL1(AutomationMsg_InitialNewTabUILoadComplete, | 266 IPC_MESSAGE_CONTROL1(AutomationMsg_InitialNewTabUILoadComplete, |
267 int /* time */) | 267 int /* time */) |
268 | 268 |
269 // 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 |
270 // contains the number of resources loaded by the inspector controller. | 270 // contains the number of resources loaded by the inspector controller. |
271 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_InspectElement, | 271 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_DEPRECATED_InspectElement, |
272 int, /* tab_handle */ | 272 int, /* tab_handle */ |
273 int, /* x */ | 273 int, /* x */ |
274 int /* y */, | 274 int /* y */, |
275 int) | 275 int) |
276 | 276 |
277 // This message requests the process ID of the tab that corresponds | 277 // This message requests the process ID of the tab that corresponds |
278 // to the given automation handle. | 278 // to the given automation handle. |
279 // 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 |
280 // 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. |
281 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_TabProcessID, | 281 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_TabProcessID, |
282 int /* tab_handle */, | 282 int /* tab_handle */, |
283 int /* process ID */) | 283 int /* process ID */) |
284 | 284 |
285 // 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. |
286 IPC_MESSAGE_CONTROL1(AutomationMsg_SetFilteredInet, | 286 IPC_MESSAGE_CONTROL1(AutomationMsg_SetFilteredInet, |
287 bool /* enabled */) | 287 bool /* enabled */) |
288 | 288 |
289 // 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. |
290 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DownloadDirectory, | 290 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DownloadDirectory, |
291 int /* tab_handle */, | 291 int /* tab_handle */, |
292 FilePath /* directory */) | 292 FilePath /* directory */) |
293 | 293 |
294 // 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 |
295 // 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 |
296 // window should either be a ViewWindow or a Browser. | 296 // window should either be a ViewWindow or a Browser. |
297 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_GetFocusedViewID, | 297 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_GetFocusedViewID, |
298 int /* view_handle */, | 298 int /* view_handle */, |
299 int /* focused_view_id */) | 299 int /* focused_view_id */) |
300 | 300 |
301 // This message shows/hides the window. | 301 // This message shows/hides the window. |
302 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_SetWindowVisible, | 302 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_DEPRECATED_SetWindowVisible, |
303 int /* view_handle */, | 303 int /* view_handle */, |
304 bool /* visible */, | 304 bool /* visible */, |
305 bool /* success */) | 305 bool /* success */) |
306 | 306 |
307 // Gets the active status of a window. | 307 // Gets the active status of a window. |
308 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_IsWindowActive, | 308 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_DEPRECATED_IsWindowActive, |
309 int /* view_handle */, | 309 int /* view_handle */, |
310 bool /* success */, | 310 bool /* success */, |
311 bool /* active */) | 311 bool /* active */) |
312 | 312 |
313 // Makes the specified window the active window. | 313 // Makes the specified window the active window. |
314 IPC_SYNC_MESSAGE_CONTROL1_0(AutomationMsg_ActivateWindow, | 314 IPC_SYNC_MESSAGE_CONTROL1_0(AutomationMsg_DEPRECATED_ActivateWindow, |
315 int /* view_handle */) | 315 int /* view_handle */) |
316 | 316 |
317 // Opens a new browser window. | 317 // Opens a new browser window. |
318 // TODO(sky): remove this and replace with OpenNewBrowserWindowOfType. | 318 // TODO(sky): remove this and replace with OpenNewBrowserWindowOfType. |
319 // Doing this requires updating the reference build. | 319 // Doing this requires updating the reference build. |
320 IPC_SYNC_MESSAGE_CONTROL1_0(AutomationMsg_OpenNewBrowserWindow, | 320 IPC_SYNC_MESSAGE_CONTROL1_0(AutomationMsg_OpenNewBrowserWindow, |
321 bool /* show */ ) | 321 bool /* show */ ) |
322 | 322 |
323 // This message requests the handle (int64 app-unique identifier) of the | 323 // This message requests the handle (int64 app-unique identifier) of the |
324 // 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. |
325 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_ActiveWindow, | 325 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_ActiveWindow, |
326 int) | 326 int) |
327 | 327 |
328 // This message requests the browser associated with the specified window | 328 // This message requests the browser associated with the specified window |
329 // handle. | 329 // handle. |
330 // 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. |
331 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_BrowserForWindow, | 331 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_DEPRECATED_BrowserForWindow, |
332 int /* window handle */, | 332 int /* window handle */, |
333 bool /* success flag */, | 333 bool /* success flag */, |
334 int /* browser handle */) | 334 int /* browser handle */) |
335 | 335 |
336 // This message requests the window associated with the specified browser | 336 // This message requests the window associated with the specified browser |
337 // handle. | 337 // handle. |
338 // 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. |
339 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_WindowForBrowser, | 339 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_WindowForBrowser, |
340 int /* browser handle */, | 340 int /* browser handle */, |
341 bool /* success flag */, | 341 bool /* success flag */, |
342 int /* window handle */) | 342 int /* window handle */) |
343 | 343 |
344 // TODO(phajdan.jr): Remove when the reference build is updated (this and | 344 // TODO(phajdan.jr): Remove when the reference build is updated (this and |
345 // all others marked "DEPRECATED MESSAGE"). | 345 // all others marked "DEPRECATED MESSAGE"). |
346 // (intentionally blank line) | 346 // (intentionally blank line) |
347 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_DEPRECATED_AutocompleteEditForBrowser, | 347 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_DEPRECATED_AutocompleteEditForBrowser, |
348 int /* browser handle */, | 348 int /* browser handle */, |
349 bool /* success flag */, | 349 bool /* success flag */, |
350 int /* AutocompleteEdit handle */) | 350 int /* AutocompleteEdit handle */) |
351 | 351 |
352 // 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 |
353 // space. | 353 // space. |
354 // Request: | 354 // Request: |
355 // 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 |
356 // gfx::Point - the point to click | 356 // gfx::Point - the point to click |
357 // 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 |
358 // defined in chrome/views/event.h | 358 // defined in chrome/views/event.h |
359 IPC_MESSAGE_CONTROL3(AutomationMsg_WindowClick, | 359 IPC_MESSAGE_CONTROL3(AutomationMsg_DEPRECATED_WindowClick, |
360 int, | 360 int, |
361 gfx::Point, | 361 gfx::Point, |
362 int) | 362 int) |
363 | 363 |
364 // This message requests that a key press be performed. | 364 // This message requests that a key press be performed. |
365 // Request: | 365 // Request: |
366 // 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 |
367 // int - the ui::KeyboardCode of the key that was pressed. | 367 // int - the ui::KeyboardCode of the key that was pressed. |
368 // int - the flags which identify the modifiers (shift, ctrl, alt) | 368 // int - the flags which identify the modifiers (shift, ctrl, alt) |
369 // associated for, as defined in chrome/views/event.h | 369 // associated for, as defined in chrome/views/event.h |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 // Response: | 414 // Response: |
415 // None expected | 415 // None expected |
416 IPC_MESSAGE_ROUTED1(AutomationMsg_UpdateTargetUrl, | 416 IPC_MESSAGE_ROUTED1(AutomationMsg_UpdateTargetUrl, |
417 std::wstring) | 417 std::wstring) |
418 | 418 |
419 // This message notifies the AutomationProvider to show the specified html | 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 | 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 | 421 // parameter is the handle to the tab resource. The second parameter is the |
422 // html text to be displayed. | 422 // html text to be displayed. |
423 // The return value contains a success flag. | 423 // The return value contains a success flag. |
424 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_ShowInterstitialPage, | 424 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_DEPRECATED_ShowInterstitialPage, |
425 int, | 425 int, |
426 std::string, | 426 std::string, |
427 AutomationMsg_NavigationResponseValues) | 427 AutomationMsg_NavigationResponseValues) |
428 | 428 |
429 // This message notifies the AutomationProvider to hide the current | 429 // This message notifies the AutomationProvider to hide the current |
430 // 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 |
431 // handle to the tab resource. | 431 // handle to the tab resource. |
432 // The return value contains a success flag. | 432 // The return value contains a success flag. |
433 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_HideInterstitialPage, | 433 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_HideInterstitialPage, |
434 int, | 434 int, |
435 bool) | 435 bool) |
436 | 436 |
437 // This message requests that a tab be closed. | 437 // This message requests that a tab be closed. |
438 // Request: | 438 // Request: |
439 // - int: handle of the tab to close | 439 // - int: handle of the tab to close |
440 // - 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, |
441 // otherwise the proxy only blocks until it initiates the close. | 441 // otherwise the proxy only blocks until it initiates the close. |
442 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_CloseTab, | 442 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_CloseTab, |
443 int, | 443 int, |
444 bool, | 444 bool, |
445 bool) | 445 bool) |
446 | 446 |
447 // This message requests that the browser be closed. | 447 // This message requests that the browser be closed. |
448 // Request: | 448 // Request: |
449 // - int: handle of the browser which contains the tab | 449 // - int: handle of the browser which contains the tab |
450 // Response: | 450 // Response: |
451 // - bool: whether the operation was successfull. | 451 // - bool: whether the operation was successfull. |
452 // - 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 |
453 // this was the last closed browser window). | 453 // this was the last closed browser window). |
454 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_CloseBrowser, | 454 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_CloseBrowser, |
455 int, | 455 int, |
456 bool, | 456 bool, |
457 bool) | 457 bool) |
458 | 458 |
459 IPC_MESSAGE_CONTROL1(AutomationMsg_CloseBrowserRequestAsync, | 459 IPC_MESSAGE_CONTROL1(AutomationMsg_DEPRECATED_CloseBrowserRequestAsync, |
460 int) | 460 int) |
461 | 461 |
462 #if defined(OS_WIN) | 462 #if defined(OS_WIN) |
463 // TODO(port): Port these messages. | 463 // TODO(port): Port these messages. |
464 // | 464 // |
465 // 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. |
466 // It is a request to process a keyboard accelerator. | 466 // It is a request to process a keyboard accelerator. |
467 // Request: | 467 // Request: |
468 // -MSG: The keyboard message | 468 // -MSG: The keyboard message |
469 // Response: | 469 // Response: |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
624 // success. | 624 // success. |
625 // see AutomationMsg_NavigationResponseValues for the navigation response. | 625 // see AutomationMsg_NavigationResponseValues for the navigation response. |
626 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_Reload, | 626 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_Reload, |
627 int, | 627 int, |
628 AutomationMsg_NavigationResponseValues) | 628 AutomationMsg_NavigationResponseValues) |
629 | 629 |
630 // This message requests the handle (int64 app-unique identifier) of the | 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 | 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 | 632 // active browser, or it no longer exists. Returns 0 if no browser windows |
633 // exist. | 633 // exist. |
634 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_LastActiveBrowserWindow, | 634 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_DEPRECATED_LastActiveBrowserWindow, |
635 int) | 635 int) |
636 | 636 |
637 // This message notifies the AutomationProvider to save the page with given | 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 | 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 | 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 | 640 // for saving resources. The fourth parameter is the saving type: 0 for HTML |
641 // only; 1 for complete web page. | 641 // only; 1 for complete web page. |
642 // The return value contains a bool which is true on success. | 642 // The return value contains a bool which is true on success. |
643 IPC_SYNC_MESSAGE_CONTROL4_1(AutomationMsg_SavePage, | 643 IPC_SYNC_MESSAGE_CONTROL4_1(AutomationMsg_DEPRECATED_SavePage, |
644 int, | 644 int, |
645 FilePath, | 645 FilePath, |
646 FilePath, | 646 FilePath, |
647 int, | 647 int, |
648 bool) | 648 bool) |
649 | 649 |
650 // TODO(phajdan.jr): Remove when the reference build is updated (this and | 650 // TODO(phajdan.jr): Remove when the reference build is updated (this and |
651 // all others marked "DEPRECATED MESSAGE"). | 651 // all others marked "DEPRECATED MESSAGE"). |
652 // (intentionally blank line) | 652 // (intentionally blank line) |
653 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_DEPRECATED_AutocompleteEditGetText, | 653 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_DEPRECATED_AutocompleteEditGetText, |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
732 int /* active_ordinal */, | 732 int /* active_ordinal */, |
733 int /* matches_found */) | 733 int /* matches_found */) |
734 | 734 |
735 // 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 |
736 // tab? | 736 // tab? |
737 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_FindWindowVisibility, | 737 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_FindWindowVisibility, |
738 int /* tab_handle */, | 738 int /* tab_handle */, |
739 bool /* is_visible */) | 739 bool /* is_visible */) |
740 | 740 |
741 // 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. |
742 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_FindWindowLocation, | 742 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_DEPRECATED_FindWindowLocation, |
743 int /* tab_handle */, | 743 int /* tab_handle */, |
744 int /* x */, | 744 int /* x */, |
745 int /* y */) | 745 int /* y */) |
746 | 746 |
747 // Gets the bookmark bar visibility, animating and detached states. | 747 // Gets the bookmark bar visibility, animating and detached states. |
748 // TODO(phajdan.jr): Adjust the last param when the reference build is updated. | 748 // TODO(phajdan.jr): Adjust the last param when the reference build is updated. |
749 IPC_SYNC_MESSAGE_CONTROL1_3(AutomationMsg_BookmarkBarVisibility, | 749 IPC_SYNC_MESSAGE_CONTROL1_3(AutomationMsg_BookmarkBarVisibility, |
750 int /* browser_handle */, | 750 int /* browser_handle */, |
751 bool, /* is_visible */ | 751 bool, /* is_visible */ |
752 bool, /* still_animating */ bool /* is_detached */) | 752 bool, /* still_animating */ bool /* is_detached */) |
753 | 753 |
754 // This message requests the number of related info bars opened. It | 754 // This message requests the number of related info bars opened. It |
755 // returns -1 if an error occurred. | 755 // returns -1 if an error occurred. |
756 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_GetInfoBarCount, | 756 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_GetInfoBarCount, |
757 int /* tab_handle */, | 757 int /* tab_handle */, |
758 size_t /* info bar count */) | 758 size_t /* info bar count */) |
759 | 759 |
760 // This message triggers the action associated with the "accept" button in | 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 | 761 // the info-bar at the specified index. If |wait for navigation| is true, it |
762 // won't return until a navigation has occurred. | 762 // won't return until a navigation has occurred. |
763 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_ClickInfoBarAccept, | 763 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_DEPRECATED_ClickInfoBarAccept, |
764 int /* tab_handle */, | 764 int /* tab_handle */, |
765 size_t /* info bar index */, | 765 size_t /* info bar index */, |
766 bool /* wait for navigation */, | 766 bool /* wait for navigation */, |
767 // (intentionally blank line), see comment atop file about __LINE__. | 767 // (intentionally blank line), see comment atop file about __LINE__. |
768 /* navigation result */ | 768 /* navigation result */ |
769 AutomationMsg_NavigationResponseValues) | 769 AutomationMsg_NavigationResponseValues) |
770 | 770 |
771 // 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 |
772 // tab. The value is intended to be used with WaitForNavigation. | 772 // tab. The value is intended to be used with WaitForNavigation. |
773 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_GetLastNavigationTime, | 773 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_GetLastNavigationTime, |
774 int /* tab_handle */, | 774 int /* tab_handle */, |
775 int64 /* last navigation time */) | 775 int64 /* last navigation time */) |
776 | 776 |
777 // 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 |
778 // none more recent then the time specified). | 778 // none more recent then the time specified). |
779 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_WaitForNavigation, | 779 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_DEPRECATED_WaitForNavigation, |
780 int /* tab_handle */, | 780 int /* tab_handle */, |
781 int64 /* last navigation time */, | 781 int64 /* last navigation time */, |
782 // (intentionally blank line), see comment atop file about __LINE__. | 782 // (intentionally blank line), see comment atop file about __LINE__. |
783 /* navigation result */ | 783 /* navigation result */ |
784 AutomationMsg_NavigationResponseValues) | 784 AutomationMsg_NavigationResponseValues) |
785 | 785 |
786 // This messages sets an int-value preference. | 786 // This messages sets an int-value preference. |
787 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_SetIntPreference, | 787 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_DEPRECATED_SetIntPreference, |
788 int /* browser handle */, | 788 int /* browser handle */, |
789 std::string /* pref name */, | 789 std::string /* pref name */, |
790 int /* value */, | 790 int /* value */, |
791 bool /* success */) | 791 bool /* success */) |
792 | 792 |
793 // 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 |
794 // javascript alert) and which buttons it contains. | 794 // javascript alert) and which buttons it contains. |
795 IPC_SYNC_MESSAGE_CONTROL0_2(AutomationMsg_ShowingAppModalDialog, | 795 IPC_SYNC_MESSAGE_CONTROL0_2(AutomationMsg_DEPRECATED_ShowingAppModalDialog, |
796 bool /* showing dialog */, | 796 bool /* showing dialog */, |
797 int /* view::DelegateDialog::DialogButton */) | 797 int /* view::DelegateDialog::DialogButton */) |
798 | 798 |
799 // This message triggers the specified button for the currently showing | 799 // This message triggers the specified button for the currently showing |
800 // modal dialog. | 800 // modal dialog. |
801 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_ClickAppModalDialogButton, | 801 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_ClickAppModalDialogButton, |
802 int /* view::DelegateDialog::DialogButton */, | 802 int /* view::DelegateDialog::DialogButton */, |
803 bool /* success */) | 803 bool /* success */) |
804 | 804 |
805 // This messages sets a string-value preference. | 805 // This messages sets a string-value preference. |
806 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_SetStringPreference, | 806 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_DEPRECATED_SetStringPreference, |
807 int /* browser handle */, | 807 int /* browser handle */, |
808 std::string /* pref name */, | 808 std::string /* pref name */, |
809 std::string /* pref value */, | 809 std::string /* pref value */, |
810 bool) | 810 bool) |
811 | 811 |
812 // This messages gets a boolean-value preference. | 812 // This messages gets a boolean-value preference. |
813 IPC_SYNC_MESSAGE_CONTROL2_2(AutomationMsg_GetBooleanPreference, | 813 IPC_SYNC_MESSAGE_CONTROL2_2(AutomationMsg_DEPRECATED_GetBooleanPreference, |
814 int /* browser handle */, | 814 int /* browser handle */, |
815 std::string /* pref name */, | 815 std::string /* pref name */, |
816 bool /* success */, | 816 bool /* success */, |
817 bool /* pref value */) | 817 bool /* pref value */) |
818 | 818 |
819 // This messages sets a boolean-value preference. | 819 // This messages sets a boolean-value preference. |
820 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_SetBooleanPreference, | 820 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_DEPRECATED_SetBooleanPreference, |
821 int /* browser handle */, | 821 int /* browser handle */, |
822 std::string /* pref name */, | 822 std::string /* pref name */, |
823 bool /* pref value */, | 823 bool /* pref value */, |
824 bool /* success */) | 824 bool /* success */) |
825 | 825 |
826 // 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 |
827 // web content tab. | 827 // web content tab. |
828 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_GetPageCurrentEncoding, | 828 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_GetPageCurrentEncoding, |
829 int /* tab handle */, | 829 int /* tab handle */, |
830 std::string /* current used encoding name */) | 830 std::string /* current used encoding name */) |
831 | 831 |
832 // 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 |
833 // specified web content tab. | 833 // specified web content tab. |
834 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_OverrideEncoding, | 834 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_OverrideEncoding, |
835 int /* tab handle */, | 835 int /* tab handle */, |
836 std::string /* overrided encoding name */, | 836 std::string /* overrided encoding name */, |
837 bool /* success */) | 837 bool /* success */) |
838 | 838 |
(...skipping 15 matching lines...) Expand all Loading... |
854 | 854 |
855 #if defined(OS_WIN) && !defined(USE_AURA) | 855 #if defined(OS_WIN) && !defined(USE_AURA) |
856 // 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. |
857 // It is used to reposition a chrome tab window. | 857 // It is used to reposition a chrome tab window. |
858 IPC_MESSAGE_CONTROL2(AutomationMsg_TabReposition, | 858 IPC_MESSAGE_CONTROL2(AutomationMsg_TabReposition, |
859 int /* tab handle */, | 859 int /* tab handle */, |
860 Reposition_Params /* SetWindowPos params */) | 860 Reposition_Params /* SetWindowPos params */) |
861 #endif // defined(OS_WIN) | 861 #endif // defined(OS_WIN) |
862 | 862 |
863 // Gets the title of the top level browser window. | 863 // Gets the title of the top level browser window. |
864 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_WindowTitle, | 864 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_WindowTitle, |
865 int /* automation handle */, | 865 int /* automation handle */, |
866 string16 /* title text */ ) | 866 string16 /* title text */ ) |
867 | 867 |
868 // Tab load complete | 868 // Tab load complete |
869 IPC_MESSAGE_ROUTED1(AutomationMsg_TabLoaded, | 869 IPC_MESSAGE_ROUTED1(AutomationMsg_TabLoaded, |
870 GURL) | 870 GURL) |
871 | 871 |
872 // 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. |
873 // 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. |
874 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_TabIndex, | 874 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_TabIndex, |
(...skipping 10 matching lines...) Expand all Loading... |
885 // 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 |
886 // value is the number of windows. | 886 // value is the number of windows. |
887 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_NormalBrowserWindowCount, | 887 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_NormalBrowserWindowCount, |
888 int) | 888 int) |
889 | 889 |
890 // DEPRECATED MESSAGE - But we must leave this comment and message so as | 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__). | 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 | 892 // TODO(phajdan.jr): Remove when the reference build is updated (this and |
893 // all others marked "DEPRECATED MESSAGE"). | 893 // all others marked "DEPRECATED MESSAGE"). |
894 // (intentionally blank line) | 894 // (intentionally blank line) |
895 IPC_MESSAGE_CONTROL2(AutomationMsg_DeprecatedMessageOne, | 895 IPC_MESSAGE_CONTROL2(AutomationMsg_DEPRECATED_MessageOne, |
896 // (intentionally blank line) | 896 // (intentionally blank line) |
897 int, | 897 int, |
898 // (intentionally blank line) | 898 // (intentionally blank line) |
899 // (intentionally blank line) | 899 // (intentionally blank line) |
900 // (intentionally blank line) | 900 // (intentionally blank line) |
901 // (intentionally blank line) | 901 // (intentionally blank line) |
902 int) | 902 int) |
903 | 903 |
904 // 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 |
905 // 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 |
906 // string are defined in automation_constants.h. | 906 // string are defined in automation_constants.h. |
907 IPC_MESSAGE_CONTROL1(AutomationMsg_SetProxyConfig, | 907 IPC_MESSAGE_CONTROL1(AutomationMsg_SetProxyConfig, |
908 std::string /* proxy_config_json_string */) | 908 std::string /* proxy_config_json_string */) |
909 | 909 |
910 // Sets Download Shelf visibility for the specified browser. | 910 // Sets Download Shelf visibility for the specified browser. |
911 IPC_SYNC_MESSAGE_CONTROL2_0(AutomationMsg_SetShelfVisibility, | 911 IPC_SYNC_MESSAGE_CONTROL2_0(AutomationMsg_SetShelfVisibility, |
912 int /* browser_handle */, | 912 int /* browser_handle */, |
913 bool /* is_visible */) | 913 bool /* is_visible */) |
914 | 914 |
915 // 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 |
916 // 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 |
917 // if this request failed. | 917 // if this request failed. |
918 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_BlockedPopupCount, | 918 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_BlockedPopupCount, |
919 int /* tab_handle */, | 919 int /* tab_handle */, |
920 int /* blocked_popup_count */) | 920 int /* blocked_popup_count */) |
921 | 921 |
922 // This message retrieves the locale of the browser process. On success | 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 | 923 // |chrome_locale| will contain the locale as reported by ICU. On failure |
924 // |chrome_locale| is the empty string. | 924 // |chrome_locale| is the empty string. |
925 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_GetBrowserLocale, | 925 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_DEPRECATED_GetBrowserLocale, |
926 string16 /* chrome_locale */) | 926 string16 /* chrome_locale */) |
927 | 927 |
928 #if defined(OS_WIN) | 928 #if defined(OS_WIN) |
929 IPC_MESSAGE_ROUTED3(AutomationMsg_ForwardContextMenuToExternalHost, | 929 IPC_MESSAGE_ROUTED3(AutomationMsg_ForwardContextMenuToExternalHost, |
930 ContextMenuModel /* description of menu */, | 930 ContextMenuModel /* description of menu */, |
931 int /* align flags */, | 931 int /* align flags */, |
932 MiniContextMenuParams /* params */) | 932 MiniContextMenuParams /* params */) |
933 | 933 |
934 IPC_MESSAGE_CONTROL2(AutomationMsg_ForwardContextMenuCommandToChrome, | 934 IPC_MESSAGE_CONTROL2(AutomationMsg_ForwardContextMenuCommandToChrome, |
935 int /* tab_handle */, | 935 int /* tab_handle */, |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
980 int /* tab handle */) | 980 int /* tab handle */) |
981 | 981 |
982 IPC_MESSAGE_CONTROL1(AutomationMsg_ReloadAsync, | 982 IPC_MESSAGE_CONTROL1(AutomationMsg_ReloadAsync, |
983 int /* tab handle */) | 983 int /* tab handle */) |
984 | 984 |
985 IPC_MESSAGE_CONTROL1(AutomationMsg_StopAsync, | 985 IPC_MESSAGE_CONTROL1(AutomationMsg_StopAsync, |
986 int /* tab handle */) | 986 int /* tab handle */) |
987 | 987 |
988 // 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. |
989 // See AutomationMsg_SetFilteredInet. | 989 // See AutomationMsg_SetFilteredInet. |
990 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_GetFilteredInetHitCount, | 990 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_DEPRECATED_GetFilteredInetHitCount, |
991 int /* hit_count */) | 991 int /* hit_count */) |
992 | 992 |
993 // Is the browser in fullscreen mode? | 993 // Is the browser in fullscreen mode? |
994 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_IsFullscreen, | 994 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_IsFullscreen, |
995 int /* browser_handle */, | 995 int /* browser_handle */, |
996 bool /* is_fullscreen */) | 996 bool /* is_fullscreen */) |
997 | 997 |
998 // Is the fullscreen bubble visible? | 998 // Is the fullscreen bubble visible? |
999 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_IsFullscreenBubbleVisible, | 999 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_IsFullscreenBubbleVisible, |
1000 int /* browser_handle */, | 1000 int /* browser_handle */, |
1001 bool /* is_visible */) | 1001 bool /* is_visible */) |
1002 | 1002 |
1003 // This message notifies the AutomationProvider to navigate to a specified | 1003 // 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 | 1004 // 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 | 1005 // 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 | 1006 // parameter is the number of navigations that are required for a successful |
1007 // return value. See AutomationMsg_NavigationResponseValues for the return | 1007 // return value. See AutomationMsg_NavigationResponseValues for the return |
1008 // value. | 1008 // value. |
1009 IPC_SYNC_MESSAGE_CONTROL3_1( | 1009 IPC_SYNC_MESSAGE_CONTROL3_1( |
(...skipping 21 matching lines...) Expand all Loading... |
1031 // Response: | 1031 // Response: |
1032 // - bool: whether the operation was successful. | 1032 // - bool: whether the operation was successful. |
1033 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_WaitForBrowserWindowCountToBecome, | 1033 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_WaitForBrowserWindowCountToBecome, |
1034 int, | 1034 int, |
1035 bool) | 1035 bool) |
1036 | 1036 |
1037 // This message requests the provider to wait until an application modal | 1037 // This message requests the provider to wait until an application modal |
1038 // dialog is shown. | 1038 // dialog is shown. |
1039 // Response: | 1039 // Response: |
1040 // - bool: whether the operation was successful | 1040 // - bool: whether the operation was successful |
1041 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_WaitForAppModalDialogToBeShown, | 1041 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_DEPRECATED_WaitForAppModalDialogToBeSh
own, |
1042 bool) | 1042 bool) |
1043 | 1043 |
1044 // This message notifies the AutomationProvider to navigate back in session | 1044 // This message notifies the AutomationProvider to navigate back in session |
1045 // 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 |
1046 // 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 |
1047 // provider will wait for. | 1047 // provider will wait for. |
1048 // See AutomationMsg_NavigationResponseValues for the navigation response | 1048 // See AutomationMsg_NavigationResponseValues for the navigation response |
1049 // values. | 1049 // values. |
1050 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_GoBackBlockUntilNavigationsComplete, | 1050 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_GoBackBlockUntilNavigationsComplete, |
1051 int, | 1051 int, |
1052 int, | 1052 int, |
1053 AutomationMsg_NavigationResponseValues) | 1053 AutomationMsg_NavigationResponseValues) |
1054 | 1054 |
1055 // This message notifies the AutomationProvider to navigate forward in session | 1055 // This message notifies the AutomationProvider to navigate forward in session |
1056 // 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 |
1057 // 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 |
1058 // the provider will wait for. | 1058 // the provider will wait for. |
1059 // See AutomationMsg_NavigationResponseValues for the navigation response | 1059 // See AutomationMsg_NavigationResponseValues for the navigation response |
1060 // values. | 1060 // values. |
1061 IPC_SYNC_MESSAGE_CONTROL2_1( | 1061 IPC_SYNC_MESSAGE_CONTROL2_1( |
1062 AutomationMsg_GoForwardBlockUntilNavigationsComplete, | 1062 AutomationMsg_GoForwardBlockUntilNavigationsComplete, |
1063 int, | 1063 int, |
1064 int, | 1064 int, |
1065 AutomationMsg_NavigationResponseValues) | 1065 AutomationMsg_NavigationResponseValues) |
1066 | 1066 |
1067 // 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 |
1068 // browser process. | 1068 // browser process. |
1069 IPC_MESSAGE_CONTROL1(AutomationMsg_RecordHistograms, | 1069 IPC_MESSAGE_CONTROL1(AutomationMsg_DEPRECATED_RecordHistograms, |
1070 std::vector<std::string> /* histogram_list */) | 1070 std::vector<std::string> /* histogram_list */) |
1071 | 1071 |
1072 IPC_MESSAGE_ROUTED1(AutomationMsg_AttachExternalTab, | 1072 IPC_MESSAGE_ROUTED1(AutomationMsg_AttachExternalTab, |
1073 AttachExternalTabParams) | 1073 AttachExternalTabParams) |
1074 | 1074 |
1075 // Sent when the automation client connects to an existing tab. | 1075 // Sent when the automation client connects to an existing tab. |
1076 IPC_SYNC_MESSAGE_CONTROL3_4(AutomationMsg_ConnectExternalTab, | 1076 IPC_SYNC_MESSAGE_CONTROL3_4(AutomationMsg_ConnectExternalTab, |
1077 uint64 /* cookie */, | 1077 uint64 /* cookie */, |
1078 bool /* allow/block tab*/, | 1078 bool /* allow/block tab*/, |
1079 gfx::NativeWindow /* parent window */, | 1079 gfx::NativeWindow /* parent window */, |
1080 gfx::NativeWindow /* Tab container window */, | 1080 gfx::NativeWindow /* Tab container window */, |
1081 gfx::NativeWindow /* Tab window */, | 1081 gfx::NativeWindow /* Tab window */, |
1082 int /* Handle to the new tab */, | 1082 int /* Handle to the new tab */, |
1083 int /* Session Id of the new tab */) | 1083 int /* Session Id of the new tab */) |
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_CONTROL1_2(AutomationMsg_GetWindowBounds, | 1091 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_DEPRECATED_GetWindowBounds, |
1092 int, | 1092 int, |
1093 gfx::Rect, | 1093 gfx::Rect, |
1094 bool) | 1094 bool) |
1095 | 1095 |
1096 // Simulate an end of session. Normally this happens when the user | 1096 // Simulate an end of session. Normally this happens when the user |
1097 // shuts down the machine or logs off. | 1097 // shuts down the machine or logs off. |
1098 // Request: | 1098 // Request: |
1099 // int - the handle of the browser | 1099 // int - the handle of the browser |
1100 // Response: | 1100 // Response: |
1101 // bool - true if succesful | 1101 // bool - true if succesful |
1102 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_TerminateSession, | 1102 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_TerminateSession, |
1103 int, | 1103 int, |
1104 bool) | 1104 bool) |
1105 | 1105 |
1106 // Returns whether the window is maximized. | 1106 // Returns whether the window is maximized. |
1107 // Request: | 1107 // Request: |
1108 // int - the handle of the window | 1108 // int - the handle of the window |
1109 // Response: | 1109 // Response: |
1110 // bool - true if the window is maximized | 1110 // bool - true if the window is maximized |
1111 // bool - true if query is successful | 1111 // bool - true if query is successful |
1112 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_IsWindowMaximized, | 1112 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_DEPRECATED_IsWindowMaximized, |
1113 int, | 1113 int, |
1114 bool, | 1114 bool, |
1115 bool) | 1115 bool) |
1116 | 1116 |
1117 IPC_MESSAGE_CONTROL2(AutomationMsg_SetPageFontSize, | 1117 IPC_MESSAGE_CONTROL2(AutomationMsg_SetPageFontSize, |
1118 int /* tab_handle */, | 1118 int /* tab_handle */, |
1119 int /* The font size */) | 1119 int /* The font size */) |
1120 | 1120 |
1121 // 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 |
1122 // event hasn't occurred yet. | 1122 // event hasn't occurred yet. |
1123 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_GetMetricEventDuration, | 1123 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_GetMetricEventDuration, |
1124 std::string /* event_name */, | 1124 std::string /* event_name */, |
1125 int /* duration ms */) | 1125 int /* duration ms */) |
1126 | 1126 |
1127 // Sent by automation provider - go to history entry via automation. | 1127 // Sent by automation provider - go to history entry via automation. |
1128 IPC_MESSAGE_ROUTED1(AutomationMsg_RequestGoToHistoryEntryOffset, | 1128 IPC_MESSAGE_ROUTED1(AutomationMsg_RequestGoToHistoryEntryOffset, |
1129 int) // numbers of entries (negative or positive) | 1129 int) // numbers of entries (negative or positive) |
1130 | 1130 |
1131 // DEPRECATED MESSAGE. | 1131 // DEPRECATED MESSAGE. |
1132 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_InstallExtension, | 1132 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_InstallExtension, |
1133 FilePath /* full path to crx file */, | 1133 FilePath /* full path to crx file */, |
1134 int) | 1134 int) |
1135 | 1135 |
1136 // DEPRECATED MESSAGE - But we must leave this comment and message so as | 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__). | 1137 // not to perturb line numbers (see comment at top of file re __LINE__). |
1138 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DeprecatedMessageTwo, | 1138 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_MessageTwo, |
1139 int, | 1139 int, |
1140 int) | 1140 int) |
1141 | 1141 |
1142 // DEPRECATED MESSAGE - But we must leave this comment and message so as | 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__). | 1143 // not to perturb line numbers (see comment at top of file re __LINE__). |
1144 // (intentionally blank line) | 1144 // (intentionally blank line) |
1145 // (intentionally blank line) | 1145 // (intentionally blank line) |
1146 // (intentionally blank line) | 1146 // (intentionally blank line) |
1147 // (intentionally blank line) | 1147 // (intentionally blank line) |
1148 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_DeprecatedMessageThree, | 1148 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_DEPRECATED_MessageThree, |
1149 int) | 1149 int) |
1150 | 1150 |
1151 // 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 |
1152 // 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 |
1153 // failed. | 1153 // failed. |
1154 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_Type, | 1154 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_Type, |
1155 int, | 1155 int, |
1156 int) | 1156 int) |
1157 | 1157 |
1158 // Opens a new browser window of a specific type. | 1158 // Opens a new browser window of a specific type. |
(...skipping 10 matching lines...) Expand all Loading... |
1169 int, | 1169 int, |
1170 gfx::Point) | 1170 gfx::Point) |
1171 | 1171 |
1172 // Called when requests should be downloaded using a host browser's | 1172 // Called when requests should be downloaded using a host browser's |
1173 // download mechanism when chrome is being embedded. | 1173 // download mechanism when chrome is being embedded. |
1174 IPC_MESSAGE_ROUTED1(AutomationMsg_DownloadRequestInHost, | 1174 IPC_MESSAGE_ROUTED1(AutomationMsg_DownloadRequestInHost, |
1175 int /* request_id */) | 1175 int /* request_id */) |
1176 | 1176 |
1177 // Shuts down the session service for the browser identified by | 1177 // Shuts down the session service for the browser identified by |
1178 // |browser_handle|. On success |result| is set to true. | 1178 // |browser_handle|. On success |result| is set to true. |
1179 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_ShutdownSessionService, | 1179 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_ShutdownSessionService, |
1180 int /* browser_handle */, | 1180 int /* browser_handle */, |
1181 bool /* result */) | 1181 bool /* result */) |
1182 | 1182 |
1183 IPC_MESSAGE_CONTROL1(AutomationMsg_SaveAsAsync, | 1183 IPC_MESSAGE_CONTROL1(AutomationMsg_SaveAsAsync, |
1184 int /* tab handle */) | 1184 int /* tab handle */) |
1185 | 1185 |
1186 #if defined(OS_WIN) | 1186 #if defined(OS_WIN) |
1187 // An incoming message from an automation host to Chrome. Signals that | 1187 // An incoming message from an automation host to Chrome. Signals that |
1188 // the browser containing |tab_handle| has moved. | 1188 // the browser containing |tab_handle| has moved. |
1189 IPC_MESSAGE_CONTROL1(AutomationMsg_BrowserMove, | 1189 IPC_MESSAGE_CONTROL1(AutomationMsg_BrowserMove, |
1190 int /* tab handle */) | 1190 int /* tab handle */) |
1191 #endif | 1191 #endif |
1192 | 1192 |
1193 // Used to get cookies for the given URL. | 1193 // Used to get cookies for the given URL. |
1194 IPC_MESSAGE_ROUTED2(AutomationMsg_GetCookiesFromHost, | 1194 IPC_MESSAGE_ROUTED2(AutomationMsg_GetCookiesFromHost, |
1195 GURL /* url */, | 1195 GURL /* url */, |
1196 int /* opaque_cookie_id */) | 1196 int /* opaque_cookie_id */) |
1197 | 1197 |
1198 IPC_MESSAGE_CONTROL5(AutomationMsg_GetCookiesHostResponse, | 1198 IPC_MESSAGE_CONTROL5(AutomationMsg_GetCookiesHostResponse, |
1199 int /* tab_handle */, | 1199 int /* tab_handle */, |
1200 bool /* success */, | 1200 bool /* success */, |
1201 GURL /* url */, | 1201 GURL /* url */, |
1202 std::string /* cookies */, | 1202 std::string /* cookies */, |
1203 int /* opaque_cookie_id */) | 1203 int /* opaque_cookie_id */) |
1204 | 1204 |
1205 // 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 |
1206 // modified. | 1206 // modified. |
1207 IPC_SYNC_MESSAGE_CONTROL4_1(AutomationMsg_SetContentSetting, | 1207 IPC_SYNC_MESSAGE_CONTROL4_1(AutomationMsg_DEPRECATED_SetContentSetting, |
1208 int /* browser handle */, | 1208 int /* browser handle */, |
1209 std::string /* host */, | 1209 std::string /* host */, |
1210 ContentSettingsType /* content type */, | 1210 ContentSettingsType /* content type */, |
1211 ContentSetting /* setting */, | 1211 ContentSetting /* setting */, |
1212 bool /* success */) | 1212 bool /* success */) |
1213 | 1213 |
1214 #if defined(OS_CHROMEOS) | 1214 #if defined(OS_CHROMEOS) |
1215 // Logs in through the browser's login wizard if available. | 1215 // Logs in through the browser's login wizard if available. |
1216 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_LoginWithUserAndPass, | 1216 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_DEPRECATED_LoginWithUserAndPass, |
1217 std::string /* username*/, | 1217 std::string /* username*/, |
1218 std::string /* password*/, | 1218 std::string /* password*/, |
1219 bool /* Whether successful*/) | 1219 bool /* Whether successful*/) |
1220 #endif | 1220 #endif |
1221 | 1221 |
1222 // Return the bookmarks encoded as a JSON string. | 1222 // Return the bookmarks encoded as a JSON string. |
1223 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_GetBookmarksAsJSON, | 1223 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_GetBookmarksAsJSON, |
1224 int /* browser_handle */, | 1224 int /* browser_handle */, |
1225 std::string /* bookmarks as a JSON string */, | 1225 std::string /* bookmarks as a JSON string */, |
1226 bool /* success */) | 1226 bool /* success */) |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1351 int /* extension handle */, | 1351 int /* extension handle */, |
1352 AutomationMsg_DEPRECATED_ExtensionProperty /* property type */, | 1352 AutomationMsg_DEPRECATED_ExtensionProperty /* property type */, |
1353 bool /* success */, | 1353 bool /* success */, |
1354 std::string /* property value */) | 1354 std::string /* property value */) |
1355 | 1355 |
1356 // Resets to the default theme. | 1356 // Resets to the default theme. |
1357 IPC_SYNC_MESSAGE_CONTROL0_0(AutomationMsg_ResetToDefaultTheme) | 1357 IPC_SYNC_MESSAGE_CONTROL0_0(AutomationMsg_ResetToDefaultTheme) |
1358 | 1358 |
1359 // Navigates asynchronously to a URL with a certain disposition, | 1359 // Navigates asynchronously to a URL with a certain disposition, |
1360 // like in a new tab. | 1360 // like in a new tab. |
1361 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_NavigationAsyncWithDisposition, | 1361 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_DEPRECATED_NavigationAsyncWithDisposit
ion, |
1362 int /* tab handle */, | 1362 int /* tab handle */, |
1363 GURL, | 1363 GURL, |
1364 WindowOpenDisposition, | 1364 WindowOpenDisposition, |
1365 bool /* result */) | 1365 bool /* result */) |
1366 | 1366 |
1367 | 1367 |
1368 // 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 |
1369 // profile of the tab identified by the first parameter. The second | 1369 // profile of the tab identified by the first parameter. The second |
1370 // parameter is the cookie name. | 1370 // parameter is the cookie name. |
1371 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_DeleteCookie, | 1371 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_DEPRECATED_DeleteCookie, |
1372 GURL, | 1372 GURL, |
1373 std::string, | 1373 std::string, |
1374 int /* tab handle */, | 1374 int /* tab handle */, |
1375 bool /* result */) | 1375 bool /* result */) |
1376 | 1376 |
1377 // This message triggers the collected cookies dialog for a specific tab. | 1377 // This message triggers the collected cookies dialog for a specific tab. |
1378 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_ShowCollectedCookiesDialog, | 1378 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_ShowCollectedCookiesDialog, |
1379 int /* tab handle */, | 1379 int /* tab handle */, |
1380 bool /* result */) | 1380 bool /* result */) |
1381 | 1381 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1430 // TODO(phajdan.jr): Remove this message. | 1430 // TODO(phajdan.jr): Remove this message. |
1431 // Captures the entire page for the tab, including those portions not in | 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. | 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 | 1433 // This message is deprecated, use the JSON testing interface for |
1434 // similar functionality. | 1434 // similar functionality. |
1435 // Request: | 1435 // Request: |
1436 // -int: Tab handle | 1436 // -int: Tab handle |
1437 // -FilePath: Path to save the captured image to | 1437 // -FilePath: Path to save the captured image to |
1438 // Response: | 1438 // Response: |
1439 // -bool: Whether the method succeeded | 1439 // -bool: Whether the method succeeded |
1440 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_CaptureEntirePageAsPNG_Deprecated, | 1440 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_DEPRECATED_CaptureEntirePageAsPNG, |
1441 int, | 1441 int, |
1442 FilePath, | 1442 FilePath, |
1443 bool) | 1443 bool) |
1444 | 1444 |
1445 // Notify the JavaScript engine in the render to change its parameters | 1445 // Notify the JavaScript engine in the render to change its parameters |
1446 // while performing stress testing. | 1446 // while performing stress testing. |
1447 IPC_MESSAGE_CONTROL3(AutomationMsg_JavaScriptStressTestControl, | 1447 IPC_MESSAGE_CONTROL3(AutomationMsg_JavaScriptStressTestControl, |
1448 int /* tab handle */, | 1448 int /* tab handle */, |
1449 int /* command */, | 1449 int /* command */, |
1450 int /* type or run */) | 1450 int /* type or run */) |
1451 | 1451 |
1452 // This message posts a task to the PROCESS_LAUNCHER thread. Once processed | 1452 // 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 | 1453 // the response is sent back. This is useful when you want to make sure all |
1454 // changes to the number of processes have completed. | 1454 // changes to the number of processes have completed. |
1455 IPC_SYNC_MESSAGE_CONTROL0_0(AutomationMsg_WaitForProcessLauncherThreadToGoIdle) | 1455 IPC_SYNC_MESSAGE_CONTROL0_0(AutomationMsg_WaitForProcessLauncherThreadToGoIdle) |
1456 | 1456 |
1457 // Gets a handle of the browser that owns the given tab. | 1457 // Gets a handle of the browser that owns the given tab. |
1458 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_GetParentBrowserOfTab, | 1458 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_DEPRECATED_GetParentBrowserOfTab, |
1459 int /* tab handle */, | 1459 int /* tab handle */, |
1460 int /* browser handle */, | 1460 int /* browser handle */, |
1461 bool /* success */) | 1461 bool /* success */) |
1462 | 1462 |
1463 // This message is an outgoing message from Chrome to an external host. | 1463 // 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 | 1464 // It is a notification that a popup window position or dimentions have |
1465 // changed | 1465 // changed |
1466 // Request: | 1466 // Request: |
1467 // gfx::Rect - the bounds of the window | 1467 // gfx::Rect - the bounds of the window |
1468 // Response: | 1468 // Response: |
1469 // None expected | 1469 // None expected |
1470 IPC_MESSAGE_ROUTED1(AutomationMsg_MoveWindow, | 1470 IPC_MESSAGE_ROUTED1(AutomationMsg_MoveWindow, |
1471 gfx::Rect /* window position and dimentions */) | 1471 gfx::Rect /* window position and dimentions */) |
1472 | 1472 |
1473 // Is the browser in application mode? | 1473 // Is the browser in application mode? |
1474 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_IsBrowserInApplicationMode, | 1474 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_DEPRECATED_IsBrowserInApplicationMode, |
1475 int /* browser_handle */, | 1475 int /* browser_handle */, |
1476 bool /* is_application */, | 1476 bool /* is_application */, |
1477 bool /* success */) | 1477 bool /* success */) |
1478 | 1478 |
1479 // Call BeginTracing on the browser TraceController. This will tell all | 1479 // Call BeginTracing on the browser TraceController. This will tell all |
1480 // processes to start collecting trace events via base/debug/trace_event.h. | 1480 // processes to start collecting trace events via base/debug/trace_event.h. |
1481 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_BeginTracing, | 1481 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_BeginTracing, |
1482 std::string /* categories */, | 1482 std::string /* categories */, |
1483 bool /* success */) | 1483 bool /* success */) |
1484 | 1484 |
1485 // End tracing (called after BeginTracing). This blocks until tracing has | 1485 // End tracing (called after BeginTracing). This blocks until tracing has |
1486 // stopped on all processes and all the events are ready to be retrieved. | 1486 // stopped on all processes and all the events are ready to be retrieved. |
1487 IPC_SYNC_MESSAGE_CONTROL0_2(AutomationMsg_EndTracing, | 1487 IPC_SYNC_MESSAGE_CONTROL0_2(AutomationMsg_EndTracing, |
1488 size_t /* num_trace_chunks */, | 1488 size_t /* num_trace_chunks */, |
1489 bool /* success */) | 1489 bool /* success */) |
1490 | 1490 |
1491 // Retrieve trace event data (called after EndTracing). Must call exactly | 1491 // Retrieve trace event data (called after EndTracing). Must call exactly |
1492 // |num_trace_chunks| times. | 1492 // |num_trace_chunks| times. |
1493 // TODO(jbates): See bug 100255, IPC send fails if message is too big. This | 1493 // TODO(jbates): See bug 100255, IPC send fails if message is too big. This |
1494 // code can be removed if that limitation is fixed. | 1494 // code can be removed if that limitation is fixed. |
1495 IPC_SYNC_MESSAGE_CONTROL0_2(AutomationMsg_GetTracingOutput, | 1495 IPC_SYNC_MESSAGE_CONTROL0_2(AutomationMsg_GetTracingOutput, |
1496 std::string /* trace_chunk */, | 1496 std::string /* trace_chunk */, |
1497 bool /* success */) | 1497 bool /* success */) |
1498 | 1498 |
1499 // This message notifies the AutomationProvider to append a new tab to the | 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 | 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 | 1501 // like it was middle-clicked. The return value contains the index of |
1502 // the new tab, or -1 if the request failed. | 1502 // the new tab, or -1 if the request failed. |
1503 // The second parameter is the url to be loaded in the new tab. | 1503 // The second parameter is the url to be loaded in the new tab. |
1504 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_AppendBackgroundTab, | 1504 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_DEPRECATED_AppendBackgroundTab, |
1505 int, | 1505 int, |
1506 GURL, | 1506 GURL, |
1507 int) | 1507 int) |
1508 | 1508 |
1509 // Used on Mac OS X to read the number of active Mach ports used in the browser | 1509 // Used on Mac OS X to read the number of active Mach ports used in the browser |
1510 // process. | 1510 // process. |
1511 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_GetMachPortCount, | 1511 IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_GetMachPortCount, |
1512 int /* number of Mach ports */) | 1512 int /* number of Mach ports */) |
1513 | 1513 |
1514 // Browser -> renderer messages. | 1514 // Browser -> renderer messages. |
(...skipping 23 matching lines...) Expand all Loading... |
1538 // Sent when the renderer has completed or canceled a client redirect for a | 1538 // 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 | 1539 // particular frame. This message may be sent multiple times for the same |
1540 // redirect. | 1540 // redirect. |
1541 IPC_MESSAGE_ROUTED1(AutomationMsg_DidCompleteOrCancelClientRedirect, | 1541 IPC_MESSAGE_ROUTED1(AutomationMsg_DidCompleteOrCancelClientRedirect, |
1542 int64 /* frame_id */) | 1542 int64 /* frame_id */) |
1543 | 1543 |
1544 // YOUR NEW MESSAGE MIGHT NOT BELONG HERE. | 1544 // YOUR NEW MESSAGE MIGHT NOT BELONG HERE. |
1545 // This is the section for renderer -> browser automation messages. If it is | 1545 // 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 | 1546 // an automation <-> browser message, put it above this section. The "no line |
1547 // number change" applies only to the automation <-> browser messages. | 1547 // number change" applies only to the automation <-> browser messages. |
OLD | NEW |