OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 page rendering. | 5 // IPC messages for page rendering. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
8 #include "base/process.h" | 8 #include "base/process.h" |
9 #include "base/shared_memory.h" | 9 #include "base/shared_memory.h" |
10 #include "content/common/common_param_traits.h" | 10 #include "content/common/common_param_traits.h" |
(...skipping 1010 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1021 IPC_MESSAGE_ROUTED0(ViewMsg_UpdateTargetURL_ACK) | 1021 IPC_MESSAGE_ROUTED0(ViewMsg_UpdateTargetURL_ACK) |
1022 | 1022 |
1023 | 1023 |
1024 // Sets the alternate error page URL (link doctor) for the renderer process. | 1024 // Sets the alternate error page URL (link doctor) for the renderer process. |
1025 IPC_MESSAGE_ROUTED1(ViewMsg_SetAltErrorPageURL, | 1025 IPC_MESSAGE_ROUTED1(ViewMsg_SetAltErrorPageURL, |
1026 GURL) | 1026 GURL) |
1027 | 1027 |
1028 IPC_MESSAGE_ROUTED1(ViewMsg_RunFileChooserResponse, | 1028 IPC_MESSAGE_ROUTED1(ViewMsg_RunFileChooserResponse, |
1029 std::vector<FilePath> /* selected files */) | 1029 std::vector<FilePath> /* selected files */) |
1030 | 1030 |
| 1031 // Provides the results of directory enumeration. |
| 1032 IPC_MESSAGE_ROUTED2(ViewMsg_EnumerateDirectoryResponse, |
| 1033 int /* request_id */, |
| 1034 std::vector<FilePath> /* files_in_directory */) |
| 1035 |
1031 // When a renderer sends a ViewHostMsg_Focus to the browser process, | 1036 // When a renderer sends a ViewHostMsg_Focus to the browser process, |
1032 // the browser has the option of sending a ViewMsg_CantFocus back to | 1037 // the browser has the option of sending a ViewMsg_CantFocus back to |
1033 // the renderer. | 1038 // the renderer. |
1034 IPC_MESSAGE_ROUTED0(ViewMsg_CantFocus) | 1039 IPC_MESSAGE_ROUTED0(ViewMsg_CantFocus) |
1035 | 1040 |
1036 // Instructs the renderer to invoke the frame's shouldClose method, which | 1041 // Instructs the renderer to invoke the frame's shouldClose method, which |
1037 // runs the onbeforeunload event handler. Expects the result to be returned | 1042 // runs the onbeforeunload event handler. Expects the result to be returned |
1038 // via ViewHostMsg_ShouldClose. | 1043 // via ViewHostMsg_ShouldClose. |
1039 IPC_MESSAGE_ROUTED0(ViewMsg_ShouldClose) | 1044 IPC_MESSAGE_ROUTED0(ViewMsg_ShouldClose) |
1040 | 1045 |
(...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1633 | 1638 |
1634 // Notification that the text selection has changed. | 1639 // Notification that the text selection has changed. |
1635 IPC_MESSAGE_ROUTED1(ViewHostMsg_SelectionChanged, | 1640 IPC_MESSAGE_ROUTED1(ViewHostMsg_SelectionChanged, |
1636 std::string /* currently selected text */) | 1641 std::string /* currently selected text */) |
1637 | 1642 |
1638 // Asks the browser to display the file chooser. The result is returned in a | 1643 // Asks the browser to display the file chooser. The result is returned in a |
1639 // ViewHost_RunFileChooserResponse message. | 1644 // ViewHost_RunFileChooserResponse message. |
1640 IPC_MESSAGE_ROUTED1(ViewHostMsg_RunFileChooser, | 1645 IPC_MESSAGE_ROUTED1(ViewHostMsg_RunFileChooser, |
1641 ViewHostMsg_RunFileChooser_Params) | 1646 ViewHostMsg_RunFileChooser_Params) |
1642 | 1647 |
| 1648 // Asks the browser to enumerate a directory. This is equivalent to running |
| 1649 // the file chooser in directory-enumeration mode and having the user select |
| 1650 // the given directory. The result is returned in a |
| 1651 // ViewMsg_EnumerateDirectoryResponse message. |
| 1652 IPC_MESSAGE_ROUTED2(ViewHostMsg_EnumerateDirectory, |
| 1653 int /* request_id */, |
| 1654 FilePath /* file_path */) |
| 1655 |
1643 // Tells the browser to move the focus to the next (previous if reverse is | 1656 // Tells the browser to move the focus to the next (previous if reverse is |
1644 // true) focusable element. | 1657 // true) focusable element. |
1645 IPC_MESSAGE_ROUTED1(ViewHostMsg_TakeFocus, | 1658 IPC_MESSAGE_ROUTED1(ViewHostMsg_TakeFocus, |
1646 bool /* reverse */) | 1659 bool /* reverse */) |
1647 | 1660 |
1648 // Returns the window location of the window this widget is embeded. | 1661 // Returns the window location of the window this widget is embeded. |
1649 // TODO(shess): Provide a mapping from reply_msg->routing_id() to | 1662 // TODO(shess): Provide a mapping from reply_msg->routing_id() to |
1650 // HWND so that we can eliminate the NativeViewId parameter. | 1663 // HWND so that we can eliminate the NativeViewId parameter. |
1651 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetRootWindowRect, | 1664 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetRootWindowRect, |
1652 gfx::NativeViewId /* window */, | 1665 gfx::NativeViewId /* window */, |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1867 // enable or disable spdy. Used for debugging/testing/benchmarking. | 1880 // enable or disable spdy. Used for debugging/testing/benchmarking. |
1868 IPC_MESSAGE_CONTROL1(ViewHostMsg_EnableSpdy, | 1881 IPC_MESSAGE_CONTROL1(ViewHostMsg_EnableSpdy, |
1869 bool /* enable */) | 1882 bool /* enable */) |
1870 | 1883 |
1871 // Message sent from the renderer to the browser to request that the browser | 1884 // Message sent from the renderer to the browser to request that the browser |
1872 // cache |data| associated with |url|. | 1885 // cache |data| associated with |url|. |
1873 IPC_MESSAGE_CONTROL3(ViewHostMsg_DidGenerateCacheableMetadata, | 1886 IPC_MESSAGE_CONTROL3(ViewHostMsg_DidGenerateCacheableMetadata, |
1874 GURL /* url */, | 1887 GURL /* url */, |
1875 double /* expected_response_time */, | 1888 double /* expected_response_time */, |
1876 std::vector<char> /* data */) | 1889 std::vector<char> /* data */) |
OLD | NEW |