Chromium Code Reviews| 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 IPC_STRUCT_BEGIN(ViewHostMsg_SetSelectedColorInColorChooser_Params) | |
|
jam
2012/01/17 06:49:55
we only create structs when we need to pass a mess
keishi
2012/01/27 04:34:08
Done.
| |
| 1007 // The new color to set as the selected color in the color chooser. | |
| 1008 IPC_STRUCT_MEMBER(WebKit::WebColor, color) | |
| 1009 IPC_STRUCT_END() | |
| 1006 | 1010 |
| 1007 // Sets the alternate error page URL (link doctor) for the renderer process. | 1011 // Sets the alternate error page URL (link doctor) for the renderer process. |
| 1008 IPC_MESSAGE_ROUTED1(ViewMsg_SetAltErrorPageURL, | 1012 IPC_MESSAGE_ROUTED1(ViewMsg_SetAltErrorPageURL, |
| 1009 GURL) | 1013 GURL) |
| 1010 | 1014 |
| 1015 // Notifies the color that the user selected in the color chooser. | |
| 1016 IPC_MESSAGE_ROUTED1(ViewMsg_DidChooseColorResponse, WebKit::WebColor) | |
| 1017 IPC_MESSAGE_ROUTED0(ViewMsg_DidEndColorChooser) | |
| 1018 | |
| 1011 IPC_MESSAGE_ROUTED1(ViewMsg_RunFileChooserResponse, | 1019 IPC_MESSAGE_ROUTED1(ViewMsg_RunFileChooserResponse, |
| 1012 std::vector<FilePath> /* selected files */) | 1020 std::vector<FilePath> /* selected files */) |
| 1013 | 1021 |
| 1014 // Provides the results of directory enumeration. | 1022 // Provides the results of directory enumeration. |
| 1015 IPC_MESSAGE_ROUTED2(ViewMsg_EnumerateDirectoryResponse, | 1023 IPC_MESSAGE_ROUTED2(ViewMsg_EnumerateDirectoryResponse, |
| 1016 int /* request_id */, | 1024 int /* request_id */, |
| 1017 std::vector<FilePath> /* files_in_directory */) | 1025 std::vector<FilePath> /* files_in_directory */) |
| 1018 | 1026 |
| 1019 // When a renderer sends a ViewHostMsg_Focus to the browser process, | 1027 // When a renderer sends a ViewHostMsg_Focus to the browser process, |
| 1020 // the browser has the option of sending a ViewMsg_CantFocus back to | 1028 // 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, | 1711 IPC_MESSAGE_ROUTED3(ViewHostMsg_SelectionChanged, |
| 1704 string16 /* text covers the selection range */, | 1712 string16 /* text covers the selection range */, |
| 1705 size_t /* the offset of the text in the document */, | 1713 size_t /* the offset of the text in the document */, |
| 1706 ui::Range /* selection range in the document */) | 1714 ui::Range /* selection range in the document */) |
| 1707 | 1715 |
| 1708 // Notification that the selection bounds have changed. | 1716 // Notification that the selection bounds have changed. |
| 1709 IPC_MESSAGE_ROUTED2(ViewHostMsg_SelectionBoundsChanged, | 1717 IPC_MESSAGE_ROUTED2(ViewHostMsg_SelectionBoundsChanged, |
| 1710 gfx::Rect /* start rect */, | 1718 gfx::Rect /* start rect */, |
| 1711 gfx::Rect /* end rect */) | 1719 gfx::Rect /* end rect */) |
| 1712 | 1720 |
| 1721 // Asks the browser to open the color chooser. | |
| 1722 IPC_MESSAGE_ROUTED1(ViewHostMsg_OpenColorChooser, | |
| 1723 ViewHostMsg_SetSelectedColorInColorChooser_Params) | |
| 1724 | |
| 1725 // Asks the browser to end the color chooser. | |
| 1726 IPC_MESSAGE_ROUTED0(ViewHostMsg_EndColorChooser) | |
| 1727 | |
| 1728 // Change the selected color in the color chooser. | |
| 1729 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetSelectedColorInColorChooser, | |
| 1730 ViewHostMsg_SetSelectedColorInColorChooser_Params) | |
| 1731 | |
| 1713 // Asks the browser to display the file chooser. The result is returned in a | 1732 // Asks the browser to display the file chooser. The result is returned in a |
| 1714 // ViewHost_RunFileChooserResponse message. | 1733 // ViewHost_RunFileChooserResponse message. |
| 1715 IPC_MESSAGE_ROUTED1(ViewHostMsg_RunFileChooser, | 1734 IPC_MESSAGE_ROUTED1(ViewHostMsg_RunFileChooser, |
| 1716 content::FileChooserParams) | 1735 content::FileChooserParams) |
| 1717 | 1736 |
| 1718 // Asks the browser to enumerate a directory. This is equivalent to running | 1737 // 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 | 1738 // the file chooser in directory-enumeration mode and having the user select |
| 1720 // the given directory. The result is returned in a | 1739 // the given directory. The result is returned in a |
| 1721 // ViewMsg_EnumerateDirectoryResponse message. | 1740 // ViewMsg_EnumerateDirectoryResponse message. |
| 1722 IPC_MESSAGE_ROUTED2(ViewHostMsg_EnumerateDirectory, | 1741 IPC_MESSAGE_ROUTED2(ViewHostMsg_EnumerateDirectory, |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1975 media::MediaLogEvent /* event */) | 1994 media::MediaLogEvent /* event */) |
| 1976 | 1995 |
| 1977 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message | 1996 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message |
| 1978 // being sent back. | 1997 // being sent back. |
| 1979 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) | 1998 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) |
| 1980 | 1999 |
| 1981 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent | 2000 // 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 | 2001 // whenever the mouse is unlocked (which may or may not be caused by |
| 1983 // ViewHostMsg_UnlockMouse). | 2002 // ViewHostMsg_UnlockMouse). |
| 1984 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) | 2003 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) |
| OLD | NEW |