OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Defines the IPC messages used by the automation interface. | 5 // Defines the IPC messages used by the automation interface. |
6 | 6 |
7 // This header is meant to be included in multiple passes, hence no traditional | 7 // This header is meant to be included in multiple passes, hence no traditional |
8 // header guard. | 8 // header guard. |
9 // See ipc_message_macros.h for explanation of the macros and passes. | 9 // See ipc_message_macros.h for explanation of the macros and passes. |
10 | 10 |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 // ExternalTabSettings - settings for external tab | 426 // ExternalTabSettings - settings for external tab |
427 IPC_SYNC_MESSAGE_ROUTED1_3(AutomationMsg_CreateExternalTab, | 427 IPC_SYNC_MESSAGE_ROUTED1_3(AutomationMsg_CreateExternalTab, |
428 IPC::ExternalTabSettings /* settings*/, | 428 IPC::ExternalTabSettings /* settings*/, |
429 gfx::NativeWindow /* Tab container window */, | 429 gfx::NativeWindow /* Tab container window */, |
430 gfx::NativeWindow /* Tab window */, | 430 gfx::NativeWindow /* Tab window */, |
431 int /* Handle to the new tab */) | 431 int /* Handle to the new tab */) |
432 | 432 |
433 // This message notifies the AutomationProvider to navigate to a specified | 433 // This message notifies the AutomationProvider to navigate to a specified |
434 // url in the external tab with given handle. The first parameter is the | 434 // url in the external tab with given handle. The first parameter is the |
435 // handle to the tab resource. The second parameter is the target url. | 435 // handle to the tab resource. The second parameter is the target url. |
| 436 // The third parameter is the referrer. |
436 // The return value contains a status code which is nonnegative on success. | 437 // The return value contains a status code which is nonnegative on success. |
437 // see AutomationMsg_NavigationResponseValues for the navigation response. | 438 // see AutomationMsg_NavigationResponseValues for the navigation response. |
438 IPC_SYNC_MESSAGE_ROUTED2_1(AutomationMsg_NavigateInExternalTab, int, GURL, | 439 IPC_SYNC_MESSAGE_ROUTED3_1(AutomationMsg_NavigateInExternalTab, |
| 440 int, |
| 441 GURL, |
| 442 GURL, |
439 AutomationMsg_NavigationResponseValues) | 443 AutomationMsg_NavigationResponseValues) |
440 | 444 |
441 // This message is an outgoing message from Chrome to an external host. | 445 // This message is an outgoing message from Chrome to an external host. |
442 // It is a notification that the NavigationState was changed | 446 // It is a notification that the NavigationState was changed |
443 // Request: | 447 // Request: |
444 // -int: The flags specifying what changed | 448 // -int: The flags specifying what changed |
445 // (see TabContents::InvalidateTypes) | 449 // (see TabContents::InvalidateTypes) |
446 // Response: | 450 // Response: |
447 // None expected | 451 // None expected |
448 IPC_MESSAGE_ROUTED3(AutomationMsg_NavigationStateChanged, | 452 IPC_MESSAGE_ROUTED3(AutomationMsg_NavigationStateChanged, |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
545 // false: Focus will be set to the first focusable element | 549 // false: Focus will be set to the first focusable element |
546 // Response: | 550 // Response: |
547 // None expected | 551 // None expected |
548 IPC_MESSAGE_ROUTED2(AutomationMsg_SetInitialFocus, int, bool) | 552 IPC_MESSAGE_ROUTED2(AutomationMsg_SetInitialFocus, int, bool) |
549 | 553 |
550 // This message is an outgoing message from Chrome to an external host. | 554 // This message is an outgoing message from Chrome to an external host. |
551 // It is a request to open a url | 555 // It is a request to open a url |
552 // Request: | 556 // Request: |
553 // -int: Tab handle | 557 // -int: Tab handle |
554 // -GURL: The URL to open | 558 // -GURL: The URL to open |
| 559 // -GURL: The referrer |
555 // -int: The WindowOpenDisposition that specifies where the URL should | 560 // -int: The WindowOpenDisposition that specifies where the URL should |
556 // be opened (new tab, new window etc). | 561 // be opened (new tab, new window etc). |
557 // Response: | 562 // Response: |
558 // None expected | 563 // None expected |
559 IPC_MESSAGE_ROUTED3(AutomationMsg_OpenURL, int, GURL, int) | 564 IPC_MESSAGE_ROUTED4(AutomationMsg_OpenURL, int, GURL, GURL, int) |
560 | 565 |
561 // This message requests the provider to wait until the specified tab has | 566 // This message requests the provider to wait until the specified tab has |
562 // finished restoring after session restore. | 567 // finished restoring after session restore. |
563 // Request: | 568 // Request: |
564 // - int: handle of the tab | 569 // - int: handle of the tab |
565 // Response: | 570 // Response: |
566 // - bool: whether the operation was successful. | 571 // - bool: whether the operation was successful. |
567 IPC_SYNC_MESSAGE_ROUTED1_0(AutomationMsg_WaitForTabToBeRestored, int) | 572 IPC_SYNC_MESSAGE_ROUTED1_0(AutomationMsg_WaitForTabToBeRestored, int) |
568 | 573 |
569 // This message is an outgoing message from Chrome to an external host. | 574 // This message is an outgoing message from Chrome to an external host. |
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1119 std::string /* event_name */, | 1124 std::string /* event_name */, |
1120 int /* duration ms */) | 1125 int /* duration ms */) |
1121 | 1126 |
1122 // Sent by automation provider - go to history entry via automation. | 1127 // Sent by automation provider - go to history entry via automation. |
1123 IPC_MESSAGE_ROUTED2(AutomationMsg_RequestGoToHistoryEntryOffset, | 1128 IPC_MESSAGE_ROUTED2(AutomationMsg_RequestGoToHistoryEntryOffset, |
1124 int, // tab handle | 1129 int, // tab handle |
1125 int) // numbers of entries (negative or positive) | 1130 int) // numbers of entries (negative or positive) |
1126 | 1131 |
1127 | 1132 |
1128 IPC_END_MESSAGES(Automation) | 1133 IPC_END_MESSAGES(Automation) |
OLD | NEW |