| 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 // 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/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 972 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 983 | 983 |
| 984 // Used to notify the render-view that we have received a target URL. Used | 984 // Used to notify the render-view that we have received a target URL. Used |
| 985 // to prevent target URLs spamming the browser. | 985 // to prevent target URLs spamming the browser. |
| 986 IPC_MESSAGE_ROUTED0(ViewMsg_UpdateTargetURL_ACK) | 986 IPC_MESSAGE_ROUTED0(ViewMsg_UpdateTargetURL_ACK) |
| 987 | 987 |
| 988 | 988 |
| 989 // Sets the alternate error page URL (link doctor) for the renderer process. | 989 // Sets the alternate error page URL (link doctor) for the renderer process. |
| 990 IPC_MESSAGE_ROUTED1(ViewMsg_SetAltErrorPageURL, | 990 IPC_MESSAGE_ROUTED1(ViewMsg_SetAltErrorPageURL, |
| 991 GURL) | 991 GURL) |
| 992 | 992 |
| 993 // Notifies the color chooser client that the user selected a color. |
| 994 IPC_MESSAGE_ROUTED2(ViewMsg_DidChooseColorResponse, unsigned, SkColor) |
| 995 |
| 996 // Notifies the color chooser client that the color chooser has ended. |
| 997 IPC_MESSAGE_ROUTED1(ViewMsg_DidEndColorChooser, unsigned) |
| 998 |
| 993 IPC_MESSAGE_ROUTED1(ViewMsg_RunFileChooserResponse, | 999 IPC_MESSAGE_ROUTED1(ViewMsg_RunFileChooserResponse, |
| 994 std::vector<FilePath> /* selected files */) | 1000 std::vector<FilePath> /* selected files */) |
| 995 | 1001 |
| 996 // Provides the results of directory enumeration. | 1002 // Provides the results of directory enumeration. |
| 997 IPC_MESSAGE_ROUTED2(ViewMsg_EnumerateDirectoryResponse, | 1003 IPC_MESSAGE_ROUTED2(ViewMsg_EnumerateDirectoryResponse, |
| 998 int /* request_id */, | 1004 int /* request_id */, |
| 999 std::vector<FilePath> /* files_in_directory */) | 1005 std::vector<FilePath> /* files_in_directory */) |
| 1000 | 1006 |
| 1001 // When a renderer sends a ViewHostMsg_Focus to the browser process, | 1007 // When a renderer sends a ViewHostMsg_Focus to the browser process, |
| 1002 // the browser has the option of sending a ViewMsg_CantFocus back to | 1008 // the browser has the option of sending a ViewMsg_CantFocus back to |
| (...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1662 IPC_MESSAGE_ROUTED3(ViewHostMsg_SelectionChanged, | 1668 IPC_MESSAGE_ROUTED3(ViewHostMsg_SelectionChanged, |
| 1663 string16 /* text covers the selection range */, | 1669 string16 /* text covers the selection range */, |
| 1664 size_t /* the offset of the text in the document */, | 1670 size_t /* the offset of the text in the document */, |
| 1665 ui::Range /* selection range in the document */) | 1671 ui::Range /* selection range in the document */) |
| 1666 | 1672 |
| 1667 // Notification that the selection bounds have changed. | 1673 // Notification that the selection bounds have changed. |
| 1668 IPC_MESSAGE_ROUTED2(ViewHostMsg_SelectionBoundsChanged, | 1674 IPC_MESSAGE_ROUTED2(ViewHostMsg_SelectionBoundsChanged, |
| 1669 gfx::Rect /* start rect */, | 1675 gfx::Rect /* start rect */, |
| 1670 gfx::Rect /* end rect */) | 1676 gfx::Rect /* end rect */) |
| 1671 | 1677 |
| 1678 // Asks the browser to open the color chooser. |
| 1679 IPC_MESSAGE_ROUTED2(ViewHostMsg_OpenColorChooser, |
| 1680 int /* id */, |
| 1681 SkColor /* color */) |
| 1682 |
| 1683 // Asks the browser to end the color chooser. |
| 1684 IPC_MESSAGE_ROUTED1(ViewHostMsg_EndColorChooser, int /* id */) |
| 1685 |
| 1686 // Change the selected color in the color chooser. |
| 1687 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetSelectedColorInColorChooser, |
| 1688 int /* id */, |
| 1689 SkColor /* color */) |
| 1690 |
| 1672 // Asks the browser to display the file chooser. The result is returned in a | 1691 // Asks the browser to display the file chooser. The result is returned in a |
| 1673 // ViewHost_RunFileChooserResponse message. | 1692 // ViewHost_RunFileChooserResponse message. |
| 1674 IPC_MESSAGE_ROUTED1(ViewHostMsg_RunFileChooser, | 1693 IPC_MESSAGE_ROUTED1(ViewHostMsg_RunFileChooser, |
| 1675 content::FileChooserParams) | 1694 content::FileChooserParams) |
| 1676 | 1695 |
| 1677 // Asks the browser to enumerate a directory. This is equivalent to running | 1696 // Asks the browser to enumerate a directory. This is equivalent to running |
| 1678 // the file chooser in directory-enumeration mode and having the user select | 1697 // the file chooser in directory-enumeration mode and having the user select |
| 1679 // the given directory. The result is returned in a | 1698 // the given directory. The result is returned in a |
| 1680 // ViewMsg_EnumerateDirectoryResponse message. | 1699 // ViewMsg_EnumerateDirectoryResponse message. |
| 1681 IPC_MESSAGE_ROUTED2(ViewHostMsg_EnumerateDirectory, | 1700 IPC_MESSAGE_ROUTED2(ViewHostMsg_EnumerateDirectory, |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1942 // have a javascript send a native value (string, number, boolean) to the | 1961 // have a javascript send a native value (string, number, boolean) to the |
| 1943 // listener in Cpp. (DomAutomationController) | 1962 // listener in Cpp. (DomAutomationController) |
| 1944 IPC_MESSAGE_ROUTED2(ViewHostMsg_DomOperationResponse, | 1963 IPC_MESSAGE_ROUTED2(ViewHostMsg_DomOperationResponse, |
| 1945 std::string /* json_string */, | 1964 std::string /* json_string */, |
| 1946 int /* automation_id */) | 1965 int /* automation_id */) |
| 1947 | 1966 |
| 1948 // Enable or disable inverting of web content pixels, for users who prefer | 1967 // Enable or disable inverting of web content pixels, for users who prefer |
| 1949 // white-on-black. | 1968 // white-on-black. |
| 1950 IPC_MESSAGE_ROUTED1(ViewMsg_InvertWebContent, | 1969 IPC_MESSAGE_ROUTED1(ViewMsg_InvertWebContent, |
| 1951 bool /* invert */) | 1970 bool /* invert */) |
| OLD | NEW |