| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 #if defined(OS_MACOSX) | 64 #if defined(OS_MACOSX) |
| 65 #include "content/common/mac/font_descriptor.h" | 65 #include "content/common/mac/font_descriptor.h" |
| 66 #include "third_party/WebKit/public/web/mac/WebScrollbarTheme.h" | 66 #include "third_party/WebKit/public/web/mac/WebScrollbarTheme.h" |
| 67 #endif | 67 #endif |
| 68 | 68 |
| 69 #undef IPC_MESSAGE_EXPORT | 69 #undef IPC_MESSAGE_EXPORT |
| 70 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 70 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 71 | 71 |
| 72 #define IPC_MESSAGE_START ViewMsgStart | 72 #define IPC_MESSAGE_START ViewMsgStart |
| 73 | 73 |
| 74 IPC_ENUM_TRAITS(AccessibilityMode) | 74 IPC_ENUM_TRAITS(AccessibilityModeFlag) |
| 75 IPC_ENUM_TRAITS(ViewMsg_Navigate_Type::Value) | 75 IPC_ENUM_TRAITS(ViewMsg_Navigate_Type::Value) |
| 76 IPC_ENUM_TRAITS(blink::WebMediaPlayerAction::Type) | 76 IPC_ENUM_TRAITS(blink::WebMediaPlayerAction::Type) |
| 77 IPC_ENUM_TRAITS(blink::WebPluginAction::Type) | 77 IPC_ENUM_TRAITS(blink::WebPluginAction::Type) |
| 78 IPC_ENUM_TRAITS(blink::WebPopupType) | 78 IPC_ENUM_TRAITS(blink::WebPopupType) |
| 79 IPC_ENUM_TRAITS(blink::WebTextDirection) | 79 IPC_ENUM_TRAITS(blink::WebTextDirection) |
| 80 IPC_ENUM_TRAITS(WindowContainerType) | 80 IPC_ENUM_TRAITS(WindowContainerType) |
| 81 IPC_ENUM_TRAITS(content::FaviconURL::IconType) | 81 IPC_ENUM_TRAITS(content::FaviconURL::IconType) |
| 82 IPC_ENUM_TRAITS(content::FileChooserParams::Mode) | 82 IPC_ENUM_TRAITS(content::FileChooserParams::Mode) |
| 83 IPC_ENUM_TRAITS(content::JavaScriptMessageType) | 83 IPC_ENUM_TRAITS(content::JavaScriptMessageType) |
| 84 IPC_ENUM_TRAITS(content::MenuItem::Type) | 84 IPC_ENUM_TRAITS(content::MenuItem::Type) |
| (...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 678 | 678 |
| 679 // The initial page ID to use for this view, which must be larger than any | 679 // The initial page ID to use for this view, which must be larger than any |
| 680 // existing navigation that might be loaded in the view. Page IDs are unique | 680 // existing navigation that might be loaded in the view. Page IDs are unique |
| 681 // to a view and are only updated by the renderer after this initial value. | 681 // to a view and are only updated by the renderer after this initial value. |
| 682 IPC_STRUCT_MEMBER(int32, next_page_id) | 682 IPC_STRUCT_MEMBER(int32, next_page_id) |
| 683 | 683 |
| 684 // The properties of the screen associated with the view. | 684 // The properties of the screen associated with the view. |
| 685 IPC_STRUCT_MEMBER(blink::WebScreenInfo, screen_info) | 685 IPC_STRUCT_MEMBER(blink::WebScreenInfo, screen_info) |
| 686 | 686 |
| 687 // The accessibility mode of the renderer. | 687 // The accessibility mode of the renderer. |
| 688 IPC_STRUCT_MEMBER(AccessibilityMode, accessibility_mode) | 688 IPC_STRUCT_MEMBER(unsigned int, accessibility_mode) |
| 689 | 689 |
| 690 // Specifies whether partially swapping composited buffers is | 690 // Specifies whether partially swapping composited buffers is |
| 691 // allowed for a renderer. Partial swaps will be used if they are both | 691 // allowed for a renderer. Partial swaps will be used if they are both |
| 692 // allowed and supported. | 692 // allowed and supported. |
| 693 IPC_STRUCT_MEMBER(bool, allow_partial_swap) | 693 IPC_STRUCT_MEMBER(bool, allow_partial_swap) |
| 694 IPC_STRUCT_END() | 694 IPC_STRUCT_END() |
| 695 | 695 |
| 696 IPC_STRUCT_BEGIN(ViewMsg_PostMessage_Params) | 696 IPC_STRUCT_BEGIN(ViewMsg_PostMessage_Params) |
| 697 // The serialized script value. | 697 // The serialized script value. |
| 698 IPC_STRUCT_MEMBER(base::string16, data) | 698 IPC_STRUCT_MEMBER(base::string16, data) |
| (...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1187 IPC_MESSAGE_ROUTED2(ViewMsg_SavePageAsMHTML, | 1187 IPC_MESSAGE_ROUTED2(ViewMsg_SavePageAsMHTML, |
| 1188 int /* job_id */, | 1188 int /* job_id */, |
| 1189 IPC::PlatformFileForTransit /* file handle */) | 1189 IPC::PlatformFileForTransit /* file handle */) |
| 1190 | 1190 |
| 1191 // Temporary message to diagnose an unexpected condition in WebContentsImpl. | 1191 // Temporary message to diagnose an unexpected condition in WebContentsImpl. |
| 1192 IPC_MESSAGE_CONTROL1(ViewMsg_TempCrashWithData, | 1192 IPC_MESSAGE_CONTROL1(ViewMsg_TempCrashWithData, |
| 1193 GURL /* data */) | 1193 GURL /* data */) |
| 1194 | 1194 |
| 1195 // Change the accessibility mode in the renderer process. | 1195 // Change the accessibility mode in the renderer process. |
| 1196 IPC_MESSAGE_ROUTED1(ViewMsg_SetAccessibilityMode, | 1196 IPC_MESSAGE_ROUTED1(ViewMsg_SetAccessibilityMode, |
| 1197 AccessibilityMode) | 1197 unsigned int /* accessibility_mode */) |
| 1198 | 1198 |
| 1199 // An acknowledge to ViewHostMsg_MultipleTargetsTouched to notify the renderer | 1199 // An acknowledge to ViewHostMsg_MultipleTargetsTouched to notify the renderer |
| 1200 // process to release the magnified image. | 1200 // process to release the magnified image. |
| 1201 IPC_MESSAGE_ROUTED1(ViewMsg_ReleaseDisambiguationPopupDIB, | 1201 IPC_MESSAGE_ROUTED1(ViewMsg_ReleaseDisambiguationPopupDIB, |
| 1202 TransportDIB::Handle /* DIB handle */) | 1202 TransportDIB::Handle /* DIB handle */) |
| 1203 | 1203 |
| 1204 // Notifies the renderer that a snapshot has been retrieved. | 1204 // Notifies the renderer that a snapshot has been retrieved. |
| 1205 IPC_MESSAGE_ROUTED3(ViewMsg_WindowSnapshotCompleted, | 1205 IPC_MESSAGE_ROUTED3(ViewMsg_WindowSnapshotCompleted, |
| 1206 int /* snapshot_id */, | 1206 int /* snapshot_id */, |
| 1207 gfx::Size /* size */, | 1207 gfx::Size /* size */, |
| (...skipping 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2255 // synchronously (see crbug.com/120597). This IPC message sends the character | 2255 // synchronously (see crbug.com/120597). This IPC message sends the character |
| 2256 // bounds after every composition change to always have correct bound info. | 2256 // bounds after every composition change to always have correct bound info. |
| 2257 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 2257 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
| 2258 gfx::Range /* composition range */, | 2258 gfx::Range /* composition range */, |
| 2259 std::vector<gfx::Rect> /* character bounds */) | 2259 std::vector<gfx::Rect> /* character bounds */) |
| 2260 #endif | 2260 #endif |
| 2261 | 2261 |
| 2262 // Adding a new message? Stick to the sort order above: first platform | 2262 // Adding a new message? Stick to the sort order above: first platform |
| 2263 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2263 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 2264 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2264 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |