| 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 "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/view_message_enums.h" | 14 #include "content/common/view_message_enums.h" |
| 15 #include "content/public/common/common_param_traits.h" | 15 #include "content/public/common/common_param_traits.h" |
| 16 #include "content/public/common/context_menu_params.h" |
| 16 #include "content/public/common/file_chooser_params.h" | 17 #include "content/public/common/file_chooser_params.h" |
| 17 #include "content/public/common/frame_navigate_params.h" | 18 #include "content/public/common/frame_navigate_params.h" |
| 18 #include "content/public/common/page_zoom.h" | 19 #include "content/public/common/page_zoom.h" |
| 19 #include "content/public/common/referrer.h" | 20 #include "content/public/common/referrer.h" |
| 20 #include "content/public/common/renderer_preferences.h" | 21 #include "content/public/common/renderer_preferences.h" |
| 21 #include "content/public/common/stop_find_action.h" | 22 #include "content/public/common/stop_find_action.h" |
| 22 #include "content/public/common/webkit_param_traits.h" | 23 #include "content/public/common/webkit_param_traits.h" |
| 23 #include "content/public/common/window_container_type.h" | 24 #include "content/public/common/window_container_type.h" |
| 24 #include "ipc/ipc_channel_handle.h" | 25 #include "ipc/ipc_channel_handle.h" |
| 25 #include "ipc/ipc_message_macros.h" | 26 #include "ipc/ipc_message_macros.h" |
| 26 #include "ipc/ipc_platform_file.h" | 27 #include "ipc/ipc_platform_file.h" |
| 27 #include "media/base/media_log_event.h" | 28 #include "media/base/media_log_event.h" |
| 28 #include "third_party/skia/include/core/SkBitmap.h" | 29 #include "third_party/skia/include/core/SkBitmap.h" |
| 29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli
ne.h" | 30 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli
ne.h" |
| 30 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 31 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
| 31 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" | 32 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" |
| 32 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction.
h" | 33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction.
h" |
| 33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginAction.h" | 34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginAction.h" |
| 34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" | 35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" |
| 35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" | 36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" |
| 36 #include "ui/base/ime/text_input_type.h" | 37 #include "ui/base/ime/text_input_type.h" |
| 37 #include "ui/base/javascript_message_type.h" | 38 #include "ui/base/javascript_message_type.h" |
| 38 #include "ui/base/range/range.h" | 39 #include "ui/base/range/range.h" |
| 39 #include "ui/gfx/point.h" | 40 #include "ui/gfx/point.h" |
| 40 #include "ui/gfx/rect.h" | 41 #include "ui/gfx/rect.h" |
| 41 #include "webkit/glue/context_menu.h" | |
| 42 #include "webkit/glue/webcookie.h" | 42 #include "webkit/glue/webcookie.h" |
| 43 #include "webkit/glue/webmenuitem.h" | 43 #include "webkit/glue/webmenuitem.h" |
| 44 #include "webkit/glue/webpreferences.h" | 44 #include "webkit/glue/webpreferences.h" |
| 45 #include "webkit/glue/webaccessibility.h" | 45 #include "webkit/glue/webaccessibility.h" |
| 46 #include "webkit/plugins/npapi/webplugin.h" | 46 #include "webkit/plugins/npapi/webplugin.h" |
| 47 | 47 |
| 48 #if defined(OS_MACOSX) | 48 #if defined(OS_MACOSX) |
| 49 #include "content/common/mac/font_descriptor.h" | 49 #include "content/common/mac/font_descriptor.h" |
| 50 #endif | 50 #endif |
| 51 | 51 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 74 IPC_ENUM_TRAITS(media::MediaLogEvent::Type) | 74 IPC_ENUM_TRAITS(media::MediaLogEvent::Type) |
| 75 IPC_ENUM_TRAITS(ui::TextInputType) | 75 IPC_ENUM_TRAITS(ui::TextInputType) |
| 76 IPC_ENUM_TRAITS(ui::JavascriptMessageType) | 76 IPC_ENUM_TRAITS(ui::JavascriptMessageType) |
| 77 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::BoolAttribute) | 77 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::BoolAttribute) |
| 78 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::FloatAttribute) | 78 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::FloatAttribute) |
| 79 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::IntAttribute) | 79 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::IntAttribute) |
| 80 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::Role) | 80 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::Role) |
| 81 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::State) | 81 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::State) |
| 82 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::StringAttribute) | 82 IPC_ENUM_TRAITS(webkit_glue::WebAccessibility::StringAttribute) |
| 83 | 83 |
| 84 IPC_STRUCT_TRAITS_BEGIN(ContextMenuParams) | |
| 85 IPC_STRUCT_TRAITS_MEMBER(media_type) | |
| 86 IPC_STRUCT_TRAITS_MEMBER(x) | |
| 87 IPC_STRUCT_TRAITS_MEMBER(y) | |
| 88 IPC_STRUCT_TRAITS_MEMBER(link_url) | |
| 89 IPC_STRUCT_TRAITS_MEMBER(unfiltered_link_url) | |
| 90 IPC_STRUCT_TRAITS_MEMBER(src_url) | |
| 91 IPC_STRUCT_TRAITS_MEMBER(is_image_blocked) | |
| 92 IPC_STRUCT_TRAITS_MEMBER(page_url) | |
| 93 IPC_STRUCT_TRAITS_MEMBER(keyword_url) | |
| 94 IPC_STRUCT_TRAITS_MEMBER(frame_url) | |
| 95 IPC_STRUCT_TRAITS_MEMBER(frame_content_state) | |
| 96 IPC_STRUCT_TRAITS_MEMBER(media_flags) | |
| 97 IPC_STRUCT_TRAITS_MEMBER(selection_text) | |
| 98 IPC_STRUCT_TRAITS_MEMBER(misspelled_word) | |
| 99 IPC_STRUCT_TRAITS_MEMBER(dictionary_suggestions) | |
| 100 IPC_STRUCT_TRAITS_MEMBER(speech_input_enabled) | |
| 101 IPC_STRUCT_TRAITS_MEMBER(spellcheck_enabled) | |
| 102 IPC_STRUCT_TRAITS_MEMBER(is_editable) | |
| 103 #if defined(OS_MACOSX) | |
| 104 IPC_STRUCT_TRAITS_MEMBER(writing_direction_default) | |
| 105 IPC_STRUCT_TRAITS_MEMBER(writing_direction_left_to_right) | |
| 106 IPC_STRUCT_TRAITS_MEMBER(writing_direction_right_to_left) | |
| 107 #endif // OS_MACOSX | |
| 108 IPC_STRUCT_TRAITS_MEMBER(edit_flags) | |
| 109 IPC_STRUCT_TRAITS_MEMBER(security_info) | |
| 110 IPC_STRUCT_TRAITS_MEMBER(frame_charset) | |
| 111 IPC_STRUCT_TRAITS_MEMBER(custom_context) | |
| 112 IPC_STRUCT_TRAITS_MEMBER(custom_items) | |
| 113 IPC_STRUCT_TRAITS_END() | |
| 114 | |
| 115 IPC_STRUCT_TRAITS_BEGIN(EditCommand) | 84 IPC_STRUCT_TRAITS_BEGIN(EditCommand) |
| 116 IPC_STRUCT_TRAITS_MEMBER(name) | 85 IPC_STRUCT_TRAITS_MEMBER(name) |
| 117 IPC_STRUCT_TRAITS_MEMBER(value) | 86 IPC_STRUCT_TRAITS_MEMBER(value) |
| 118 IPC_STRUCT_TRAITS_END() | 87 IPC_STRUCT_TRAITS_END() |
| 119 | 88 |
| 120 #if defined(OS_MACOSX) | 89 #if defined(OS_MACOSX) |
| 121 IPC_STRUCT_TRAITS_BEGIN(FontDescriptor) | 90 IPC_STRUCT_TRAITS_BEGIN(FontDescriptor) |
| 122 IPC_STRUCT_TRAITS_MEMBER(font_name) | 91 IPC_STRUCT_TRAITS_MEMBER(font_name) |
| 123 IPC_STRUCT_TRAITS_MEMBER(font_point_size) | 92 IPC_STRUCT_TRAITS_MEMBER(font_point_size) |
| 124 IPC_STRUCT_TRAITS_END() | 93 IPC_STRUCT_TRAITS_END() |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 IPC_STRUCT_TRAITS_MEMBER(toolTip) | 219 IPC_STRUCT_TRAITS_MEMBER(toolTip) |
| 251 IPC_STRUCT_TRAITS_MEMBER(type) | 220 IPC_STRUCT_TRAITS_MEMBER(type) |
| 252 IPC_STRUCT_TRAITS_MEMBER(action) | 221 IPC_STRUCT_TRAITS_MEMBER(action) |
| 253 IPC_STRUCT_TRAITS_MEMBER(rtl) | 222 IPC_STRUCT_TRAITS_MEMBER(rtl) |
| 254 IPC_STRUCT_TRAITS_MEMBER(has_directional_override) | 223 IPC_STRUCT_TRAITS_MEMBER(has_directional_override) |
| 255 IPC_STRUCT_TRAITS_MEMBER(enabled) | 224 IPC_STRUCT_TRAITS_MEMBER(enabled) |
| 256 IPC_STRUCT_TRAITS_MEMBER(checked) | 225 IPC_STRUCT_TRAITS_MEMBER(checked) |
| 257 IPC_STRUCT_TRAITS_MEMBER(submenu) | 226 IPC_STRUCT_TRAITS_MEMBER(submenu) |
| 258 IPC_STRUCT_TRAITS_END() | 227 IPC_STRUCT_TRAITS_END() |
| 259 | 228 |
| 229 IPC_STRUCT_TRAITS_BEGIN(content::ContextMenuParams) |
| 230 IPC_STRUCT_TRAITS_MEMBER(media_type) |
| 231 IPC_STRUCT_TRAITS_MEMBER(x) |
| 232 IPC_STRUCT_TRAITS_MEMBER(y) |
| 233 IPC_STRUCT_TRAITS_MEMBER(link_url) |
| 234 IPC_STRUCT_TRAITS_MEMBER(unfiltered_link_url) |
| 235 IPC_STRUCT_TRAITS_MEMBER(src_url) |
| 236 IPC_STRUCT_TRAITS_MEMBER(is_image_blocked) |
| 237 IPC_STRUCT_TRAITS_MEMBER(page_url) |
| 238 IPC_STRUCT_TRAITS_MEMBER(keyword_url) |
| 239 IPC_STRUCT_TRAITS_MEMBER(frame_url) |
| 240 IPC_STRUCT_TRAITS_MEMBER(frame_content_state) |
| 241 IPC_STRUCT_TRAITS_MEMBER(media_flags) |
| 242 IPC_STRUCT_TRAITS_MEMBER(selection_text) |
| 243 IPC_STRUCT_TRAITS_MEMBER(misspelled_word) |
| 244 IPC_STRUCT_TRAITS_MEMBER(dictionary_suggestions) |
| 245 IPC_STRUCT_TRAITS_MEMBER(speech_input_enabled) |
| 246 IPC_STRUCT_TRAITS_MEMBER(spellcheck_enabled) |
| 247 IPC_STRUCT_TRAITS_MEMBER(is_editable) |
| 248 #if defined(OS_MACOSX) |
| 249 IPC_STRUCT_TRAITS_MEMBER(writing_direction_default) |
| 250 IPC_STRUCT_TRAITS_MEMBER(writing_direction_left_to_right) |
| 251 IPC_STRUCT_TRAITS_MEMBER(writing_direction_right_to_left) |
| 252 #endif // OS_MACOSX |
| 253 IPC_STRUCT_TRAITS_MEMBER(edit_flags) |
| 254 IPC_STRUCT_TRAITS_MEMBER(security_info) |
| 255 IPC_STRUCT_TRAITS_MEMBER(frame_charset) |
| 256 IPC_STRUCT_TRAITS_MEMBER(custom_context) |
| 257 IPC_STRUCT_TRAITS_MEMBER(custom_items) |
| 258 IPC_STRUCT_TRAITS_END() |
| 259 |
| 260 IPC_STRUCT_TRAITS_BEGIN(content::CustomContextMenuContext) |
| 261 IPC_STRUCT_TRAITS_MEMBER(is_pepper_menu) |
| 262 IPC_STRUCT_TRAITS_MEMBER(request_id) |
| 263 IPC_STRUCT_TRAITS_MEMBER(render_widget_id) |
| 264 IPC_STRUCT_TRAITS_END() |
| 265 |
| 260 IPC_STRUCT_TRAITS_BEGIN(content::FileChooserParams) | 266 IPC_STRUCT_TRAITS_BEGIN(content::FileChooserParams) |
| 261 IPC_STRUCT_TRAITS_MEMBER(mode) | 267 IPC_STRUCT_TRAITS_MEMBER(mode) |
| 262 IPC_STRUCT_TRAITS_MEMBER(title) | 268 IPC_STRUCT_TRAITS_MEMBER(title) |
| 263 IPC_STRUCT_TRAITS_MEMBER(default_file_name) | 269 IPC_STRUCT_TRAITS_MEMBER(default_file_name) |
| 264 IPC_STRUCT_TRAITS_MEMBER(accept_types) | 270 IPC_STRUCT_TRAITS_MEMBER(accept_types) |
| 265 IPC_STRUCT_TRAITS_END() | 271 IPC_STRUCT_TRAITS_END() |
| 266 | 272 |
| 267 IPC_STRUCT_TRAITS_BEGIN(content::FrameNavigateParams) | 273 IPC_STRUCT_TRAITS_BEGIN(content::FrameNavigateParams) |
| 268 IPC_STRUCT_TRAITS_MEMBER(page_id) | 274 IPC_STRUCT_TRAITS_MEMBER(page_id) |
| 269 IPC_STRUCT_TRAITS_MEMBER(url) | 275 IPC_STRUCT_TRAITS_MEMBER(url) |
| (...skipping 27 matching lines...) Expand all Loading... |
| 297 IPC_STRUCT_TRAITS_MEMBER(active_selection_fg_color) | 303 IPC_STRUCT_TRAITS_MEMBER(active_selection_fg_color) |
| 298 IPC_STRUCT_TRAITS_MEMBER(inactive_selection_bg_color) | 304 IPC_STRUCT_TRAITS_MEMBER(inactive_selection_bg_color) |
| 299 IPC_STRUCT_TRAITS_MEMBER(inactive_selection_fg_color) | 305 IPC_STRUCT_TRAITS_MEMBER(inactive_selection_fg_color) |
| 300 IPC_STRUCT_TRAITS_MEMBER(browser_handles_top_level_requests) | 306 IPC_STRUCT_TRAITS_MEMBER(browser_handles_top_level_requests) |
| 301 IPC_STRUCT_TRAITS_MEMBER(browser_handles_all_requests) | 307 IPC_STRUCT_TRAITS_MEMBER(browser_handles_all_requests) |
| 302 IPC_STRUCT_TRAITS_MEMBER(caret_blink_interval) | 308 IPC_STRUCT_TRAITS_MEMBER(caret_blink_interval) |
| 303 IPC_STRUCT_TRAITS_MEMBER(enable_referrers) | 309 IPC_STRUCT_TRAITS_MEMBER(enable_referrers) |
| 304 IPC_STRUCT_TRAITS_MEMBER(default_zoom_level) | 310 IPC_STRUCT_TRAITS_MEMBER(default_zoom_level) |
| 305 IPC_STRUCT_TRAITS_END() | 311 IPC_STRUCT_TRAITS_END() |
| 306 | 312 |
| 307 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::CustomContextMenuContext) | 313 IPC_STRUCT_TRAITS_BEGIN(content::SSLStatus) |
| 308 IPC_STRUCT_TRAITS_MEMBER(is_pepper_menu) | 314 IPC_STRUCT_TRAITS_MEMBER(security_style) |
| 309 IPC_STRUCT_TRAITS_MEMBER(request_id) | 315 IPC_STRUCT_TRAITS_MEMBER(cert_id) |
| 310 IPC_STRUCT_TRAITS_MEMBER(render_widget_id) | 316 IPC_STRUCT_TRAITS_MEMBER(cert_status) |
| 317 IPC_STRUCT_TRAITS_MEMBER(security_bits) |
| 318 IPC_STRUCT_TRAITS_MEMBER(connection_status) |
| 319 IPC_STRUCT_TRAITS_MEMBER(content_status) |
| 311 IPC_STRUCT_TRAITS_END() | 320 IPC_STRUCT_TRAITS_END() |
| 312 | 321 |
| 313 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::WebAccessibility) | 322 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::WebAccessibility) |
| 314 IPC_STRUCT_TRAITS_MEMBER(id) | 323 IPC_STRUCT_TRAITS_MEMBER(id) |
| 315 IPC_STRUCT_TRAITS_MEMBER(name) | 324 IPC_STRUCT_TRAITS_MEMBER(name) |
| 316 IPC_STRUCT_TRAITS_MEMBER(value) | 325 IPC_STRUCT_TRAITS_MEMBER(value) |
| 317 IPC_STRUCT_TRAITS_MEMBER(role) | 326 IPC_STRUCT_TRAITS_MEMBER(role) |
| 318 IPC_STRUCT_TRAITS_MEMBER(state) | 327 IPC_STRUCT_TRAITS_MEMBER(state) |
| 319 IPC_STRUCT_TRAITS_MEMBER(location) | 328 IPC_STRUCT_TRAITS_MEMBER(location) |
| 320 IPC_STRUCT_TRAITS_MEMBER(string_attributes) | 329 IPC_STRUCT_TRAITS_MEMBER(string_attributes) |
| (...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 813 IPC_MESSAGE_ROUTED1(ViewMsg_SetInitialFocus, | 822 IPC_MESSAGE_ROUTED1(ViewMsg_SetInitialFocus, |
| 814 bool /* reverse */) | 823 bool /* reverse */) |
| 815 | 824 |
| 816 // Tells the renderer to scroll the currently focused node into rect only if | 825 // Tells the renderer to scroll the currently focused node into rect only if |
| 817 // the currently focused node is a Text node (textfield, text area or content | 826 // the currently focused node is a Text node (textfield, text area or content |
| 818 // editable divs). | 827 // editable divs). |
| 819 IPC_MESSAGE_ROUTED1(ViewMsg_ScrollFocusedEditableNodeIntoRect, gfx::Rect) | 828 IPC_MESSAGE_ROUTED1(ViewMsg_ScrollFocusedEditableNodeIntoRect, gfx::Rect) |
| 820 | 829 |
| 821 // Executes custom context menu action that was provided from WebKit. | 830 // Executes custom context menu action that was provided from WebKit. |
| 822 IPC_MESSAGE_ROUTED2(ViewMsg_CustomContextMenuAction, | 831 IPC_MESSAGE_ROUTED2(ViewMsg_CustomContextMenuAction, |
| 823 webkit_glue::CustomContextMenuContext /* custom_context */, | 832 content::CustomContextMenuContext /* custom_context */, |
| 824 unsigned /* action */) | 833 unsigned /* action */) |
| 825 | 834 |
| 826 // Sent in response to a ViewHostMsg_ContextMenu to let the renderer know that | 835 // Sent in response to a ViewHostMsg_ContextMenu to let the renderer know that |
| 827 // the menu has been closed. | 836 // the menu has been closed. |
| 828 IPC_MESSAGE_ROUTED1(ViewMsg_ContextMenuClosed, | 837 IPC_MESSAGE_ROUTED1(ViewMsg_ContextMenuClosed, |
| 829 webkit_glue::CustomContextMenuContext /* custom_context */) | 838 content::CustomContextMenuContext /* custom_context */) |
| 830 | 839 |
| 831 // Tells the renderer to perform the specified navigation, interrupting any | 840 // Tells the renderer to perform the specified navigation, interrupting any |
| 832 // existing navigation. | 841 // existing navigation. |
| 833 IPC_MESSAGE_ROUTED1(ViewMsg_Navigate, ViewMsg_Navigate_Params) | 842 IPC_MESSAGE_ROUTED1(ViewMsg_Navigate, ViewMsg_Navigate_Params) |
| 834 | 843 |
| 835 IPC_MESSAGE_ROUTED0(ViewMsg_Stop) | 844 IPC_MESSAGE_ROUTED0(ViewMsg_Stop) |
| 836 | 845 |
| 837 // Tells the renderer to reload the current focused frame | 846 // Tells the renderer to reload the current focused frame |
| 838 IPC_MESSAGE_ROUTED0(ViewMsg_ReloadFrame) | 847 IPC_MESSAGE_ROUTED0(ViewMsg_ReloadFrame) |
| 839 | 848 |
| (...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1306 // Notifies the browser that a frame in the view has changed. This message | 1315 // Notifies the browser that a frame in the view has changed. This message |
| 1307 // has a lot of parameters and is packed/unpacked by functions defined in | 1316 // has a lot of parameters and is packed/unpacked by functions defined in |
| 1308 // render_messages.h. | 1317 // render_messages.h. |
| 1309 IPC_MESSAGE_ROUTED1(ViewHostMsg_FrameNavigate, | 1318 IPC_MESSAGE_ROUTED1(ViewHostMsg_FrameNavigate, |
| 1310 ViewHostMsg_FrameNavigate_Params) | 1319 ViewHostMsg_FrameNavigate_Params) |
| 1311 | 1320 |
| 1312 // Used to tell the parent that the user right clicked on an area of the | 1321 // Used to tell the parent that the user right clicked on an area of the |
| 1313 // content area, and a context menu should be shown for it. The params | 1322 // content area, and a context menu should be shown for it. The params |
| 1314 // object contains information about the node(s) that were selected when the | 1323 // object contains information about the node(s) that were selected when the |
| 1315 // user right clicked. | 1324 // user right clicked. |
| 1316 IPC_MESSAGE_ROUTED1(ViewHostMsg_ContextMenu, ContextMenuParams) | 1325 IPC_MESSAGE_ROUTED1(ViewHostMsg_ContextMenu, content::ContextMenuParams) |
| 1317 | 1326 |
| 1318 // Message to show a popup menu using native cocoa controls (Mac only). | 1327 // Message to show a popup menu using native cocoa controls (Mac only). |
| 1319 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowPopup, | 1328 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowPopup, |
| 1320 ViewHostMsg_ShowPopup_Params) | 1329 ViewHostMsg_ShowPopup_Params) |
| 1321 | 1330 |
| 1322 // Response from ViewMsg_ScriptEvalRequest. The ID is the parameter supplied | 1331 // Response from ViewMsg_ScriptEvalRequest. The ID is the parameter supplied |
| 1323 // to ViewMsg_ScriptEvalRequest. The result has the value returned by the | 1332 // to ViewMsg_ScriptEvalRequest. The result has the value returned by the |
| 1324 // script as it's only element, one of Null, Boolean, Integer, Real, Date, or | 1333 // script as it's only element, one of Null, Boolean, Integer, Real, Date, or |
| 1325 // String. | 1334 // String. |
| 1326 IPC_MESSAGE_ROUTED2(ViewHostMsg_ScriptEvalResponse, | 1335 IPC_MESSAGE_ROUTED2(ViewHostMsg_ScriptEvalResponse, |
| (...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2009 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) | 2018 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) |
| 2010 | 2019 |
| 2011 // Following message is used to communicate the values received by the | 2020 // Following message is used to communicate the values received by the |
| 2012 // callback binding the JS to Cpp. | 2021 // callback binding the JS to Cpp. |
| 2013 // An instance of browser that has an automation host listening to it can | 2022 // An instance of browser that has an automation host listening to it can |
| 2014 // have a javascript send a native value (string, number, boolean) to the | 2023 // have a javascript send a native value (string, number, boolean) to the |
| 2015 // listener in Cpp. (DomAutomationController) | 2024 // listener in Cpp. (DomAutomationController) |
| 2016 IPC_MESSAGE_ROUTED2(ViewHostMsg_DomOperationResponse, | 2025 IPC_MESSAGE_ROUTED2(ViewHostMsg_DomOperationResponse, |
| 2017 std::string /* json_string */, | 2026 std::string /* json_string */, |
| 2018 int /* automation_id */) | 2027 int /* automation_id */) |
| OLD | NEW |