Chromium Code Reviews| 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 #include <map> | 5 #include <map> |
| 6 #include <set> | 6 #include <set> |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 885 | 885 |
| 886 // Let the RenderView know its window's frame has changed. | 886 // Let the RenderView know its window's frame has changed. |
| 887 IPC_MESSAGE_ROUTED2(ViewMsg_WindowFrameChanged, | 887 IPC_MESSAGE_ROUTED2(ViewMsg_WindowFrameChanged, |
| 888 gfx::Rect /* window frame */, | 888 gfx::Rect /* window frame */, |
| 889 gfx::Rect /* content view frame */) | 889 gfx::Rect /* content view frame */) |
| 890 | 890 |
| 891 // Tell the renderer that text has been retured from plugin IME. | 891 // Tell the renderer that text has been retured from plugin IME. |
| 892 IPC_MESSAGE_ROUTED2(ViewMsg_PluginImeCompositionConfirmed, | 892 IPC_MESSAGE_ROUTED2(ViewMsg_PluginImeCompositionConfirmed, |
| 893 string16 /* text */, | 893 string16 /* text */, |
| 894 int /* plugin_id */) | 894 int /* plugin_id */) |
| 895 | |
| 896 // Tells the renderer to send back the character index for a point. | |
| 897 IPC_MESSAGE_ROUTED1(ViewMsg_CharacterIndexForPoint, | |
| 898 gfx::Point) | |
| 899 | |
| 900 // Tells the renderer to send back the rectangle for a given character range. | |
| 901 IPC_MESSAGE_ROUTED2(ViewMsg_FirstRectForCharacterRange, | |
| 902 uint /* location */, | |
| 903 uint /* length */) | |
| 904 | |
| 905 // Tells the renderer to send back the text fragment in a given range. | |
| 906 IPC_MESSAGE_ROUTED2(ViewMsg_StringForRange, | |
| 907 uint /* location */, | |
| 908 uint /* length */) | |
| 895 #endif | 909 #endif |
| 896 | 910 |
| 897 // Response message to ViewHostMsg_CreateShared/DedicatedWorker. | 911 // Response message to ViewHostMsg_CreateShared/DedicatedWorker. |
| 898 // Sent when the worker has started. | 912 // Sent when the worker has started. |
| 899 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerCreated) | 913 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerCreated) |
| 900 | 914 |
| 901 // Tell the renderer which browser window it's being attached to. | 915 // Tell the renderer which browser window it's being attached to. |
| 902 IPC_MESSAGE_ROUTED1(ViewMsg_UpdateBrowserWindowId, | 916 IPC_MESSAGE_ROUTED1(ViewMsg_UpdateBrowserWindowId, |
| 903 int /* id of browser window */) | 917 int /* id of browser window */) |
| 904 | 918 |
| (...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1646 | 1660 |
| 1647 #if defined(OS_MACOSX) | 1661 #if defined(OS_MACOSX) |
| 1648 IPC_MESSAGE_CONTROL1(ViewHostMsg_ClipboardFindPboardWriteStringAsync, | 1662 IPC_MESSAGE_CONTROL1(ViewHostMsg_ClipboardFindPboardWriteStringAsync, |
| 1649 string16 /* text */) | 1663 string16 /* text */) |
| 1650 | 1664 |
| 1651 // Request that the browser load a font into shared memory for us. | 1665 // Request that the browser load a font into shared memory for us. |
| 1652 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_LoadFont, | 1666 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_LoadFont, |
| 1653 FontDescriptor /* font to load */, | 1667 FontDescriptor /* font to load */, |
| 1654 uint32 /* buffer size */, | 1668 uint32 /* buffer size */, |
| 1655 base::SharedMemoryHandle /* font data */) | 1669 base::SharedMemoryHandle /* font data */) |
| 1670 | |
| 1671 IPC_MESSAGE_ROUTED1(ViewHostMsg_GotCharacterIndexForPoint, | |
| 1672 uint) | |
|
jam
2011/01/21 18:51:07
nit: convention is to have each parameter on a sep
Robert Sesek
2011/01/21 23:40:07
Done.
| |
| 1673 IPC_MESSAGE_ROUTED1(ViewHostMsg_GotFirstRectForRange, gfx::Rect) | |
| 1674 IPC_MESSAGE_ROUTED1(ViewHostMsg_GotStringForRange, | |
| 1675 string16) | |
| 1656 #endif | 1676 #endif |
| 1657 | 1677 |
| 1658 #if defined(OS_WIN) | 1678 #if defined(OS_WIN) |
| 1659 // Request that the given font be loaded by the browser so it's cached by the | 1679 // Request that the given font be loaded by the browser so it's cached by the |
| 1660 // OS. Please see ChildProcessHost::PreCacheFont for details. | 1680 // OS. Please see ChildProcessHost::PreCacheFont for details. |
| 1661 IPC_SYNC_MESSAGE_CONTROL1_0(ViewHostMsg_PreCacheFont, | 1681 IPC_SYNC_MESSAGE_CONTROL1_0(ViewHostMsg_PreCacheFont, |
| 1662 LOGFONT /* font data */) | 1682 LOGFONT /* font data */) |
| 1663 #endif // defined(OS_WIN) | 1683 #endif // defined(OS_WIN) |
| 1664 | 1684 |
| 1665 // Returns WebScreenInfo corresponding to the view. | 1685 // Returns WebScreenInfo corresponding to the view. |
| 1666 // TODO(shess): Provide a mapping from reply_msg->routing_id() to | 1686 // TODO(shess): Provide a mapping from reply_msg->routing_id() to |
| 1667 // HWND so that we can eliminate the NativeViewId parameter. | 1687 // HWND so that we can eliminate the NativeViewId parameter. |
| 1668 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetScreenInfo, | 1688 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetScreenInfo, |
| 1669 gfx::NativeViewId /* view */, | 1689 gfx::NativeViewId /* view */, |
| 1670 WebKit::WebScreenInfo /* results */) | 1690 WebKit::WebScreenInfo /* results */) |
| 1671 | 1691 |
| 1672 // Send the tooltip text for the current mouse position to the browser. | 1692 // Send the tooltip text for the current mouse position to the browser. |
| 1673 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetTooltipText, | 1693 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetTooltipText, |
| 1674 std::wstring /* tooltip text string */, | 1694 std::wstring /* tooltip text string */, |
| 1675 WebKit::WebTextDirection /* text direction hint */) | 1695 WebKit::WebTextDirection /* text direction hint */) |
| 1676 | 1696 |
| 1677 // Notification that the text selection has changed. | 1697 // Notification that the text selection has changed. |
| 1678 IPC_MESSAGE_ROUTED1(ViewHostMsg_SelectionChanged, | 1698 IPC_MESSAGE_ROUTED3(ViewHostMsg_SelectionChanged, |
| 1679 std::string /* currently selected text */) | 1699 std::string /* currently selected text */, |
| 1700 int /* selection range start */, | |
| 1701 int /* selection range end */) | |
| 1680 | 1702 |
| 1681 // Asks the browser to display the file chooser. The result is returned in a | 1703 // Asks the browser to display the file chooser. The result is returned in a |
| 1682 // ViewHost_RunFileChooserResponse message. | 1704 // ViewHost_RunFileChooserResponse message. |
| 1683 IPC_MESSAGE_ROUTED1(ViewHostMsg_RunFileChooser, | 1705 IPC_MESSAGE_ROUTED1(ViewHostMsg_RunFileChooser, |
| 1684 ViewHostMsg_RunFileChooser_Params) | 1706 ViewHostMsg_RunFileChooser_Params) |
| 1685 | 1707 |
| 1686 // Notification that forms have been seen that are candidates for | 1708 // Notification that forms have been seen that are candidates for |
| 1687 // filling/submitting by the AutoFillManager. | 1709 // filling/submitting by the AutoFillManager. |
| 1688 IPC_MESSAGE_ROUTED1(ViewHostMsg_FormsSeen, | 1710 IPC_MESSAGE_ROUTED1(ViewHostMsg_FormsSeen, |
| 1689 std::vector<webkit_glue::FormData> /* forms */) | 1711 std::vector<webkit_glue::FormData> /* forms */) |
| (...skipping 944 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2634 int /* request_id */, | 2656 int /* request_id */, |
| 2635 PP_Flash_NetAddress /* addr */) | 2657 PP_Flash_NetAddress /* addr */) |
| 2636 | 2658 |
| 2637 // JavaScript related messages ----------------------------------------------- | 2659 // JavaScript related messages ----------------------------------------------- |
| 2638 | 2660 |
| 2639 // Notify the JavaScript engine in the render to change its parameters | 2661 // Notify the JavaScript engine in the render to change its parameters |
| 2640 // while performing stress testing. | 2662 // while performing stress testing. |
| 2641 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl, | 2663 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl, |
| 2642 int /* cmd */, | 2664 int /* cmd */, |
| 2643 int /* param */) | 2665 int /* param */) |
| OLD | NEW |