| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // This header is meant to be included in multiple passes, hence no traditional | 5 // This header is meant to be included in multiple passes, hence no traditional |
| 6 // header guard. | 6 // header guard. |
| 7 // See ipc_message_macros.h for explanation of the macros and passes. | 7 // See ipc_message_macros.h for explanation of the macros and passes. |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
| 13 | 13 |
| 14 #include "base/clipboard.h" | 14 #include "base/clipboard.h" |
| 15 #include "base/gfx/rect.h" | 15 #include "base/gfx/rect.h" |
| 16 #include "base/gfx/native_widget_types.h" | 16 #include "base/gfx/native_widget_types.h" |
| 17 #include "base/shared_memory.h" | 17 #include "base/shared_memory.h" |
| 18 #include "chrome/common/ipc_message_macros.h" | 18 #include "chrome/common/ipc_message_macros.h" |
| 19 #include "chrome/common/transport_dib.h" | 19 #include "chrome/common/transport_dib.h" |
| 20 #include "skia/include/SkBitmap.h" | 20 #include "skia/include/SkBitmap.h" |
| 21 #include "webkit/glue/dom_operations.h" | 21 #include "webkit/glue/dom_operations.h" |
| 22 #include "webkit/glue/screen_info.h" | |
| 23 #include "webkit/glue/webcursor.h" | 22 #include "webkit/glue/webcursor.h" |
| 24 #include "webkit/glue/webplugin.h" | 23 #include "webkit/glue/webplugin.h" |
| 25 | 24 |
| 26 // TODO(mpcomplete): rename ViewMsg and ViewHostMsg to something that makes | 25 // TODO(mpcomplete): rename ViewMsg and ViewHostMsg to something that makes |
| 27 // more sense with our current design. | 26 // more sense with our current design. |
| 28 | 27 |
| 29 //----------------------------------------------------------------------------- | 28 //----------------------------------------------------------------------------- |
| 30 // RenderView messages | 29 // RenderView messages |
| 31 // These are messages sent from the browser to the renderer process. | 30 // These are messages sent from the browser to the renderer process. |
| 32 | 31 |
| (...skipping 842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 875 string16 /* markup */, | 874 string16 /* markup */, |
| 876 GURL /* url */) | 875 GURL /* url */) |
| 877 | 876 |
| 878 #if defined(OS_WIN) | 877 #if defined(OS_WIN) |
| 879 // Request that the given font be loaded by the browser. | 878 // Request that the given font be loaded by the browser. |
| 880 // Please see ResourceMessageFilter::OnLoadFont for details. | 879 // Please see ResourceMessageFilter::OnLoadFont for details. |
| 881 IPC_SYNC_MESSAGE_CONTROL1_0(ViewHostMsg_LoadFont, | 880 IPC_SYNC_MESSAGE_CONTROL1_0(ViewHostMsg_LoadFont, |
| 882 LOGFONT /* font data */) | 881 LOGFONT /* font data */) |
| 883 #endif // defined(OS_WIN) | 882 #endif // defined(OS_WIN) |
| 884 | 883 |
| 885 // Returns ScreenInfo corresponding to the given window. | 884 // Returns WebScreenInfo corresponding to the view. |
| 885 // TODO(darin): Change this to be a routed message so we don't need to pass |
| 886 // the view id. |
| 886 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetScreenInfo, | 887 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetScreenInfo, |
| 887 gfx::NativeViewId /* window */, | 888 gfx::NativeViewId /* native view id */, |
| 888 webkit_glue::ScreenInfo /* results */) | 889 WebKit::WebScreenInfo /* results */) |
| 889 | 890 |
| 890 // Send the tooltip text for the current mouse position to the browser. | 891 // Send the tooltip text for the current mouse position to the browser. |
| 891 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetTooltipText, | 892 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetTooltipText, |
| 892 std::wstring /* tooltip text string */) | 893 std::wstring /* tooltip text string */) |
| 893 | 894 |
| 894 // Asks the browser to display the file chooser. The result is returned in a | 895 // Asks the browser to display the file chooser. The result is returned in a |
| 895 // ViewHost_RunFileChooserResponse message. | 896 // ViewHost_RunFileChooserResponse message. |
| 896 IPC_MESSAGE_ROUTED4(ViewHostMsg_RunFileChooser, | 897 IPC_MESSAGE_ROUTED4(ViewHostMsg_RunFileChooser, |
| 897 bool /* multiple_files */, | 898 bool /* multiple_files */, |
| 898 std::wstring /* title */, | 899 std::wstring /* title */, |
| (...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1266 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_OpenChannelToExtension, | 1267 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_OpenChannelToExtension, |
| 1267 std::string /* extension_id */, | 1268 std::string /* extension_id */, |
| 1268 int /* channel_id */) | 1269 int /* channel_id */) |
| 1269 | 1270 |
| 1270 // Send a message to an extension process. The handle is the value returned | 1271 // Send a message to an extension process. The handle is the value returned |
| 1271 // by ViewHostMsg_OpenChannelToExtension. | 1272 // by ViewHostMsg_OpenChannelToExtension. |
| 1272 IPC_MESSAGE_CONTROL2(ViewHostMsg_ExtensionPostMessage, | 1273 IPC_MESSAGE_CONTROL2(ViewHostMsg_ExtensionPostMessage, |
| 1273 int /* channel_id */, | 1274 int /* channel_id */, |
| 1274 std::string /* message */) | 1275 std::string /* message */) |
| 1275 IPC_END_MESSAGES(ViewHost) | 1276 IPC_END_MESSAGES(ViewHost) |
| OLD | NEW |