| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/memory/shared_memory.h" | 8 #include "base/memory/shared_memory.h" |
| 9 #include "base/process/process.h" | 9 #include "base/process/process.h" |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 #if defined(OS_MACOSX) | 66 #if defined(OS_MACOSX) |
| 67 #include "content/common/mac/font_descriptor.h" | 67 #include "content/common/mac/font_descriptor.h" |
| 68 #include "third_party/WebKit/public/web/mac/WebScrollbarTheme.h" | 68 #include "third_party/WebKit/public/web/mac/WebScrollbarTheme.h" |
| 69 #endif | 69 #endif |
| 70 | 70 |
| 71 #undef IPC_MESSAGE_EXPORT | 71 #undef IPC_MESSAGE_EXPORT |
| 72 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 72 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 73 | 73 |
| 74 #define IPC_MESSAGE_START ViewMsgStart | 74 #define IPC_MESSAGE_START ViewMsgStart |
| 75 | 75 |
| 76 IPC_ENUM_TRAITS(AccessibilityMode) | 76 IPC_ENUM_TRAITS(AccessibilityModeFlag) |
| 77 IPC_ENUM_TRAITS(ViewMsg_Navigate_Type::Value) | 77 IPC_ENUM_TRAITS(ViewMsg_Navigate_Type::Value) |
| 78 IPC_ENUM_TRAITS(blink::WebContextMenuData::MediaType) | 78 IPC_ENUM_TRAITS(blink::WebContextMenuData::MediaType) |
| 79 IPC_ENUM_TRAITS(blink::WebMediaPlayerAction::Type) | 79 IPC_ENUM_TRAITS(blink::WebMediaPlayerAction::Type) |
| 80 IPC_ENUM_TRAITS(blink::WebPluginAction::Type) | 80 IPC_ENUM_TRAITS(blink::WebPluginAction::Type) |
| 81 IPC_ENUM_TRAITS(blink::WebPopupType) | 81 IPC_ENUM_TRAITS(blink::WebPopupType) |
| 82 IPC_ENUM_TRAITS(blink::WebTextDirection) | 82 IPC_ENUM_TRAITS(blink::WebTextDirection) |
| 83 IPC_ENUM_TRAITS(WindowContainerType) | 83 IPC_ENUM_TRAITS(WindowContainerType) |
| 84 IPC_ENUM_TRAITS(content::FaviconURL::IconType) | 84 IPC_ENUM_TRAITS(content::FaviconURL::IconType) |
| 85 IPC_ENUM_TRAITS(content::FileChooserParams::Mode) | 85 IPC_ENUM_TRAITS(content::FileChooserParams::Mode) |
| 86 IPC_ENUM_TRAITS(content::JavaScriptMessageType) | 86 IPC_ENUM_TRAITS(content::JavaScriptMessageType) |
| (...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 736 | 736 |
| 737 // The initial page ID to use for this view, which must be larger than any | 737 // The initial page ID to use for this view, which must be larger than any |
| 738 // existing navigation that might be loaded in the view. Page IDs are unique | 738 // existing navigation that might be loaded in the view. Page IDs are unique |
| 739 // to a view and are only updated by the renderer after this initial value. | 739 // to a view and are only updated by the renderer after this initial value. |
| 740 IPC_STRUCT_MEMBER(int32, next_page_id) | 740 IPC_STRUCT_MEMBER(int32, next_page_id) |
| 741 | 741 |
| 742 // The properties of the screen associated with the view. | 742 // The properties of the screen associated with the view. |
| 743 IPC_STRUCT_MEMBER(blink::WebScreenInfo, screen_info) | 743 IPC_STRUCT_MEMBER(blink::WebScreenInfo, screen_info) |
| 744 | 744 |
| 745 // The accessibility mode of the renderer. | 745 // The accessibility mode of the renderer. |
| 746 IPC_STRUCT_MEMBER(AccessibilityMode, accessibility_mode) | 746 IPC_STRUCT_MEMBER(unsigned int, accessibility_mode) |
| 747 | 747 |
| 748 // Specifies whether partially swapping composited buffers is | 748 // Specifies whether partially swapping composited buffers is |
| 749 // allowed for a renderer. Partial swaps will be used if they are both | 749 // allowed for a renderer. Partial swaps will be used if they are both |
| 750 // allowed and supported. | 750 // allowed and supported. |
| 751 IPC_STRUCT_MEMBER(bool, allow_partial_swap) | 751 IPC_STRUCT_MEMBER(bool, allow_partial_swap) |
| 752 IPC_STRUCT_END() | 752 IPC_STRUCT_END() |
| 753 | 753 |
| 754 IPC_STRUCT_BEGIN(ViewMsg_PostMessage_Params) | 754 IPC_STRUCT_BEGIN(ViewMsg_PostMessage_Params) |
| 755 // The serialized script value. | 755 // The serialized script value. |
| 756 IPC_STRUCT_MEMBER(base::string16, data) | 756 IPC_STRUCT_MEMBER(base::string16, data) |
| (...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1260 IPC_MESSAGE_ROUTED2(ViewMsg_SavePageAsMHTML, | 1260 IPC_MESSAGE_ROUTED2(ViewMsg_SavePageAsMHTML, |
| 1261 int /* job_id */, | 1261 int /* job_id */, |
| 1262 IPC::PlatformFileForTransit /* file handle */) | 1262 IPC::PlatformFileForTransit /* file handle */) |
| 1263 | 1263 |
| 1264 // Temporary message to diagnose an unexpected condition in WebContentsImpl. | 1264 // Temporary message to diagnose an unexpected condition in WebContentsImpl. |
| 1265 IPC_MESSAGE_CONTROL1(ViewMsg_TempCrashWithData, | 1265 IPC_MESSAGE_CONTROL1(ViewMsg_TempCrashWithData, |
| 1266 GURL /* data */) | 1266 GURL /* data */) |
| 1267 | 1267 |
| 1268 // Change the accessibility mode in the renderer process. | 1268 // Change the accessibility mode in the renderer process. |
| 1269 IPC_MESSAGE_ROUTED1(ViewMsg_SetAccessibilityMode, | 1269 IPC_MESSAGE_ROUTED1(ViewMsg_SetAccessibilityMode, |
| 1270 AccessibilityMode) | 1270 unsigned int /* accessibility_mode */) |
| 1271 | 1271 |
| 1272 // An acknowledge to ViewHostMsg_MultipleTargetsTouched to notify the renderer | 1272 // An acknowledge to ViewHostMsg_MultipleTargetsTouched to notify the renderer |
| 1273 // process to release the magnified image. | 1273 // process to release the magnified image. |
| 1274 IPC_MESSAGE_ROUTED1(ViewMsg_ReleaseDisambiguationPopupDIB, | 1274 IPC_MESSAGE_ROUTED1(ViewMsg_ReleaseDisambiguationPopupDIB, |
| 1275 TransportDIB::Handle /* DIB handle */) | 1275 TransportDIB::Handle /* DIB handle */) |
| 1276 | 1276 |
| 1277 // Notifies the renderer that a snapshot has been retrieved. | 1277 // Notifies the renderer that a snapshot has been retrieved. |
| 1278 IPC_MESSAGE_ROUTED3(ViewMsg_WindowSnapshotCompleted, | 1278 IPC_MESSAGE_ROUTED3(ViewMsg_WindowSnapshotCompleted, |
| 1279 int /* snapshot_id */, | 1279 int /* snapshot_id */, |
| 1280 gfx::Size /* size */, | 1280 gfx::Size /* size */, |
| (...skipping 1052 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2333 // synchronously (see crbug.com/120597). This IPC message sends the character | 2333 // synchronously (see crbug.com/120597). This IPC message sends the character |
| 2334 // bounds after every composition change to always have correct bound info. | 2334 // bounds after every composition change to always have correct bound info. |
| 2335 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 2335 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
| 2336 gfx::Range /* composition range */, | 2336 gfx::Range /* composition range */, |
| 2337 std::vector<gfx::Rect> /* character bounds */) | 2337 std::vector<gfx::Rect> /* character bounds */) |
| 2338 #endif | 2338 #endif |
| 2339 | 2339 |
| 2340 // Adding a new message? Stick to the sort order above: first platform | 2340 // Adding a new message? Stick to the sort order above: first platform |
| 2341 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2341 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 2342 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2342 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |