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/process.h" | 8 #include "base/process.h" |
9 #include "base/shared_memory.h" | 9 #include "base/shared_memory.h" |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
11 #include "cc/compositor_frame.h" | 11 #include "cc/compositor_frame.h" |
12 #include "cc/compositor_frame_ack.h" | 12 #include "cc/compositor_frame_ack.h" |
13 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
14 #include "content/common/content_param_traits.h" | 14 #include "content/common/content_param_traits.h" |
15 #include "content/common/edit_command.h" | 15 #include "content/common/edit_command.h" |
16 #include "content/common/navigation_gesture.h" | 16 #include "content/common/navigation_gesture.h" |
17 #include "content/common/pepper_renderer_instance_data.h" | 17 #include "content/common/pepper_renderer_instance_data.h" |
18 #include "content/common/view_message_enums.h" | 18 #include "content/common/view_message_enums.h" |
19 #include "content/port/common/input_event_ack_state.h" | 19 #include "content/port/common/input_event_ack_state.h" |
| 20 #include "content/public/common/accessibility_mode.h" |
20 #include "content/public/common/common_param_traits.h" | 21 #include "content/public/common/common_param_traits.h" |
21 #include "content/public/common/context_menu_params.h" | 22 #include "content/public/common/context_menu_params.h" |
22 #include "content/public/common/file_chooser_params.h" | 23 #include "content/public/common/file_chooser_params.h" |
23 #include "content/public/common/frame_navigate_params.h" | 24 #include "content/public/common/frame_navigate_params.h" |
24 #include "content/public/common/javascript_message_type.h" | 25 #include "content/public/common/javascript_message_type.h" |
25 #include "content/public/common/page_zoom.h" | 26 #include "content/public/common/page_zoom.h" |
26 #include "content/public/common/referrer.h" | 27 #include "content/public/common/referrer.h" |
27 #include "content/public/common/renderer_preferences.h" | 28 #include "content/public/common/renderer_preferences.h" |
28 #include "content/public/common/stop_find_action.h" | 29 #include "content/public/common/stop_find_action.h" |
29 #include "content/public/common/three_d_api_types.h" | 30 #include "content/public/common/three_d_api_types.h" |
(...skipping 27 matching lines...) Expand all Loading... |
57 | 58 |
58 #if defined(OS_MACOSX) | 59 #if defined(OS_MACOSX) |
59 #include "content/common/mac/font_descriptor.h" | 60 #include "content/common/mac/font_descriptor.h" |
60 #endif | 61 #endif |
61 | 62 |
62 #undef IPC_MESSAGE_EXPORT | 63 #undef IPC_MESSAGE_EXPORT |
63 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 64 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
64 | 65 |
65 #define IPC_MESSAGE_START ViewMsgStart | 66 #define IPC_MESSAGE_START ViewMsgStart |
66 | 67 |
67 IPC_ENUM_TRAITS(AccessibilityMode) | 68 IPC_ENUM_TRAITS(content::AccessibilityMode) |
68 IPC_ENUM_TRAITS(ViewMsg_Navigate_Type::Value) | 69 IPC_ENUM_TRAITS(ViewMsg_Navigate_Type::Value) |
69 IPC_ENUM_TRAITS(WebKit::WebContextMenuData::MediaType) | 70 IPC_ENUM_TRAITS(WebKit::WebContextMenuData::MediaType) |
70 IPC_ENUM_TRAITS(WebKit::WebMediaPlayerAction::Type) | 71 IPC_ENUM_TRAITS(WebKit::WebMediaPlayerAction::Type) |
71 IPC_ENUM_TRAITS(WebKit::WebPluginAction::Type) | 72 IPC_ENUM_TRAITS(WebKit::WebPluginAction::Type) |
72 IPC_ENUM_TRAITS(WebKit::WebPopupType) | 73 IPC_ENUM_TRAITS(WebKit::WebPopupType) |
73 IPC_ENUM_TRAITS(WebKit::WebTextDirection) | 74 IPC_ENUM_TRAITS(WebKit::WebTextDirection) |
74 IPC_ENUM_TRAITS(WebMenuItem::Type) | 75 IPC_ENUM_TRAITS(WebMenuItem::Type) |
75 IPC_ENUM_TRAITS(WindowContainerType) | 76 IPC_ENUM_TRAITS(WindowContainerType) |
76 IPC_ENUM_TRAITS(content::FileChooserParams::Mode) | 77 IPC_ENUM_TRAITS(content::FileChooserParams::Mode) |
77 IPC_ENUM_TRAITS(content::InputEventAckState) | 78 IPC_ENUM_TRAITS(content::InputEventAckState) |
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
658 | 659 |
659 // The initial page ID to use for this view, which must be larger than any | 660 // The initial page ID to use for this view, which must be larger than any |
660 // existing navigation that might be loaded in the view. Page IDs are unique | 661 // existing navigation that might be loaded in the view. Page IDs are unique |
661 // to a view and are only updated by the renderer after this initial value. | 662 // to a view and are only updated by the renderer after this initial value. |
662 IPC_STRUCT_MEMBER(int32, next_page_id) | 663 IPC_STRUCT_MEMBER(int32, next_page_id) |
663 | 664 |
664 // The properties of the screen associated with the view. | 665 // The properties of the screen associated with the view. |
665 IPC_STRUCT_MEMBER(WebKit::WebScreenInfo, screen_info) | 666 IPC_STRUCT_MEMBER(WebKit::WebScreenInfo, screen_info) |
666 | 667 |
667 // The accessibility mode of the renderer. | 668 // The accessibility mode of the renderer. |
668 IPC_STRUCT_MEMBER(AccessibilityMode, accessibility_mode) | 669 IPC_STRUCT_MEMBER(content::AccessibilityMode, accessibility_mode) |
669 IPC_STRUCT_END() | 670 IPC_STRUCT_END() |
670 | 671 |
671 IPC_STRUCT_BEGIN(ViewMsg_PostMessage_Params) | 672 IPC_STRUCT_BEGIN(ViewMsg_PostMessage_Params) |
672 // The serialized script value. | 673 // The serialized script value. |
673 IPC_STRUCT_MEMBER(string16, data) | 674 IPC_STRUCT_MEMBER(string16, data) |
674 | 675 |
675 // When sent to the browser, this is the routing ID of the source frame in | 676 // When sent to the browser, this is the routing ID of the source frame in |
676 // the source process. The browser replaces it with the routing ID of the | 677 // the source process. The browser replaces it with the routing ID of the |
677 // equivalent (swapped out) frame in the destination process. | 678 // equivalent (swapped out) frame in the destination process. |
678 IPC_STRUCT_MEMBER(int, source_routing_id) | 679 IPC_STRUCT_MEMBER(int, source_routing_id) |
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1284 IPC_MESSAGE_ROUTED2(ViewMsg_SavePageAsMHTML, | 1285 IPC_MESSAGE_ROUTED2(ViewMsg_SavePageAsMHTML, |
1285 int /* job_id */, | 1286 int /* job_id */, |
1286 IPC::PlatformFileForTransit /* file handle */) | 1287 IPC::PlatformFileForTransit /* file handle */) |
1287 | 1288 |
1288 // Temporary message to diagnose an unexpected condition in WebContentsImpl. | 1289 // Temporary message to diagnose an unexpected condition in WebContentsImpl. |
1289 IPC_MESSAGE_CONTROL1(ViewMsg_TempCrashWithData, | 1290 IPC_MESSAGE_CONTROL1(ViewMsg_TempCrashWithData, |
1290 GURL /* data */) | 1291 GURL /* data */) |
1291 | 1292 |
1292 // Change the accessibility mode in the renderer process. | 1293 // Change the accessibility mode in the renderer process. |
1293 IPC_MESSAGE_ROUTED1(ViewMsg_SetAccessibilityMode, | 1294 IPC_MESSAGE_ROUTED1(ViewMsg_SetAccessibilityMode, |
1294 AccessibilityMode) | 1295 content::AccessibilityMode) |
1295 | 1296 |
1296 // An acknowledge to ViewHostMsg_MultipleTargetsTouched to notify the renderer | 1297 // An acknowledge to ViewHostMsg_MultipleTargetsTouched to notify the renderer |
1297 // process to release the magnified image. | 1298 // process to release the magnified image. |
1298 IPC_MESSAGE_ROUTED1(ViewMsg_ReleaseDisambiguationPopupDIB, | 1299 IPC_MESSAGE_ROUTED1(ViewMsg_ReleaseDisambiguationPopupDIB, |
1299 TransportDIB::Handle /* DIB handle */) | 1300 TransportDIB::Handle /* DIB handle */) |
1300 | 1301 |
1301 // Notifies the renderer that a snapshot has been retrieved. | 1302 // Notifies the renderer that a snapshot has been retrieved. |
1302 IPC_MESSAGE_ROUTED3(ViewMsg_WindowSnapshotCompleted, | 1303 IPC_MESSAGE_ROUTED3(ViewMsg_WindowSnapshotCompleted, |
1303 int /* snapshot_id */, | 1304 int /* snapshot_id */, |
1304 gfx::Size /* size */, | 1305 gfx::Size /* size */, |
(...skipping 1113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2418 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters | 2419 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters |
2419 // for details. | 2420 // for details. |
2420 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, | 2421 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, |
2421 LOGFONT /* font_data */, | 2422 LOGFONT /* font_data */, |
2422 string16 /* characters */) | 2423 string16 /* characters */) |
2423 #endif | 2424 #endif |
2424 | 2425 |
2425 // Adding a new message? Stick to the sort order above: first platform | 2426 // Adding a new message? Stick to the sort order above: first platform |
2426 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2427 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
2427 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2428 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |