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 985 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
996 | 996 |
997 // This message confirms an ongoing composition. | 997 // This message confirms an ongoing composition. |
998 IPC_MESSAGE_ROUTED2(ViewMsg_ImeConfirmComposition, | 998 IPC_MESSAGE_ROUTED2(ViewMsg_ImeConfirmComposition, |
999 string16 /* text */, | 999 string16 /* text */, |
1000 ui::Range /* replacement_range */) | 1000 ui::Range /* replacement_range */) |
1001 | 1001 |
1002 // Used to notify the render-view that we have received a target URL. Used | 1002 // Used to notify the render-view that we have received a target URL. Used |
1003 // to prevent target URLs spamming the browser. | 1003 // to prevent target URLs spamming the browser. |
1004 IPC_MESSAGE_ROUTED0(ViewMsg_UpdateTargetURL_ACK) | 1004 IPC_MESSAGE_ROUTED0(ViewMsg_UpdateTargetURL_ACK) |
1005 | 1005 |
| 1006 #if defined(ENABLE_INPUT_COLOR) |
| 1007 IPC_STRUCT_BEGIN(ViewHostMsg_SetSelectedColorInColorChooser_Params) |
| 1008 // The new color to set as the selected color in the color chooser. |
| 1009 IPC_STRUCT_MEMBER(WebKit::WebColor, color) |
| 1010 IPC_STRUCT_END() |
| 1011 #endif // defined(ENABLE_INPUT_COLOR) |
1006 | 1012 |
1007 // 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. |
1008 IPC_MESSAGE_ROUTED1(ViewMsg_SetAltErrorPageURL, | 1014 IPC_MESSAGE_ROUTED1(ViewMsg_SetAltErrorPageURL, |
1009 GURL) | 1015 GURL) |
1010 | 1016 |
| 1017 #if defined(ENABLE_INPUT_COLOR) |
| 1018 // Notifies the color that the user selected in the color chooser. |
| 1019 IPC_MESSAGE_ROUTED1(ViewMsg_DidChooseColorResponse, WebKit::WebColor) |
| 1020 IPC_MESSAGE_ROUTED0(ViewMsg_DidDetachColorChooser) |
| 1021 #endif // defined(ENABLE_INPUT_COLOR) |
| 1022 |
1011 IPC_MESSAGE_ROUTED1(ViewMsg_RunFileChooserResponse, | 1023 IPC_MESSAGE_ROUTED1(ViewMsg_RunFileChooserResponse, |
1012 std::vector<FilePath> /* selected files */) | 1024 std::vector<FilePath> /* selected files */) |
1013 | 1025 |
1014 // Provides the results of directory enumeration. | 1026 // Provides the results of directory enumeration. |
1015 IPC_MESSAGE_ROUTED2(ViewMsg_EnumerateDirectoryResponse, | 1027 IPC_MESSAGE_ROUTED2(ViewMsg_EnumerateDirectoryResponse, |
1016 int /* request_id */, | 1028 int /* request_id */, |
1017 std::vector<FilePath> /* files_in_directory */) | 1029 std::vector<FilePath> /* files_in_directory */) |
1018 | 1030 |
1019 // When a renderer sends a ViewHostMsg_Focus to the browser process, | 1031 // When a renderer sends a ViewHostMsg_Focus to the browser process, |
1020 // 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 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1703 IPC_MESSAGE_ROUTED3(ViewHostMsg_SelectionChanged, | 1715 IPC_MESSAGE_ROUTED3(ViewHostMsg_SelectionChanged, |
1704 string16 /* text covers the selection range */, | 1716 string16 /* text covers the selection range */, |
1705 size_t /* the offset of the text in the document */, | 1717 size_t /* the offset of the text in the document */, |
1706 ui::Range /* selection range in the document */) | 1718 ui::Range /* selection range in the document */) |
1707 | 1719 |
1708 // Notification that the selection bounds have changed. | 1720 // Notification that the selection bounds have changed. |
1709 IPC_MESSAGE_ROUTED2(ViewHostMsg_SelectionBoundsChanged, | 1721 IPC_MESSAGE_ROUTED2(ViewHostMsg_SelectionBoundsChanged, |
1710 gfx::Rect /* start rect */, | 1722 gfx::Rect /* start rect */, |
1711 gfx::Rect /* end rect */) | 1723 gfx::Rect /* end rect */) |
1712 | 1724 |
| 1725 #if defined(ENABLE_INPUT_COLOR) |
| 1726 // Asks the browser to open the color chooser. |
| 1727 IPC_MESSAGE_ROUTED1(ViewHostMsg_OpenColorChooser, |
| 1728 ViewHostMsg_SetSelectedColorInColorChooser_Params) |
| 1729 |
| 1730 // Asks the browser to detach the color chooser. |
| 1731 IPC_MESSAGE_ROUTED0(ViewHostMsg_DetachColorChooser) |
| 1732 |
| 1733 // Change the selected color in the color chooser. |
| 1734 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetSelectedColorInColorChooser, |
| 1735 ViewHostMsg_SetSelectedColorInColorChooser_Params) |
| 1736 #endif // defined(ENABLE_INPUT_COLOR) |
| 1737 |
1713 // Asks the browser to display the file chooser. The result is returned in a | 1738 // Asks the browser to display the file chooser. The result is returned in a |
1714 // ViewHost_RunFileChooserResponse message. | 1739 // ViewHost_RunFileChooserResponse message. |
1715 IPC_MESSAGE_ROUTED1(ViewHostMsg_RunFileChooser, | 1740 IPC_MESSAGE_ROUTED1(ViewHostMsg_RunFileChooser, |
1716 content::FileChooserParams) | 1741 content::FileChooserParams) |
1717 | 1742 |
1718 // Asks the browser to enumerate a directory. This is equivalent to running | 1743 // Asks the browser to enumerate a directory. This is equivalent to running |
1719 // the file chooser in directory-enumeration mode and having the user select | 1744 // the file chooser in directory-enumeration mode and having the user select |
1720 // the given directory. The result is returned in a | 1745 // the given directory. The result is returned in a |
1721 // ViewMsg_EnumerateDirectoryResponse message. | 1746 // ViewMsg_EnumerateDirectoryResponse message. |
1722 IPC_MESSAGE_ROUTED2(ViewHostMsg_EnumerateDirectory, | 1747 IPC_MESSAGE_ROUTED2(ViewHostMsg_EnumerateDirectory, |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1975 media::MediaLogEvent /* event */) | 2000 media::MediaLogEvent /* event */) |
1976 | 2001 |
1977 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message | 2002 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message |
1978 // being sent back. | 2003 // being sent back. |
1979 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) | 2004 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) |
1980 | 2005 |
1981 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent | 2006 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent |
1982 // whenever the mouse is unlocked (which may or may not be caused by | 2007 // whenever the mouse is unlocked (which may or may not be caused by |
1983 // ViewHostMsg_UnlockMouse). | 2008 // ViewHostMsg_UnlockMouse). |
1984 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) | 2009 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) |
OLD | NEW |