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 996 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1007 | 1007 |
1008 // Used to notify the render-view that we have received a target URL. Used | 1008 // Used to notify the render-view that we have received a target URL. Used |
1009 // to prevent target URLs spamming the browser. | 1009 // to prevent target URLs spamming the browser. |
1010 IPC_MESSAGE_ROUTED0(ViewMsg_UpdateTargetURL_ACK) | 1010 IPC_MESSAGE_ROUTED0(ViewMsg_UpdateTargetURL_ACK) |
1011 | 1011 |
1012 | 1012 |
1013 // Sets the alternate error page URL (link doctor) for the renderer process. | 1013 // Sets the alternate error page URL (link doctor) for the renderer process. |
1014 IPC_MESSAGE_ROUTED1(ViewMsg_SetAltErrorPageURL, | 1014 IPC_MESSAGE_ROUTED1(ViewMsg_SetAltErrorPageURL, |
1015 GURL) | 1015 GURL) |
1016 | 1016 |
| 1017 // Notifies the color chooser client that the user selected a color. |
| 1018 IPC_MESSAGE_ROUTED2(ViewMsg_DidChooseColorResponse, unsigned, SkColor) |
| 1019 |
| 1020 // Notifies the color chooser client that the color chooser has ended. |
| 1021 IPC_MESSAGE_ROUTED1(ViewMsg_DidEndColorChooser, unsigned) |
| 1022 |
1017 IPC_MESSAGE_ROUTED1(ViewMsg_RunFileChooserResponse, | 1023 IPC_MESSAGE_ROUTED1(ViewMsg_RunFileChooserResponse, |
1018 std::vector<content::SelectedFileInfo>) | 1024 std::vector<content::SelectedFileInfo>) |
1019 | 1025 |
1020 // Provides the results of directory enumeration. | 1026 // Provides the results of directory enumeration. |
1021 IPC_MESSAGE_ROUTED2(ViewMsg_EnumerateDirectoryResponse, | 1027 IPC_MESSAGE_ROUTED2(ViewMsg_EnumerateDirectoryResponse, |
1022 int /* request_id */, | 1028 int /* request_id */, |
1023 std::vector<FilePath> /* files_in_directory */) | 1029 std::vector<FilePath> /* files_in_directory */) |
1024 | 1030 |
1025 // When a renderer sends a ViewHostMsg_Focus to the browser process, | 1031 // When a renderer sends a ViewHostMsg_Focus to the browser process, |
1026 // the browser has the option of sending a ViewMsg_CantFocus back to | 1032 // the browser has the option of sending a ViewMsg_CantFocus back to |
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1688 IPC_MESSAGE_ROUTED3(ViewHostMsg_SelectionChanged, | 1694 IPC_MESSAGE_ROUTED3(ViewHostMsg_SelectionChanged, |
1689 string16 /* text covers the selection range */, | 1695 string16 /* text covers the selection range */, |
1690 size_t /* the offset of the text in the document */, | 1696 size_t /* the offset of the text in the document */, |
1691 ui::Range /* selection range in the document */) | 1697 ui::Range /* selection range in the document */) |
1692 | 1698 |
1693 // Notification that the selection bounds have changed. | 1699 // Notification that the selection bounds have changed. |
1694 IPC_MESSAGE_ROUTED2(ViewHostMsg_SelectionBoundsChanged, | 1700 IPC_MESSAGE_ROUTED2(ViewHostMsg_SelectionBoundsChanged, |
1695 gfx::Rect /* start rect */, | 1701 gfx::Rect /* start rect */, |
1696 gfx::Rect /* end rect */) | 1702 gfx::Rect /* end rect */) |
1697 | 1703 |
| 1704 // Asks the browser to open the color chooser. |
| 1705 IPC_MESSAGE_ROUTED2(ViewHostMsg_OpenColorChooser, |
| 1706 int /* id */, |
| 1707 SkColor /* color */) |
| 1708 |
| 1709 // Asks the browser to end the color chooser. |
| 1710 IPC_MESSAGE_ROUTED1(ViewHostMsg_EndColorChooser, int /* id */) |
| 1711 |
| 1712 // Change the selected color in the color chooser. |
| 1713 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetSelectedColorInColorChooser, |
| 1714 int /* id */, |
| 1715 SkColor /* color */) |
| 1716 |
1698 // Asks the browser to display the file chooser. The result is returned in a | 1717 // Asks the browser to display the file chooser. The result is returned in a |
1699 // ViewHost_RunFileChooserResponse message. | 1718 // ViewHost_RunFileChooserResponse message. |
1700 IPC_MESSAGE_ROUTED1(ViewHostMsg_RunFileChooser, | 1719 IPC_MESSAGE_ROUTED1(ViewHostMsg_RunFileChooser, |
1701 content::FileChooserParams) | 1720 content::FileChooserParams) |
1702 | 1721 |
1703 // Asks the browser to enumerate a directory. This is equivalent to running | 1722 // Asks the browser to enumerate a directory. This is equivalent to running |
1704 // the file chooser in directory-enumeration mode and having the user select | 1723 // the file chooser in directory-enumeration mode and having the user select |
1705 // the given directory. The result is returned in a | 1724 // the given directory. The result is returned in a |
1706 // ViewMsg_EnumerateDirectoryResponse message. | 1725 // ViewMsg_EnumerateDirectoryResponse message. |
1707 IPC_MESSAGE_ROUTED2(ViewHostMsg_EnumerateDirectory, | 1726 IPC_MESSAGE_ROUTED2(ViewHostMsg_EnumerateDirectory, |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1969 // have a javascript send a native value (string, number, boolean) to the | 1988 // have a javascript send a native value (string, number, boolean) to the |
1970 // listener in Cpp. (DomAutomationController) | 1989 // listener in Cpp. (DomAutomationController) |
1971 IPC_MESSAGE_ROUTED2(ViewHostMsg_DomOperationResponse, | 1990 IPC_MESSAGE_ROUTED2(ViewHostMsg_DomOperationResponse, |
1972 std::string /* json_string */, | 1991 std::string /* json_string */, |
1973 int /* automation_id */) | 1992 int /* automation_id */) |
1974 | 1993 |
1975 // Enable or disable inverting of web content pixels, for users who prefer | 1994 // Enable or disable inverting of web content pixels, for users who prefer |
1976 // white-on-black. | 1995 // white-on-black. |
1977 IPC_MESSAGE_ROUTED1(ViewMsg_InvertWebContent, | 1996 IPC_MESSAGE_ROUTED1(ViewMsg_InvertWebContent, |
1978 bool /* invert */) | 1997 bool /* invert */) |
OLD | NEW |