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 // 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/common_param_traits.h" | 10 #include "content/common/common_param_traits.h" |
11 #include "content/common/css_colors.h" | 11 #include "content/common/css_colors.h" |
12 #include "content/common/edit_command.h" | 12 #include "content/common/edit_command.h" |
13 #include "content/common/navigation_gesture.h" | 13 #include "content/common/navigation_gesture.h" |
14 #include "content/common/page_transition_types.h" | 14 #include "content/common/page_transition_types.h" |
15 #include "content/common/page_zoom.h" | 15 #include "content/common/page_zoom.h" |
16 #include "content/common/renderer_preferences.h" | 16 #include "content/common/renderer_preferences.h" |
17 #include "content/common/webkit_param_traits.h" | 17 #include "content/common/webkit_param_traits.h" |
18 #include "content/common/window_container_type.h" | 18 #include "content/common/window_container_type.h" |
19 #include "ipc/ipc_message_macros.h" | 19 #include "ipc/ipc_message_macros.h" |
20 #include "ipc/ipc_platform_file.h" | 20 #include "ipc/ipc_platform_file.h" |
21 #include "net/base/host_port_pair.h" | 21 #include "net/base/host_port_pair.h" |
22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli
ne.h" | 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli
ne.h" |
23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" | 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" |
24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction.
h" | 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction.
h" |
25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" | 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" |
26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" | 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" |
27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextInputType.h" | 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextInputType.h" |
| 28 #include "ui/base/range/range.h" |
28 #include "ui/gfx/rect.h" | 29 #include "ui/gfx/rect.h" |
29 #include "webkit/glue/context_menu.h" | 30 #include "webkit/glue/context_menu.h" |
30 #include "webkit/glue/password_form.h" | 31 #include "webkit/glue/password_form.h" |
31 #include "webkit/glue/webcookie.h" | 32 #include "webkit/glue/webcookie.h" |
32 #include "webkit/glue/webmenuitem.h" | 33 #include "webkit/glue/webmenuitem.h" |
33 #include "webkit/glue/webpreferences.h" | 34 #include "webkit/glue/webpreferences.h" |
34 #include "webkit/glue/webaccessibility.h" | 35 #include "webkit/glue/webaccessibility.h" |
35 #include "webkit/plugins/npapi/webplugin.h" | 36 #include "webkit/plugins/npapi/webplugin.h" |
36 #include "webkit/plugins/npapi/webplugininfo.h" | 37 #include "webkit/plugins/npapi/webplugininfo.h" |
37 | 38 |
(...skipping 1637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1675 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetScreenInfo, | 1676 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetScreenInfo, |
1676 gfx::NativeViewId /* view */, | 1677 gfx::NativeViewId /* view */, |
1677 WebKit::WebScreenInfo /* results */) | 1678 WebKit::WebScreenInfo /* results */) |
1678 | 1679 |
1679 // Send the tooltip text for the current mouse position to the browser. | 1680 // Send the tooltip text for the current mouse position to the browser. |
1680 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetTooltipText, | 1681 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetTooltipText, |
1681 std::wstring /* tooltip text string */, | 1682 std::wstring /* tooltip text string */, |
1682 WebKit::WebTextDirection /* text direction hint */) | 1683 WebKit::WebTextDirection /* text direction hint */) |
1683 | 1684 |
1684 // Notification that the text selection has changed. | 1685 // Notification that the text selection has changed. |
1685 IPC_MESSAGE_ROUTED1(ViewHostMsg_SelectionChanged, | 1686 IPC_MESSAGE_ROUTED2(ViewHostMsg_SelectionChanged, |
1686 std::string /* currently selected text */) | 1687 std::string /* currently selected text */, |
| 1688 ui::Range /* selection range */) |
1687 | 1689 |
1688 // Asks the browser to display the file chooser. The result is returned in a | 1690 // Asks the browser to display the file chooser. The result is returned in a |
1689 // ViewHost_RunFileChooserResponse message. | 1691 // ViewHost_RunFileChooserResponse message. |
1690 IPC_MESSAGE_ROUTED1(ViewHostMsg_RunFileChooser, | 1692 IPC_MESSAGE_ROUTED1(ViewHostMsg_RunFileChooser, |
1691 ViewHostMsg_RunFileChooser_Params) | 1693 ViewHostMsg_RunFileChooser_Params) |
1692 | 1694 |
1693 // Asks the browser to enumerate a directory. This is equivalent to running | 1695 // Asks the browser to enumerate a directory. This is equivalent to running |
1694 // the file chooser in directory-enumeration mode and having the user select | 1696 // the file chooser in directory-enumeration mode and having the user select |
1695 // the given directory. The result is returned in a | 1697 // the given directory. The result is returned in a |
1696 // ViewMsg_EnumerateDirectoryResponse message. | 1698 // ViewMsg_EnumerateDirectoryResponse message. |
(...skipping 11 matching lines...) Expand all Loading... |
1708 // HWND so that we can eliminate the NativeViewId parameter. | 1710 // HWND so that we can eliminate the NativeViewId parameter. |
1709 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetRootWindowRect, | 1711 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetRootWindowRect, |
1710 gfx::NativeViewId /* window */, | 1712 gfx::NativeViewId /* window */, |
1711 gfx::Rect /* Out: Window location */) | 1713 gfx::Rect /* Out: Window location */) |
1712 | 1714 |
1713 // Required for updating text input state. | 1715 // Required for updating text input state. |
1714 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeUpdateTextInputState, | 1716 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeUpdateTextInputState, |
1715 WebKit::WebTextInputType, /* text_input_type */ | 1717 WebKit::WebTextInputType, /* text_input_type */ |
1716 gfx::Rect /* caret_rect */) | 1718 gfx::Rect /* caret_rect */) |
1717 | 1719 |
| 1720 |
| 1721 // Message sent when the IME text composition range changes. |
| 1722 IPC_MESSAGE_ROUTED1(ViewHostMsg_ImeCompositionRangeChanged, |
| 1723 ui::Range /* composition range */) |
| 1724 |
1718 // Required for cancelling an ongoing input method composition. | 1725 // Required for cancelling an ongoing input method composition. |
1719 IPC_MESSAGE_ROUTED0(ViewHostMsg_ImeCancelComposition) | 1726 IPC_MESSAGE_ROUTED0(ViewHostMsg_ImeCancelComposition) |
1720 | 1727 |
1721 // WebKit and JavaScript error messages to log to the console | 1728 // WebKit and JavaScript error messages to log to the console |
1722 // or debugger UI. | 1729 // or debugger UI. |
1723 IPC_MESSAGE_ROUTED4(ViewHostMsg_AddMessageToConsole, | 1730 IPC_MESSAGE_ROUTED4(ViewHostMsg_AddMessageToConsole, |
1724 int32, /* log level */ | 1731 int32, /* log level */ |
1725 std::wstring, /* msg */ | 1732 std::wstring, /* msg */ |
1726 int32, /* line number */ | 1733 int32, /* line number */ |
1727 std::wstring /* source id */) | 1734 std::wstring /* source id */) |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1965 std::string /* value */) | 1972 std::string /* value */) |
1966 | 1973 |
1967 // Message sent from the renderer to the browser to notify it of events which | 1974 // Message sent from the renderer to the browser to notify it of events which |
1968 // may lead to the cancellation of a prerender. The message is sent only when | 1975 // may lead to the cancellation of a prerender. The message is sent only when |
1969 // the renderer is in prerender mode. | 1976 // the renderer is in prerender mode. |
1970 IPC_MESSAGE_ROUTED0(ViewHostMsg_MaybeCancelPrerenderForHTML5Media) | 1977 IPC_MESSAGE_ROUTED0(ViewHostMsg_MaybeCancelPrerenderForHTML5Media) |
1971 | 1978 |
1972 // Send back a string to be recorded by UserMetrics. | 1979 // Send back a string to be recorded by UserMetrics. |
1973 IPC_MESSAGE_CONTROL1(ViewHostMsg_UserMetricsRecordAction, | 1980 IPC_MESSAGE_CONTROL1(ViewHostMsg_UserMetricsRecordAction, |
1974 std::string /* action */) | 1981 std::string /* action */) |
OLD | NEW |