| 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" |
| 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_zoom.h" | |
| 15 #include "content/common/renderer_preferences.h" | 14 #include "content/common/renderer_preferences.h" |
| 16 #include "content/common/view_message_enums.h" | 15 #include "content/common/view_message_enums.h" |
| 17 #include "content/public/common/common_param_traits.h" | 16 #include "content/public/common/common_param_traits.h" |
| 17 #include "content/public/common/page_zoom.h" |
| 18 #include "content/public/common/webkit_param_traits.h" | 18 #include "content/public/common/webkit_param_traits.h" |
| 19 #include "content/public/common/window_container_type.h" | 19 #include "content/public/common/window_container_type.h" |
| 20 #include "ipc/ipc_channel_handle.h" | 20 #include "ipc/ipc_channel_handle.h" |
| 21 #include "ipc/ipc_message_macros.h" | 21 #include "ipc/ipc_message_macros.h" |
| 22 #include "ipc/ipc_platform_file.h" | 22 #include "ipc/ipc_platform_file.h" |
| 23 #include "media/base/media_log_event.h" | 23 #include "media/base/media_log_event.h" |
| 24 #include "net/base/host_port_pair.h" | 24 #include "net/base/host_port_pair.h" |
| 25 #include "third_party/skia/include/core/SkBitmap.h" | 25 #include "third_party/skia/include/core/SkBitmap.h" |
| 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli
ne.h" | 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli
ne.h" |
| 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 44 #include "content/common/mac/font_descriptor.h" | 44 #include "content/common/mac/font_descriptor.h" |
| 45 #endif | 45 #endif |
| 46 | 46 |
| 47 #undef IPC_MESSAGE_EXPORT | 47 #undef IPC_MESSAGE_EXPORT |
| 48 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 48 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 49 | 49 |
| 50 #define IPC_MESSAGE_START ViewMsgStart | 50 #define IPC_MESSAGE_START ViewMsgStart |
| 51 | 51 |
| 52 IPC_ENUM_TRAITS(CSSColors::CSSColorName) | 52 IPC_ENUM_TRAITS(CSSColors::CSSColorName) |
| 53 IPC_ENUM_TRAITS(NavigationGesture) | 53 IPC_ENUM_TRAITS(NavigationGesture) |
| 54 IPC_ENUM_TRAITS(PageZoom::Function) | 54 IPC_ENUM_TRAITS(content::PageZoom) |
| 55 IPC_ENUM_TRAITS(RendererPreferencesHintingEnum) | 55 IPC_ENUM_TRAITS(RendererPreferencesHintingEnum) |
| 56 IPC_ENUM_TRAITS(RendererPreferencesSubpixelRenderingEnum) | 56 IPC_ENUM_TRAITS(RendererPreferencesSubpixelRenderingEnum) |
| 57 IPC_ENUM_TRAITS(ViewHostMsg_AccEvent::Value) | 57 IPC_ENUM_TRAITS(ViewHostMsg_AccEvent::Value) |
| 58 IPC_ENUM_TRAITS(ViewHostMsg_RunFileChooser_Mode::Value) | 58 IPC_ENUM_TRAITS(ViewHostMsg_RunFileChooser_Mode::Value) |
| 59 IPC_ENUM_TRAITS(ViewMsg_Navigate_Type::Value) | 59 IPC_ENUM_TRAITS(ViewMsg_Navigate_Type::Value) |
| 60 IPC_ENUM_TRAITS(ViewMsg_StopFinding_Params::Action) | 60 IPC_ENUM_TRAITS(ViewMsg_StopFinding_Params::Action) |
| 61 IPC_ENUM_TRAITS(WebKit::WebContextMenuData::MediaType) | 61 IPC_ENUM_TRAITS(WebKit::WebContextMenuData::MediaType) |
| 62 IPC_ENUM_TRAITS(WebKit::WebMediaPlayerAction::Type) | 62 IPC_ENUM_TRAITS(WebKit::WebMediaPlayerAction::Type) |
| 63 IPC_ENUM_TRAITS(WebKit::WebPopupType) | 63 IPC_ENUM_TRAITS(WebKit::WebPopupType) |
| 64 IPC_ENUM_TRAITS(WebKit::WebTextDirection) | 64 IPC_ENUM_TRAITS(WebKit::WebTextDirection) |
| (...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 911 std::string /* css string */) | 911 std::string /* css string */) |
| 912 | 912 |
| 913 // External popup menus. | 913 // External popup menus. |
| 914 IPC_MESSAGE_ROUTED1(ViewMsg_SelectPopupMenuItem, | 914 IPC_MESSAGE_ROUTED1(ViewMsg_SelectPopupMenuItem, |
| 915 int /* selected index, -1 means no selection */) | 915 int /* selected index, -1 means no selection */) |
| 916 | 916 |
| 917 // Change the zoom level for the current main frame. If the level actually | 917 // Change the zoom level for the current main frame. If the level actually |
| 918 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser | 918 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser |
| 919 // telling it what url got zoomed and what its current zoom level is. | 919 // telling it what url got zoomed and what its current zoom level is. |
| 920 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, | 920 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, |
| 921 PageZoom::Function /* function */) | 921 content::PageZoom /* function */) |
| 922 | 922 |
| 923 // Set the zoom level for the current main frame. If the level actually | 923 // Set the zoom level for the current main frame. If the level actually |
| 924 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser | 924 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser |
| 925 // telling it what url got zoomed and what its current zoom level is. | 925 // telling it what url got zoomed and what its current zoom level is. |
| 926 IPC_MESSAGE_ROUTED1(ViewMsg_SetZoomLevel, | 926 IPC_MESSAGE_ROUTED1(ViewMsg_SetZoomLevel, |
| 927 double /* zoom_level */) | 927 double /* zoom_level */) |
| 928 | 928 |
| 929 // Set the zoom level for a particular url that the renderer is in the | 929 // Set the zoom level for a particular url that the renderer is in the |
| 930 // process of loading. This will be stored, to be used if the load commits | 930 // process of loading. This will be stored, to be used if the load commits |
| 931 // and ignored otherwise. | 931 // and ignored otherwise. |
| (...skipping 1014 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1946 media::MediaLogEvent /* event */) | 1946 media::MediaLogEvent /* event */) |
| 1947 | 1947 |
| 1948 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message | 1948 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message |
| 1949 // being sent back. | 1949 // being sent back. |
| 1950 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) | 1950 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) |
| 1951 | 1951 |
| 1952 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent | 1952 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent |
| 1953 // whenever the mouse is unlocked (which may or may not be caused by | 1953 // whenever the mouse is unlocked (which may or may not be caused by |
| 1954 // ViewHostMsg_UnlockMouse). | 1954 // ViewHostMsg_UnlockMouse). |
| 1955 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) | 1955 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) |
| OLD | NEW |