| 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 "content/common/common_param_traits.h" | 10 #include "content/common/common_param_traits.h" |
| 10 #include "content/common/css_colors.h" | 11 #include "content/common/css_colors.h" |
| 11 #include "content/common/edit_command.h" | 12 #include "content/common/edit_command.h" |
| 12 #include "content/common/navigation_gesture.h" | 13 #include "content/common/navigation_gesture.h" |
| 13 #include "content/common/page_transition_types.h" | 14 #include "content/common/page_transition_types.h" |
| 14 #include "content/common/page_zoom.h" | 15 #include "content/common/page_zoom.h" |
| 15 #include "content/common/renderer_preferences.h" | 16 #include "content/common/renderer_preferences.h" |
| 16 #include "content/common/window_container_type.h" | 17 #include "content/common/window_container_type.h" |
| 17 #include "ipc/ipc_message_macros.h" | 18 #include "ipc/ipc_message_macros.h" |
| 18 #include "ipc/ipc_platform_file.h" | 19 #include "ipc/ipc_platform_file.h" |
| 19 #include "net/base/host_port_pair.h" | 20 #include "net/base/host_port_pair.h" |
| 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli
ne.h" | 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli
ne.h" |
| 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" | 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" |
| 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction.
h" | 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction.
h" |
| 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" | 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" |
| 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" | 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" |
| 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextInputType.h" |
| 25 #include "ui/gfx/rect.h" | 27 #include "ui/gfx/rect.h" |
| 26 #include "webkit/glue/context_menu.h" | 28 #include "webkit/glue/context_menu.h" |
| 27 #include "webkit/glue/password_form.h" | 29 #include "webkit/glue/password_form.h" |
| 28 #include "webkit/glue/webcookie.h" | 30 #include "webkit/glue/webcookie.h" |
| 29 #include "webkit/glue/webmenuitem.h" | 31 #include "webkit/glue/webmenuitem.h" |
| 30 #include "webkit/glue/webpreferences.h" | 32 #include "webkit/glue/webpreferences.h" |
| 33 #include "webkit/glue/webaccessibility.h" |
| 31 #include "webkit/plugins/npapi/webplugin.h" | 34 #include "webkit/plugins/npapi/webplugin.h" |
| 32 #include "webkit/plugins/npapi/webplugininfo.h" | 35 #include "webkit/plugins/npapi/webplugininfo.h" |
| 33 | 36 |
| 34 #if defined(OS_MACOSX) | 37 #if defined(OS_MACOSX) |
| 35 #include "content/common/font_descriptor_mac.h" | 38 #include "content/common/font_descriptor_mac.h" |
| 36 #endif | 39 #endif |
| 37 | 40 |
| 38 // Define enums used in this file inside an include-guard. | 41 // Define enums used in this file inside an include-guard. |
| 39 #ifndef CONTENT_COMMON_VIEW_MESSAGES_H_ | 42 #ifndef CONTENT_COMMON_VIEW_MESSAGES_H_ |
| 40 #define CONTENT_COMMON_VIEW_MESSAGES_H_ | 43 #define CONTENT_COMMON_VIEW_MESSAGES_H_ |
| 41 | 44 |
| 45 struct ViewHostMsg_AccessibilityNotification_Type { |
| 46 enum Value { |
| 47 // The node checked state has changed. |
| 48 NOTIFICATION_TYPE_CHECK_STATE_CHANGED, |
| 49 |
| 50 // The node tree structure has changed. |
| 51 NOTIFICATION_TYPE_CHILDREN_CHANGED, |
| 52 |
| 53 // The node in focus has changed. |
| 54 NOTIFICATION_TYPE_FOCUS_CHANGED, |
| 55 |
| 56 // The document node has loaded. |
| 57 NOTIFICATION_TYPE_LOAD_COMPLETE, |
| 58 |
| 59 // The node value has changed. |
| 60 NOTIFICATION_TYPE_VALUE_CHANGED, |
| 61 |
| 62 // The text cursor or selection changed. |
| 63 NOTIFICATION_TYPE_SELECTED_TEXT_CHANGED, |
| 64 }; |
| 65 }; |
| 66 |
| 42 struct ViewHostMsg_RunFileChooser_Mode { | 67 struct ViewHostMsg_RunFileChooser_Mode { |
| 43 public: | 68 public: |
| 44 enum Value { | 69 enum Value { |
| 45 // Requires that the file exists before allowing the user to pick it. | 70 // Requires that the file exists before allowing the user to pick it. |
| 46 Open, | 71 Open, |
| 47 | 72 |
| 48 // Like Open, but allows picking multiple files to open. | 73 // Like Open, but allows picking multiple files to open. |
| 49 OpenMultiple, | 74 OpenMultiple, |
| 50 | 75 |
| 51 // Like Open, but selects a folder. | 76 // Like Open, but selects a folder. |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 | 142 |
| 118 #endif // CONTENT_COMMON_VIEW_MESSAGES_H_ | 143 #endif // CONTENT_COMMON_VIEW_MESSAGES_H_ |
| 119 | 144 |
| 120 #define IPC_MESSAGE_START ViewMsgStart | 145 #define IPC_MESSAGE_START ViewMsgStart |
| 121 | 146 |
| 122 IPC_ENUM_TRAITS(CSSColors::CSSColorName) | 147 IPC_ENUM_TRAITS(CSSColors::CSSColorName) |
| 123 IPC_ENUM_TRAITS(NavigationGesture) | 148 IPC_ENUM_TRAITS(NavigationGesture) |
| 124 IPC_ENUM_TRAITS(PageZoom::Function) | 149 IPC_ENUM_TRAITS(PageZoom::Function) |
| 125 IPC_ENUM_TRAITS(RendererPreferencesHintingEnum) | 150 IPC_ENUM_TRAITS(RendererPreferencesHintingEnum) |
| 126 IPC_ENUM_TRAITS(RendererPreferencesSubpixelRenderingEnum) | 151 IPC_ENUM_TRAITS(RendererPreferencesSubpixelRenderingEnum) |
| 152 IPC_ENUM_TRAITS(ViewHostMsg_AccessibilityNotification_Type::Value) |
| 127 IPC_ENUM_TRAITS(ViewHostMsg_RunFileChooser_Mode::Value) | 153 IPC_ENUM_TRAITS(ViewHostMsg_RunFileChooser_Mode::Value) |
| 128 IPC_ENUM_TRAITS(ViewMsg_Navigate_Type::Value) | 154 IPC_ENUM_TRAITS(ViewMsg_Navigate_Type::Value) |
| 129 IPC_ENUM_TRAITS(ViewMsg_StopFinding_Params::Action) | 155 IPC_ENUM_TRAITS(ViewMsg_StopFinding_Params::Action) |
| 130 IPC_ENUM_TRAITS(WebKit::WebContextMenuData::MediaType) | 156 IPC_ENUM_TRAITS(WebKit::WebContextMenuData::MediaType) |
| 131 IPC_ENUM_TRAITS(WebKit::WebMediaPlayerAction::Type) | 157 IPC_ENUM_TRAITS(WebKit::WebMediaPlayerAction::Type) |
| 132 IPC_ENUM_TRAITS(WebKit::WebPopupType) | 158 IPC_ENUM_TRAITS(WebKit::WebPopupType) |
| 159 IPC_ENUM_TRAITS(WebKit::WebTextInputType) |
| 133 IPC_ENUM_TRAITS(WebMenuItem::Type) | 160 IPC_ENUM_TRAITS(WebMenuItem::Type) |
| 134 IPC_ENUM_TRAITS(WindowContainerType) | 161 IPC_ENUM_TRAITS(WindowContainerType) |
| 162 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::Role) |
| 163 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::State) |
| 135 | 164 |
| 136 IPC_STRUCT_TRAITS_BEGIN(ContextMenuParams) | 165 IPC_STRUCT_TRAITS_BEGIN(ContextMenuParams) |
| 137 IPC_STRUCT_TRAITS_MEMBER(media_type) | 166 IPC_STRUCT_TRAITS_MEMBER(media_type) |
| 138 IPC_STRUCT_TRAITS_MEMBER(x) | 167 IPC_STRUCT_TRAITS_MEMBER(x) |
| 139 IPC_STRUCT_TRAITS_MEMBER(y) | 168 IPC_STRUCT_TRAITS_MEMBER(y) |
| 140 IPC_STRUCT_TRAITS_MEMBER(link_url) | 169 IPC_STRUCT_TRAITS_MEMBER(link_url) |
| 141 IPC_STRUCT_TRAITS_MEMBER(unfiltered_link_url) | 170 IPC_STRUCT_TRAITS_MEMBER(unfiltered_link_url) |
| 142 IPC_STRUCT_TRAITS_MEMBER(src_url) | 171 IPC_STRUCT_TRAITS_MEMBER(src_url) |
| 143 IPC_STRUCT_TRAITS_MEMBER(is_image_blocked) | 172 IPC_STRUCT_TRAITS_MEMBER(is_image_blocked) |
| 144 IPC_STRUCT_TRAITS_MEMBER(page_url) | 173 IPC_STRUCT_TRAITS_MEMBER(page_url) |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 IPC_STRUCT_TRAITS_MEMBER(enabled) | 325 IPC_STRUCT_TRAITS_MEMBER(enabled) |
| 297 IPC_STRUCT_TRAITS_MEMBER(checked) | 326 IPC_STRUCT_TRAITS_MEMBER(checked) |
| 298 IPC_STRUCT_TRAITS_MEMBER(submenu) | 327 IPC_STRUCT_TRAITS_MEMBER(submenu) |
| 299 IPC_STRUCT_TRAITS_END() | 328 IPC_STRUCT_TRAITS_END() |
| 300 | 329 |
| 301 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::CustomContextMenuContext) | 330 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::CustomContextMenuContext) |
| 302 IPC_STRUCT_TRAITS_MEMBER(is_pepper_menu) | 331 IPC_STRUCT_TRAITS_MEMBER(is_pepper_menu) |
| 303 IPC_STRUCT_TRAITS_MEMBER(request_id) | 332 IPC_STRUCT_TRAITS_MEMBER(request_id) |
| 304 IPC_STRUCT_TRAITS_END() | 333 IPC_STRUCT_TRAITS_END() |
| 305 | 334 |
| 335 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::WebAccessibility) |
| 336 IPC_STRUCT_TRAITS_MEMBER(id) |
| 337 IPC_STRUCT_TRAITS_MEMBER(name) |
| 338 IPC_STRUCT_TRAITS_MEMBER(value) |
| 339 IPC_STRUCT_TRAITS_MEMBER(role) |
| 340 IPC_STRUCT_TRAITS_MEMBER(state) |
| 341 IPC_STRUCT_TRAITS_MEMBER(location) |
| 342 IPC_STRUCT_TRAITS_MEMBER(attributes) |
| 343 IPC_STRUCT_TRAITS_MEMBER(children) |
| 344 IPC_STRUCT_TRAITS_MEMBER(indirect_child_ids) |
| 345 IPC_STRUCT_TRAITS_MEMBER(html_attributes) |
| 346 IPC_STRUCT_TRAITS_END() |
| 347 |
| 306 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::WebCookie) | 348 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::WebCookie) |
| 307 IPC_STRUCT_TRAITS_MEMBER(name) | 349 IPC_STRUCT_TRAITS_MEMBER(name) |
| 308 IPC_STRUCT_TRAITS_MEMBER(value) | 350 IPC_STRUCT_TRAITS_MEMBER(value) |
| 309 IPC_STRUCT_TRAITS_MEMBER(domain) | 351 IPC_STRUCT_TRAITS_MEMBER(domain) |
| 310 IPC_STRUCT_TRAITS_MEMBER(path) | 352 IPC_STRUCT_TRAITS_MEMBER(path) |
| 311 IPC_STRUCT_TRAITS_MEMBER(expires) | 353 IPC_STRUCT_TRAITS_MEMBER(expires) |
| 312 IPC_STRUCT_TRAITS_MEMBER(http_only) | 354 IPC_STRUCT_TRAITS_MEMBER(http_only) |
| 313 IPC_STRUCT_TRAITS_MEMBER(secure) | 355 IPC_STRUCT_TRAITS_MEMBER(secure) |
| 314 IPC_STRUCT_TRAITS_MEMBER(session) | 356 IPC_STRUCT_TRAITS_MEMBER(session) |
| 315 IPC_STRUCT_TRAITS_END() | 357 IPC_STRUCT_TRAITS_END() |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 IPC_STRUCT_MEMBER(net::HostPortPair, socket_address) | 505 IPC_STRUCT_MEMBER(net::HostPortPair, socket_address) |
| 464 | 506 |
| 465 // True if the connection was proxied. In this case, socket_address | 507 // True if the connection was proxied. In this case, socket_address |
| 466 // will represent the address of the proxy, rather than the remote host. | 508 // will represent the address of the proxy, rather than the remote host. |
| 467 IPC_STRUCT_MEMBER(bool, was_fetched_via_proxy) | 509 IPC_STRUCT_MEMBER(bool, was_fetched_via_proxy) |
| 468 | 510 |
| 469 // Serialized history item state to store in the navigation entry. | 511 // Serialized history item state to store in the navigation entry. |
| 470 IPC_STRUCT_MEMBER(std::string, content_state) | 512 IPC_STRUCT_MEMBER(std::string, content_state) |
| 471 IPC_STRUCT_END() | 513 IPC_STRUCT_END() |
| 472 | 514 |
| 473 IPC_STRUCT_BEGIN(ViewMsg_Navigate_Params) | 515 IPC_STRUCT_BEGIN(ViewHostMsg_AccessibilityNotification_Params) |
| 474 // The page_id for this navigation, or -1 if it is a new navigation. Back, | 516 // Type of notification. |
| 475 // Forward, and Reload navigations should have a valid page_id. If the load | 517 IPC_STRUCT_MEMBER(ViewHostMsg_AccessibilityNotification_Type::Value, |
| 476 // succeeds, then this page_id will be reflected in the resultant | 518 notification_type) |
| 477 // ViewHostMsg_FrameNavigate message. | |
| 478 IPC_STRUCT_MEMBER(int32, page_id) | |
| 479 | 519 |
| 480 // If page_id is -1, then pending_history_list_offset will also be -1. | 520 // The accessibility node tree. |
| 481 // Otherwise, it contains the offset into the history list corresponding to | 521 IPC_STRUCT_MEMBER(webkit_glue::WebAccessibility, acc_obj) |
| 482 // the current navigation. | 522 IPC_STRUCT_END() |
| 483 IPC_STRUCT_MEMBER(int, pending_history_list_offset) | |
| 484 | 523 |
| 485 // Informs the RenderView of where its current page contents reside in | |
| 486 // session history and the total size of the session history list. | |
| 487 IPC_STRUCT_MEMBER(int, current_history_list_offset) | |
| 488 IPC_STRUCT_MEMBER(int, current_history_list_length) | |
| 489 | |
| 490 // The URL to load. | |
| 491 IPC_STRUCT_MEMBER(GURL, url) | |
| 492 | |
| 493 // The URL to send in the "Referer" header field. Can be empty if there is | |
| 494 // no referrer. | |
| 495 // TODO: consider folding this into extra_headers. | |
| 496 IPC_STRUCT_MEMBER(GURL, referrer) | |
| 497 | |
| 498 // The type of transition. | |
| 499 IPC_STRUCT_MEMBER(PageTransition::Type, transition) | |
| 500 | |
| 501 // Opaque history state (received by ViewHostMsg_UpdateState). | |
| 502 IPC_STRUCT_MEMBER(std::string, state) | |
| 503 | |
| 504 // Type of navigation. | |
| 505 IPC_STRUCT_MEMBER(ViewMsg_Navigate_Type::Value, navigation_type) | |
| 506 | |
| 507 // The time the request was created | |
| 508 IPC_STRUCT_MEMBER(base::Time, request_time) | |
| 509 | |
| 510 // Extra headers (separated by \n) to send during the request. | |
| 511 IPC_STRUCT_MEMBER(std::string, extra_headers) | |
| 512 IPC_STRUCT_END() | |
| 513 | 524 |
| 514 IPC_STRUCT_BEGIN(ViewHostMsg_RunFileChooser_Params) | 525 IPC_STRUCT_BEGIN(ViewHostMsg_RunFileChooser_Params) |
| 515 IPC_STRUCT_MEMBER(ViewHostMsg_RunFileChooser_Mode::Value, mode) | 526 IPC_STRUCT_MEMBER(ViewHostMsg_RunFileChooser_Mode::Value, mode) |
| 516 | 527 |
| 517 // Title to be used for the dialog. This may be empty for the default title, | 528 // Title to be used for the dialog. This may be empty for the default title, |
| 518 // which will be either "Open" or "Save" depending on the mode. | 529 // which will be either "Open" or "Save" depending on the mode. |
| 519 IPC_STRUCT_MEMBER(string16, title) | 530 IPC_STRUCT_MEMBER(string16, title) |
| 520 | 531 |
| 521 // Default file name to select in the dialog. | 532 // Default file name to select in the dialog. |
| 522 IPC_STRUCT_MEMBER(FilePath, default_file_name) | 533 IPC_STRUCT_MEMBER(FilePath, default_file_name) |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 632 IPC_STRUCT_MEMBER(int, new_render_process_host_id) | 643 IPC_STRUCT_MEMBER(int, new_render_process_host_id) |
| 633 | 644 |
| 634 // The identifier of the *request* the new view made that is causing the | 645 // The identifier of the *request* the new view made that is causing the |
| 635 // cross-site transition. This is *not* a route_id, but the request that we | 646 // cross-site transition. This is *not* a route_id, but the request that we |
| 636 // will resume once the ACK from the closing view has been received. This | 647 // will resume once the ACK from the closing view has been received. This |
| 637 // must be valid when for_cross_site_transition is set, and must be -1 | 648 // must be valid when for_cross_site_transition is set, and must be -1 |
| 638 // otherwise. | 649 // otherwise. |
| 639 IPC_STRUCT_MEMBER(int, new_request_id) | 650 IPC_STRUCT_MEMBER(int, new_request_id) |
| 640 IPC_STRUCT_END() | 651 IPC_STRUCT_END() |
| 641 | 652 |
| 653 IPC_STRUCT_BEGIN(ViewMsg_Navigate_Params) |
| 654 // The page_id for this navigation, or -1 if it is a new navigation. Back, |
| 655 // Forward, and Reload navigations should have a valid page_id. If the load |
| 656 // succeeds, then this page_id will be reflected in the resultant |
| 657 // ViewHostMsg_FrameNavigate message. |
| 658 IPC_STRUCT_MEMBER(int32, page_id) |
| 659 |
| 660 // If page_id is -1, then pending_history_list_offset will also be -1. |
| 661 // Otherwise, it contains the offset into the history list corresponding to |
| 662 // the current navigation. |
| 663 IPC_STRUCT_MEMBER(int, pending_history_list_offset) |
| 664 |
| 665 // Informs the RenderView of where its current page contents reside in |
| 666 // session history and the total size of the session history list. |
| 667 IPC_STRUCT_MEMBER(int, current_history_list_offset) |
| 668 IPC_STRUCT_MEMBER(int, current_history_list_length) |
| 669 |
| 670 // The URL to load. |
| 671 IPC_STRUCT_MEMBER(GURL, url) |
| 672 |
| 673 // The URL to send in the "Referer" header field. Can be empty if there is |
| 674 // no referrer. |
| 675 // TODO: consider folding this into extra_headers. |
| 676 IPC_STRUCT_MEMBER(GURL, referrer) |
| 677 |
| 678 // The type of transition. |
| 679 IPC_STRUCT_MEMBER(PageTransition::Type, transition) |
| 680 |
| 681 // Opaque history state (received by ViewHostMsg_UpdateState). |
| 682 IPC_STRUCT_MEMBER(std::string, state) |
| 683 |
| 684 // Type of navigation. |
| 685 IPC_STRUCT_MEMBER(ViewMsg_Navigate_Type::Value, navigation_type) |
| 686 |
| 687 // The time the request was created |
| 688 IPC_STRUCT_MEMBER(base::Time, request_time) |
| 689 |
| 690 // Extra headers (separated by \n) to send during the request. |
| 691 IPC_STRUCT_MEMBER(std::string, extra_headers) |
| 692 IPC_STRUCT_END() |
| 693 |
| 642 IPC_STRUCT_BEGIN(ViewMsg_New_Params) | 694 IPC_STRUCT_BEGIN(ViewMsg_New_Params) |
| 643 // The parent window's id. | 695 // The parent window's id. |
| 644 IPC_STRUCT_MEMBER(gfx::NativeViewId, parent_window) | 696 IPC_STRUCT_MEMBER(gfx::NativeViewId, parent_window) |
| 645 | 697 |
| 646 // Renderer-wide preferences. | 698 // Renderer-wide preferences. |
| 647 IPC_STRUCT_MEMBER(RendererPreferences, renderer_preferences) | 699 IPC_STRUCT_MEMBER(RendererPreferences, renderer_preferences) |
| 648 | 700 |
| 649 // Preferences for this view. | 701 // Preferences for this view. |
| 650 IPC_STRUCT_MEMBER(WebPreferences, web_preferences) | 702 IPC_STRUCT_MEMBER(WebPreferences, web_preferences) |
| 651 | 703 |
| (...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1063 IPC_MESSAGE_ROUTED3(ViewMsg_AsyncOpenFile_ACK, | 1115 IPC_MESSAGE_ROUTED3(ViewMsg_AsyncOpenFile_ACK, |
| 1064 base::PlatformFileError /* error_code */, | 1116 base::PlatformFileError /* error_code */, |
| 1065 IPC::PlatformFileForTransit /* file descriptor */, | 1117 IPC::PlatformFileForTransit /* file descriptor */, |
| 1066 int /* message_id */) | 1118 int /* message_id */) |
| 1067 | 1119 |
| 1068 // Tells the renderer that the network state has changed and that | 1120 // Tells the renderer that the network state has changed and that |
| 1069 // window.navigator.onLine should be updated for all WebViews. | 1121 // window.navigator.onLine should be updated for all WebViews. |
| 1070 IPC_MESSAGE_ROUTED1(ViewMsg_NetworkStateChanged, | 1122 IPC_MESSAGE_ROUTED1(ViewMsg_NetworkStateChanged, |
| 1071 bool /* online */) | 1123 bool /* online */) |
| 1072 | 1124 |
| 1125 // Enable accessibility in the renderer process. |
| 1126 IPC_MESSAGE_ROUTED0(ViewMsg_EnableAccessibility) |
| 1127 |
| 1128 // Relay a request from assistive technology to set focus to a given node. |
| 1129 IPC_MESSAGE_ROUTED1(ViewMsg_SetAccessibilityFocus, |
| 1130 int /* object id */) |
| 1131 |
| 1132 // Relay a request from assistive technology to perform the default action |
| 1133 // on a given node. |
| 1134 IPC_MESSAGE_ROUTED1(ViewMsg_AccessibilityDoDefaultAction, |
| 1135 int /* object id */) |
| 1136 |
| 1137 // Tells the render view that a ViewHostMsg_AccessibilityNotifications |
| 1138 // message was processed and it can send addition notifications. |
| 1139 IPC_MESSAGE_ROUTED0(ViewMsg_AccessibilityNotifications_ACK) |
| 1140 |
| 1073 | 1141 |
| 1074 // Messages sent from the renderer to the browser. | 1142 // Messages sent from the renderer to the browser. |
| 1075 | 1143 |
| 1076 // Sent by the renderer when it is creating a new window. The browser creates | 1144 // Sent by the renderer when it is creating a new window. The browser creates |
| 1077 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is | 1145 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is |
| 1078 // MSG_ROUTING_NONE, the view couldn't be created. | 1146 // MSG_ROUTING_NONE, the view couldn't be created. |
| 1079 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_CreateWindow, | 1147 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_CreateWindow, |
| 1080 ViewHostMsg_CreateWindow_Params, | 1148 ViewHostMsg_CreateWindow_Params, |
| 1081 int /* route_id */, | 1149 int /* route_id */, |
| 1082 int64 /* cloned_session_storage_namespace_id */) | 1150 int64 /* cloned_session_storage_namespace_id */) |
| (...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1572 // true) focusable element. | 1640 // true) focusable element. |
| 1573 IPC_MESSAGE_ROUTED1(ViewHostMsg_TakeFocus, | 1641 IPC_MESSAGE_ROUTED1(ViewHostMsg_TakeFocus, |
| 1574 bool /* reverse */) | 1642 bool /* reverse */) |
| 1575 | 1643 |
| 1576 // Returns the window location of the window this widget is embeded. | 1644 // Returns the window location of the window this widget is embeded. |
| 1577 // TODO(shess): Provide a mapping from reply_msg->routing_id() to | 1645 // TODO(shess): Provide a mapping from reply_msg->routing_id() to |
| 1578 // HWND so that we can eliminate the NativeViewId parameter. | 1646 // HWND so that we can eliminate the NativeViewId parameter. |
| 1579 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetRootWindowRect, | 1647 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetRootWindowRect, |
| 1580 gfx::NativeViewId /* window */, | 1648 gfx::NativeViewId /* window */, |
| 1581 gfx::Rect /* Out: Window location */) | 1649 gfx::Rect /* Out: Window location */) |
| 1650 |
| 1651 // Required for updating text input state. |
| 1652 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeUpdateTextInputState, |
| 1653 WebKit::WebTextInputType, /* text_input_type */ |
| 1654 gfx::Rect /* caret_rect */) |
| 1655 |
| 1656 // Required for cancelling an ongoing input method composition. |
| 1657 IPC_MESSAGE_ROUTED0(ViewHostMsg_ImeCancelComposition) |
| 1658 |
| 1659 // WebKit and JavaScript error messages to log to the console |
| 1660 // or debugger UI. |
| 1661 IPC_MESSAGE_ROUTED3(ViewHostMsg_AddMessageToConsole, |
| 1662 std::wstring, /* msg */ |
| 1663 int32, /* line number */ |
| 1664 std::wstring /* source id */) |
| 1665 |
| 1666 // Sent by the renderer process to indicate that a plugin instance has |
| 1667 // crashed. |
| 1668 IPC_MESSAGE_ROUTED1(ViewHostMsg_CrashedPlugin, |
| 1669 FilePath /* plugin_path */) |
| 1670 |
| 1671 // Displays a box to confirm that the user wants to navigate away from the |
| 1672 // page. Replies true if yes, false otherwise, the reply string is ignored, |
| 1673 // but is included so that we can use OnJavaScriptMessageBoxClosed. |
| 1674 IPC_SYNC_MESSAGE_ROUTED2_2(ViewHostMsg_RunBeforeUnloadConfirm, |
| 1675 GURL, /* in - originating frame URL */ |
| 1676 std::wstring /* in - alert message */, |
| 1677 bool /* out - success */, |
| 1678 std::wstring /* out - This is ignored.*/) |
| 1679 |
| 1680 // Sent when the renderer process is done processing a DataReceived |
| 1681 // message. |
| 1682 IPC_MESSAGE_ROUTED1(ViewHostMsg_DataReceived_ACK, |
| 1683 int /* request_id */) |
| 1684 |
| 1685 IPC_MESSAGE_CONTROL1(ViewHostMsg_RevealFolderInOS, |
| 1686 FilePath /* path */) |
| 1687 |
| 1688 // Sent when a provisional load on the main frame redirects. |
| 1689 IPC_MESSAGE_ROUTED3(ViewHostMsg_DidRedirectProvisionalLoad, |
| 1690 int /* page_id */, |
| 1691 GURL /* last url */, |
| 1692 GURL /* url redirected to */) |
| 1693 |
| 1694 // Sent when the renderer changes the zoom level for a particular url, so the |
| 1695 // browser can update its records. If remember is true, then url is used to |
| 1696 // update the zoom level for all pages in that site. Otherwise, the render |
| 1697 // view's id is used so that only the menu is updated. |
| 1698 IPC_MESSAGE_ROUTED3(ViewHostMsg_DidZoomURL, |
| 1699 double /* zoom_level */, |
| 1700 bool /* remember */, |
| 1701 GURL /* url */) |
| 1702 |
| 1703 // Updates the minimum/maximum allowed zoom percent for this tab from the |
| 1704 // default values. If |remember| is true, then the zoom setting is applied to |
| 1705 // other pages in the site and is saved, otherwise it only applies to this |
| 1706 // tab. |
| 1707 IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateZoomLimits, |
| 1708 int /* minimum_percent */, |
| 1709 int /* maximum_percent */, |
| 1710 bool /* remember */) |
| 1711 |
| 1712 #if defined(OS_WIN) |
| 1713 // Duplicates a shared memory handle from the renderer to the browser. Then |
| 1714 // the renderer can flush the handle. |
| 1715 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_DuplicateSection, |
| 1716 base::SharedMemoryHandle /* renderer handle */, |
| 1717 base::SharedMemoryHandle /* browser handle */) |
| 1718 #endif |
| 1719 |
| 1720 // Asks the browser to create a block of shared memory for the renderer to |
| 1721 // fill in and pass back to the browser. |
| 1722 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_AllocateSharedMemoryBuffer, |
| 1723 uint32 /* buffer size */, |
| 1724 base::SharedMemoryHandle /* browser handle */) |
| 1725 |
| 1726 // Notify the browser that this render process can or can't be suddenly |
| 1727 // terminated. |
| 1728 IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged, |
| 1729 bool /* enabled */) |
| 1730 |
| 1731 #if defined(OS_MACOSX) |
| 1732 // On OSX, we cannot allocated shared memory from within the sandbox, so |
| 1733 // this call exists for the renderer to ask the browser to allocate memory |
| 1734 // on its behalf. We return a file descriptor to the POSIX shared memory. |
| 1735 // If the |cache_in_browser| flag is |true|, then a copy of the shmem is kept |
| 1736 // by the browser, and it is the caller's repsonsibility to send a |
| 1737 // ViewHostMsg_FreeTransportDIB message in order to release the cached shmem. |
| 1738 // In all cases, the caller is responsible for deleting the resulting |
| 1739 // TransportDIB. |
| 1740 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_AllocTransportDIB, |
| 1741 size_t, /* bytes requested */ |
| 1742 bool, /* cache in the browser */ |
| 1743 TransportDIB::Handle /* DIB */) |
| 1744 |
| 1745 // Since the browser keeps handles to the allocated transport DIBs, this |
| 1746 // message is sent to tell the browser that it may release them when the |
| 1747 // renderer is finished with them. |
| 1748 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, |
| 1749 TransportDIB::Id /* DIB id */) |
| 1750 |
| 1751 // Informs the browser that a plugin has gained or lost focus. |
| 1752 IPC_MESSAGE_ROUTED2(ViewHostMsg_PluginFocusChanged, |
| 1753 bool, /* focused */ |
| 1754 int /* plugin_id */) |
| 1755 |
| 1756 // Instructs the browser to start plugin IME. |
| 1757 IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme) |
| 1758 |
| 1759 //--------------------------------------------------------------------------- |
| 1760 // Messages related to accelerated plugins |
| 1761 |
| 1762 // This is sent from the renderer to the browser to allocate a fake |
| 1763 // PluginWindowHandle on the browser side which is used to identify |
| 1764 // the plugin to the browser later when backing store is allocated |
| 1765 // or reallocated. |opaque| indicates whether the plugin's output is |
| 1766 // considered to be opaque, as opposed to translucent. This message |
| 1767 // is reused for rendering the accelerated compositor's output. |
| 1768 // |root| indicates whether the output is supposed to cover the |
| 1769 // entire window. |
| 1770 IPC_SYNC_MESSAGE_ROUTED2_1(ViewHostMsg_AllocateFakePluginWindowHandle, |
| 1771 bool /* opaque */, |
| 1772 bool /* root */, |
| 1773 gfx::PluginWindowHandle /* id */) |
| 1774 |
| 1775 // Destroys a fake window handle previously allocated using |
| 1776 // AllocateFakePluginWindowHandle. |
| 1777 IPC_MESSAGE_ROUTED1(ViewHostMsg_DestroyFakePluginWindowHandle, |
| 1778 gfx::PluginWindowHandle /* id */) |
| 1779 |
| 1780 // This message, used on Mac OS X 10.5 and earlier (no IOSurface support), |
| 1781 // is sent from the renderer to the browser on behalf of the plug-in |
| 1782 // to indicate that a new backing store was allocated for that plug-in |
| 1783 // instance. |
| 1784 IPC_MESSAGE_ROUTED4(ViewHostMsg_AcceleratedSurfaceSetTransportDIB, |
| 1785 gfx::PluginWindowHandle /* window */, |
| 1786 int32 /* width */, |
| 1787 int32 /* height */, |
| 1788 TransportDIB::Handle /* handle for the DIB */) |
| 1789 |
| 1790 // This message, used on Mac OS X 10.6 and later (where IOSurface is |
| 1791 // supported), is sent from the renderer to the browser on behalf of the |
| 1792 // plug-in to indicate that a new backing store was allocated for that |
| 1793 // plug-in instance. |
| 1794 // |
| 1795 // NOTE: the original intent was to pass a mach port as the IOSurface |
| 1796 // identifier but it looks like that will be a lot of work. For now we pass an |
| 1797 // ID from IOSurfaceGetID. |
| 1798 IPC_MESSAGE_ROUTED4(ViewHostMsg_AcceleratedSurfaceSetIOSurface, |
| 1799 gfx::PluginWindowHandle /* window */, |
| 1800 int32 /* width */, |
| 1801 int32 /* height */, |
| 1802 uint64 /* surface_id */) |
| 1803 |
| 1804 // This message notifies the browser process that the plug-in |
| 1805 // swapped the buffers associated with the given "window", which |
| 1806 // should cause the browser to redraw the various plug-ins' |
| 1807 // contents. |
| 1808 IPC_MESSAGE_ROUTED2(ViewHostMsg_AcceleratedSurfaceBuffersSwapped, |
| 1809 gfx::PluginWindowHandle /* window */, |
| 1810 uint64 /* surface_id */) |
| 1811 #endif |
| 1812 |
| 1813 // Sent to notify the browser about renderer accessibility notifications. |
| 1814 // The browser responds with a ViewMsg_AccessibilityNotifications_ACK. |
| 1815 IPC_MESSAGE_ROUTED1( |
| 1816 ViewHostMsg_AccessibilityNotifications, |
| 1817 std::vector<ViewHostMsg_AccessibilityNotification_Params>) |
| 1818 |
| 1819 // Opens a file asynchronously. The response returns a file descriptor |
| 1820 // and an error code from base/platform_file.h. |
| 1821 IPC_MESSAGE_ROUTED3(ViewHostMsg_AsyncOpenFile, |
| 1822 FilePath /* file path */, |
| 1823 int /* flags */, |
| 1824 int /* message_id */) |
| 1825 |
| 1826 //--------------------------------------------------------------------------- |
| 1827 // Request for cryptographic operation messages: |
| 1828 // These are messages from the renderer to the browser to perform a |
| 1829 // cryptographic operation. |
| 1830 |
| 1831 // Asks the browser process to generate a keypair for grabbing a client |
| 1832 // certificate from a CA (<keygen> tag), and returns the signed public |
| 1833 // key and challenge string. |
| 1834 IPC_SYNC_MESSAGE_CONTROL3_1(ViewHostMsg_Keygen, |
| 1835 uint32 /* key size index */, |
| 1836 std::string /* challenge string */, |
| 1837 GURL /* URL of requestor */, |
| 1838 std::string /* signed public key and challenge */) |
| OLD | NEW |