| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // IPC messages for interacting with frames. | 5 // IPC messages for interacting with frames. |
| 6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
| 7 | 7 |
| 8 #include "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
| 9 #include "content/common/content_param_traits.h" | 9 #include "content/common/content_param_traits.h" |
| 10 #include "content/common/frame_message_enums.h" | 10 #include "content/common/frame_message_enums.h" |
| (...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 593 | 593 |
| 594 // Following message is used to communicate the values received by the | 594 // Following message is used to communicate the values received by the |
| 595 // callback binding the JS to Cpp. | 595 // callback binding the JS to Cpp. |
| 596 // An instance of browser that has an automation host listening to it can | 596 // An instance of browser that has an automation host listening to it can |
| 597 // have a javascript send a native value (string, number, boolean) to the | 597 // have a javascript send a native value (string, number, boolean) to the |
| 598 // listener in Cpp. (DomAutomationController) | 598 // listener in Cpp. (DomAutomationController) |
| 599 IPC_MESSAGE_ROUTED2(FrameHostMsg_DomOperationResponse, | 599 IPC_MESSAGE_ROUTED2(FrameHostMsg_DomOperationResponse, |
| 600 std::string /* json_string */, | 600 std::string /* json_string */, |
| 601 int /* automation_id */) | 601 int /* automation_id */) |
| 602 | 602 |
| 603 #if defined(ENABLE_PLUGINS) |
| 603 // Sent to the browser when the renderer detects it is blocked on a pepper | 604 // Sent to the browser when the renderer detects it is blocked on a pepper |
| 604 // plugin message for too long. This is also sent when it becomes unhung | 605 // plugin message for too long. This is also sent when it becomes unhung |
| 605 // (according to the value of is_hung). The browser can give the user the | 606 // (according to the value of is_hung). The browser can give the user the |
| 606 // option of killing the plugin. | 607 // option of killing the plugin. |
| 607 IPC_MESSAGE_ROUTED3(FrameHostMsg_PepperPluginHung, | 608 IPC_MESSAGE_ROUTED3(FrameHostMsg_PepperPluginHung, |
| 608 int /* plugin_child_id */, | 609 int /* plugin_child_id */, |
| 609 base::FilePath /* path */, | 610 base::FilePath /* path */, |
| 610 bool /* is_hung */) | 611 bool /* is_hung */) |
| 611 | 612 |
| 612 // Sent by the renderer process to indicate that a plugin instance has crashed. | 613 // Sent by the renderer process to indicate that a plugin instance has crashed. |
| (...skipping 23 matching lines...) Expand all Loading... |
| 636 // necessary, and will return a handle to the channel on success. | 637 // necessary, and will return a handle to the channel on success. |
| 637 // On error an empty string is returned. | 638 // On error an empty string is returned. |
| 638 IPC_SYNC_MESSAGE_CONTROL4_2(FrameHostMsg_OpenChannelToPlugin, | 639 IPC_SYNC_MESSAGE_CONTROL4_2(FrameHostMsg_OpenChannelToPlugin, |
| 639 int /* render_frame_id */, | 640 int /* render_frame_id */, |
| 640 GURL /* url */, | 641 GURL /* url */, |
| 641 GURL /* page_url */, | 642 GURL /* page_url */, |
| 642 std::string /* mime_type */, | 643 std::string /* mime_type */, |
| 643 IPC::ChannelHandle /* channel_handle */, | 644 IPC::ChannelHandle /* channel_handle */, |
| 644 content::WebPluginInfo /* info */) | 645 content::WebPluginInfo /* info */) |
| 645 | 646 |
| 647 #endif // defined(ENABLE_PLUGINS) |
| 648 |
| 646 // Acknowledge that we presented an ubercomp frame. | 649 // Acknowledge that we presented an ubercomp frame. |
| 647 // | 650 // |
| 648 // See FrameMsg_CompositorFrameSwapped | 651 // See FrameMsg_CompositorFrameSwapped |
| 649 IPC_MESSAGE_ROUTED1(FrameHostMsg_CompositorFrameSwappedACK, | 652 IPC_MESSAGE_ROUTED1(FrameHostMsg_CompositorFrameSwappedACK, |
| 650 FrameHostMsg_CompositorFrameSwappedACK_Params /* params */) | 653 FrameHostMsg_CompositorFrameSwappedACK_Params /* params */) |
| 651 | 654 |
| 652 // Provides the result from handling BeforeUnload. |proceed| matches the return | 655 // Provides the result from handling BeforeUnload. |proceed| matches the return |
| 653 // value of the frame's beforeunload handler: true if the user decided to | 656 // value of the frame's beforeunload handler: true if the user decided to |
| 654 // proceed with leaving the page. | 657 // proceed with leaving the page. |
| 655 IPC_MESSAGE_ROUTED3(FrameHostMsg_BeforeUnload_ACK, | 658 IPC_MESSAGE_ROUTED3(FrameHostMsg_BeforeUnload_ACK, |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 760 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint) | 763 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint) |
| 761 | 764 |
| 762 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 765 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
| 763 | 766 |
| 764 // Message to show/hide a popup menu using native controls. | 767 // Message to show/hide a popup menu using native controls. |
| 765 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, | 768 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
| 766 FrameHostMsg_ShowPopup_Params) | 769 FrameHostMsg_ShowPopup_Params) |
| 767 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) | 770 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
| 768 | 771 |
| 769 #endif | 772 #endif |
| OLD | NEW |