| 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_END() |
| 147 |
| 142 IPC_STRUCT_TRAITS_BEGIN(WebKit::WebRect) | 148 IPC_STRUCT_TRAITS_BEGIN(WebKit::WebRect) |
| 143 IPC_STRUCT_TRAITS_MEMBER(x) | 149 IPC_STRUCT_TRAITS_MEMBER(x) |
| 144 IPC_STRUCT_TRAITS_MEMBER(y) | 150 IPC_STRUCT_TRAITS_MEMBER(y) |
| 145 IPC_STRUCT_TRAITS_MEMBER(width) | 151 IPC_STRUCT_TRAITS_MEMBER(width) |
| 146 IPC_STRUCT_TRAITS_MEMBER(height) | 152 IPC_STRUCT_TRAITS_MEMBER(height) |
| 147 IPC_STRUCT_TRAITS_END() | 153 IPC_STRUCT_TRAITS_END() |
| 148 | 154 |
| 149 IPC_STRUCT_TRAITS_BEGIN(WebKit::WebScreenInfo) | 155 IPC_STRUCT_TRAITS_BEGIN(WebKit::WebScreenInfo) |
| 150 IPC_STRUCT_TRAITS_MEMBER(verticalDPI) | 156 IPC_STRUCT_TRAITS_MEMBER(verticalDPI) |
| 151 IPC_STRUCT_TRAITS_MEMBER(horizontalDPI) | 157 IPC_STRUCT_TRAITS_MEMBER(horizontalDPI) |
| (...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 859 IPC_MESSAGE_ROUTED2(ViewMsg_CopyImageAt, | 865 IPC_MESSAGE_ROUTED2(ViewMsg_CopyImageAt, |
| 860 int /* x */, | 866 int /* x */, |
| 861 int /* y */) | 867 int /* y */) |
| 862 | 868 |
| 863 // Tells the renderer to perform the given action on the media player | 869 // Tells the renderer to perform the given action on the media player |
| 864 // located at the given point. | 870 // located at the given point. |
| 865 IPC_MESSAGE_ROUTED2(ViewMsg_MediaPlayerActionAt, | 871 IPC_MESSAGE_ROUTED2(ViewMsg_MediaPlayerActionAt, |
| 866 gfx::Point, /* location */ | 872 gfx::Point, /* location */ |
| 867 WebKit::WebMediaPlayerAction) | 873 WebKit::WebMediaPlayerAction) |
| 868 | 874 |
| 875 // Tells the renderer to perform the given action on the plugin. |
| 876 IPC_MESSAGE_ROUTED1(ViewMsg_PluginAction, |
| 877 WebKit::WebPluginAction) |
| 878 |
| 869 // Request for the renderer to evaluate an xpath to a frame and execute a | 879 // Request for the renderer to evaluate an xpath to a frame and execute a |
| 870 // javascript: url in that frame's context. The message is completely | 880 // javascript: url in that frame's context. The message is completely |
| 871 // asynchronous and no corresponding response message is sent back. | 881 // asynchronous and no corresponding response message is sent back. |
| 872 // | 882 // |
| 873 // frame_xpath contains the modified xpath notation to identify an inner | 883 // frame_xpath contains the modified xpath notation to identify an inner |
| 874 // subframe (starting from the root frame). It is a concatenation of | 884 // subframe (starting from the root frame). It is a concatenation of |
| 875 // number of smaller xpaths delimited by '\n'. Each chunk in the string can | 885 // number of smaller xpaths delimited by '\n'. Each chunk in the string can |
| 876 // be evaluated to a frame in its parent-frame's context. | 886 // be evaluated to a frame in its parent-frame's context. |
| 877 // | 887 // |
| 878 // Example: /html/body/iframe/\n/html/body/div/iframe/\n/frameset/frame[0] | 888 // Example: /html/body/iframe/\n/html/body/div/iframe/\n/frameset/frame[0] |
| (...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1963 media::MediaLogEvent /* event */) | 1973 media::MediaLogEvent /* event */) |
| 1964 | 1974 |
| 1965 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message | 1975 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message |
| 1966 // being sent back. | 1976 // being sent back. |
| 1967 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) | 1977 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) |
| 1968 | 1978 |
| 1969 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent | 1979 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent |
| 1970 // whenever the mouse is unlocked (which may or may not be caused by | 1980 // whenever the mouse is unlocked (which may or may not be caused by |
| 1971 // ViewHostMsg_UnlockMouse). | 1981 // ViewHostMsg_UnlockMouse). |
| 1972 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) | 1982 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) |
| OLD | NEW |