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/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "content/public/common/window_container_type.h" | 23 #include "content/public/common/window_container_type.h" |
24 #include "ipc/ipc_channel_handle.h" | 24 #include "ipc/ipc_channel_handle.h" |
25 #include "ipc/ipc_message_macros.h" | 25 #include "ipc/ipc_message_macros.h" |
26 #include "ipc/ipc_platform_file.h" | 26 #include "ipc/ipc_platform_file.h" |
27 #include "media/base/media_log_event.h" | 27 #include "media/base/media_log_event.h" |
28 #include "third_party/skia/include/core/SkBitmap.h" | 28 #include "third_party/skia/include/core/SkBitmap.h" |
29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli
ne.h" | 29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli
ne.h" |
30 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 30 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
31 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" | 31 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" |
32 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction.
h" | 32 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction.
h" |
| 33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginAction.h" |
33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" | 34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" |
34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" | 35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" |
35 #include "ui/base/ime/text_input_type.h" | 36 #include "ui/base/ime/text_input_type.h" |
36 #include "ui/base/javascript_message_type.h" | 37 #include "ui/base/javascript_message_type.h" |
37 #include "ui/base/range/range.h" | 38 #include "ui/base/range/range.h" |
38 #include "ui/gfx/rect.h" | 39 #include "ui/gfx/rect.h" |
39 #include "webkit/glue/context_menu.h" | 40 #include "webkit/glue/context_menu.h" |
40 #include "webkit/glue/webcookie.h" | 41 #include "webkit/glue/webcookie.h" |
41 #include "webkit/glue/webmenuitem.h" | 42 #include "webkit/glue/webmenuitem.h" |
42 #include "webkit/glue/webpreferences.h" | 43 #include "webkit/glue/webpreferences.h" |
43 #include "webkit/glue/webaccessibility.h" | 44 #include "webkit/glue/webaccessibility.h" |
44 #include "webkit/plugins/npapi/webplugin.h" | 45 #include "webkit/plugins/npapi/webplugin.h" |
45 | 46 |
46 #if defined(OS_MACOSX) | 47 #if defined(OS_MACOSX) |
47 #include "content/common/mac/font_descriptor.h" | 48 #include "content/common/mac/font_descriptor.h" |
48 #endif | 49 #endif |
49 | 50 |
50 #undef IPC_MESSAGE_EXPORT | 51 #undef IPC_MESSAGE_EXPORT |
51 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 52 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
52 | 53 |
53 #define IPC_MESSAGE_START ViewMsgStart | 54 #define IPC_MESSAGE_START ViewMsgStart |
54 | 55 |
55 IPC_ENUM_TRAITS(CSSColors::CSSColorName) | 56 IPC_ENUM_TRAITS(CSSColors::CSSColorName) |
56 IPC_ENUM_TRAITS(NavigationGesture) | 57 IPC_ENUM_TRAITS(NavigationGesture) |
57 IPC_ENUM_TRAITS(ViewHostMsg_AccEvent::Value) | 58 IPC_ENUM_TRAITS(ViewHostMsg_AccEvent::Value) |
58 IPC_ENUM_TRAITS(ViewMsg_Navigate_Type::Value) | 59 IPC_ENUM_TRAITS(ViewMsg_Navigate_Type::Value) |
59 IPC_ENUM_TRAITS(WebKit::WebContextMenuData::MediaType) | 60 IPC_ENUM_TRAITS(WebKit::WebContextMenuData::MediaType) |
60 IPC_ENUM_TRAITS(WebKit::WebMediaPlayerAction::Type) | 61 IPC_ENUM_TRAITS(WebKit::WebMediaPlayerAction::Type) |
| 62 IPC_ENUM_TRAITS(WebKit::WebPluginAction::Type) |
61 IPC_ENUM_TRAITS(WebKit::WebPopupType) | 63 IPC_ENUM_TRAITS(WebKit::WebPopupType) |
62 IPC_ENUM_TRAITS(WebKit::WebReferrerPolicy) | 64 IPC_ENUM_TRAITS(WebKit::WebReferrerPolicy) |
63 IPC_ENUM_TRAITS(WebKit::WebTextDirection) | 65 IPC_ENUM_TRAITS(WebKit::WebTextDirection) |
64 IPC_ENUM_TRAITS(WebMenuItem::Type) | 66 IPC_ENUM_TRAITS(WebMenuItem::Type) |
65 IPC_ENUM_TRAITS(WindowContainerType) | 67 IPC_ENUM_TRAITS(WindowContainerType) |
66 IPC_ENUM_TRAITS(content::FileChooserParams::Mode) | 68 IPC_ENUM_TRAITS(content::FileChooserParams::Mode) |
67 IPC_ENUM_TRAITS(content::PageZoom) | 69 IPC_ENUM_TRAITS(content::PageZoom) |
68 IPC_ENUM_TRAITS(content::RendererPreferencesHintingEnum) | 70 IPC_ENUM_TRAITS(content::RendererPreferencesHintingEnum) |
69 IPC_ENUM_TRAITS(content::RendererPreferencesSubpixelRenderingEnum) | 71 IPC_ENUM_TRAITS(content::RendererPreferencesSubpixelRenderingEnum) |
70 IPC_ENUM_TRAITS(content::StopFindAction) | 72 IPC_ENUM_TRAITS(content::StopFindAction) |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 IPC_STRUCT_TRAITS_MEMBER(forward) | 134 IPC_STRUCT_TRAITS_MEMBER(forward) |
133 IPC_STRUCT_TRAITS_MEMBER(matchCase) | 135 IPC_STRUCT_TRAITS_MEMBER(matchCase) |
134 IPC_STRUCT_TRAITS_MEMBER(findNext) | 136 IPC_STRUCT_TRAITS_MEMBER(findNext) |
135 IPC_STRUCT_TRAITS_END() | 137 IPC_STRUCT_TRAITS_END() |
136 | 138 |
137 IPC_STRUCT_TRAITS_BEGIN(WebKit::WebMediaPlayerAction) | 139 IPC_STRUCT_TRAITS_BEGIN(WebKit::WebMediaPlayerAction) |
138 IPC_STRUCT_TRAITS_MEMBER(type) | 140 IPC_STRUCT_TRAITS_MEMBER(type) |
139 IPC_STRUCT_TRAITS_MEMBER(enable) | 141 IPC_STRUCT_TRAITS_MEMBER(enable) |
140 IPC_STRUCT_TRAITS_END() | 142 IPC_STRUCT_TRAITS_END() |
141 | 143 |
| 144 IPC_STRUCT_TRAITS_BEGIN(WebKit::WebPluginAction) |
| 145 IPC_STRUCT_TRAITS_MEMBER(type) |
| 146 IPC_STRUCT_TRAITS_MEMBER(enable) |
| 147 IPC_STRUCT_TRAITS_END() |
| 148 |
142 IPC_STRUCT_TRAITS_BEGIN(WebKit::WebRect) | 149 IPC_STRUCT_TRAITS_BEGIN(WebKit::WebRect) |
143 IPC_STRUCT_TRAITS_MEMBER(x) | 150 IPC_STRUCT_TRAITS_MEMBER(x) |
144 IPC_STRUCT_TRAITS_MEMBER(y) | 151 IPC_STRUCT_TRAITS_MEMBER(y) |
145 IPC_STRUCT_TRAITS_MEMBER(width) | 152 IPC_STRUCT_TRAITS_MEMBER(width) |
146 IPC_STRUCT_TRAITS_MEMBER(height) | 153 IPC_STRUCT_TRAITS_MEMBER(height) |
147 IPC_STRUCT_TRAITS_END() | 154 IPC_STRUCT_TRAITS_END() |
148 | 155 |
149 IPC_STRUCT_TRAITS_BEGIN(WebKit::WebScreenInfo) | 156 IPC_STRUCT_TRAITS_BEGIN(WebKit::WebScreenInfo) |
150 IPC_STRUCT_TRAITS_MEMBER(verticalDPI) | 157 IPC_STRUCT_TRAITS_MEMBER(verticalDPI) |
151 IPC_STRUCT_TRAITS_MEMBER(horizontalDPI) | 158 IPC_STRUCT_TRAITS_MEMBER(horizontalDPI) |
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
862 IPC_MESSAGE_ROUTED2(ViewMsg_CopyImageAt, | 869 IPC_MESSAGE_ROUTED2(ViewMsg_CopyImageAt, |
863 int /* x */, | 870 int /* x */, |
864 int /* y */) | 871 int /* y */) |
865 | 872 |
866 // Tells the renderer to perform the given action on the media player | 873 // Tells the renderer to perform the given action on the media player |
867 // located at the given point. | 874 // located at the given point. |
868 IPC_MESSAGE_ROUTED2(ViewMsg_MediaPlayerActionAt, | 875 IPC_MESSAGE_ROUTED2(ViewMsg_MediaPlayerActionAt, |
869 gfx::Point, /* location */ | 876 gfx::Point, /* location */ |
870 WebKit::WebMediaPlayerAction) | 877 WebKit::WebMediaPlayerAction) |
871 | 878 |
| 879 // Tells the renderer to perform the given action on the plugin located at |
| 880 // the given point. |
| 881 IPC_MESSAGE_ROUTED2(ViewMsg_PluginActionAt, |
| 882 gfx::Point, /* location */ |
| 883 WebKit::WebPluginAction) |
| 884 |
872 // Request for the renderer to evaluate an xpath to a frame and execute a | 885 // Request for the renderer to evaluate an xpath to a frame and execute a |
873 // javascript: url in that frame's context. The message is completely | 886 // javascript: url in that frame's context. The message is completely |
874 // asynchronous and no corresponding response message is sent back. | 887 // asynchronous and no corresponding response message is sent back. |
875 // | 888 // |
876 // frame_xpath contains the modified xpath notation to identify an inner | 889 // frame_xpath contains the modified xpath notation to identify an inner |
877 // subframe (starting from the root frame). It is a concatenation of | 890 // subframe (starting from the root frame). It is a concatenation of |
878 // number of smaller xpaths delimited by '\n'. Each chunk in the string can | 891 // number of smaller xpaths delimited by '\n'. Each chunk in the string can |
879 // be evaluated to a frame in its parent-frame's context. | 892 // be evaluated to a frame in its parent-frame's context. |
880 // | 893 // |
881 // Example: /html/body/iframe/\n/html/body/div/iframe/\n/frameset/frame[0] | 894 // Example: /html/body/iframe/\n/html/body/div/iframe/\n/frameset/frame[0] |
(...skipping 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1962 media::MediaLogEvent /* event */) | 1975 media::MediaLogEvent /* event */) |
1963 | 1976 |
1964 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message | 1977 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message |
1965 // being sent back. | 1978 // being sent back. |
1966 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) | 1979 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) |
1967 | 1980 |
1968 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent | 1981 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent |
1969 // whenever the mouse is unlocked (which may or may not be caused by | 1982 // whenever the mouse is unlocked (which may or may not be caused by |
1970 // ViewHostMsg_UnlockMouse). | 1983 // ViewHostMsg_UnlockMouse). |
1971 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) | 1984 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) |
OLD | NEW |