[Android WebView] Fix webview perf bot switchover to use org.chromium.webview_shell...
[chromium-blink-merge.git] / content / common / view_messages.h
blobc7f5b3e1447cba6c4bed434c6325b2764c592c3a
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
3 // found in the LICENSE file.
5 // IPC messages for page rendering.
6 // Multiply-included message file, hence no include guard.
8 #include "base/memory/shared_memory.h"
9 #include "base/process/process.h"
10 #include "base/strings/string16.h"
11 #include "cc/output/begin_frame_args.h"
12 #include "cc/output/compositor_frame.h"
13 #include "cc/output/compositor_frame_ack.h"
14 #include "content/common/content_export.h"
15 #include "content/common/content_param_traits.h"
16 #include "content/common/date_time_suggestion.h"
17 #include "content/common/frame_replication_state.h"
18 #include "content/common/navigation_gesture.h"
19 #include "content/common/view_message_enums.h"
20 #include "content/common/webplugin_geometry.h"
21 #include "content/public/common/common_param_traits.h"
22 #include "content/public/common/favicon_url.h"
23 #include "content/public/common/file_chooser_file_info.h"
24 #include "content/public/common/file_chooser_params.h"
25 #include "content/public/common/menu_item.h"
26 #include "content/public/common/message_port_types.h"
27 #include "content/public/common/page_state.h"
28 #include "content/public/common/page_zoom.h"
29 #include "content/public/common/referrer.h"
30 #include "content/public/common/renderer_preferences.h"
31 #include "content/public/common/stop_find_action.h"
32 #include "content/public/common/three_d_api_types.h"
33 #include "content/public/common/window_container_type.h"
34 #include "ipc/ipc_channel_handle.h"
35 #include "ipc/ipc_message_macros.h"
36 #include "ipc/ipc_platform_file.h"
37 #include "media/audio/audio_parameters.h"
38 #include "media/base/channel_layout.h"
39 #include "media/base/media_log_event.h"
40 #include "net/base/network_change_notifier.h"
41 #include "third_party/WebKit/public/platform/WebDisplayMode.h"
42 #include "third_party/WebKit/public/platform/WebFloatPoint.h"
43 #include "third_party/WebKit/public/platform/WebFloatRect.h"
44 #include "third_party/WebKit/public/platform/WebScreenInfo.h"
45 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScreenOrientationType.h"
46 #include "third_party/WebKit/public/web/WebDeviceEmulationParams.h"
47 #include "third_party/WebKit/public/web/WebFindOptions.h"
48 #include "third_party/WebKit/public/web/WebMediaPlayerAction.h"
49 #include "third_party/WebKit/public/web/WebPluginAction.h"
50 #include "third_party/WebKit/public/web/WebPopupType.h"
51 #include "third_party/WebKit/public/web/WebTextDirection.h"
52 #include "third_party/skia/include/core/SkBitmap.h"
53 #include "ui/base/ime/text_input_mode.h"
54 #include "ui/base/ime/text_input_type.h"
55 #include "ui/base/ui_base_types.h"
56 #include "ui/gfx/geometry/point.h"
57 #include "ui/gfx/geometry/rect.h"
58 #include "ui/gfx/geometry/rect_f.h"
59 #include "ui/gfx/geometry/vector2d.h"
60 #include "ui/gfx/geometry/vector2d_f.h"
61 #include "ui/gfx/ipc/gfx_param_traits.h"
62 #include "ui/gfx/range/range.h"
64 #if defined(OS_MACOSX)
65 #include "content/common/mac/font_descriptor.h"
66 #include "third_party/WebKit/public/web/mac/WebScrollbarTheme.h"
67 #endif
69 #if defined(ENABLE_PLUGINS)
70 #include "content/common/pepper_renderer_instance_data.h"
71 #endif
73 #undef IPC_MESSAGE_EXPORT
74 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
76 #define IPC_MESSAGE_START ViewMsgStart
78 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebDeviceEmulationParams::ScreenPosition,
79 blink::WebDeviceEmulationParams::ScreenPositionLast)
80 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebMediaPlayerAction::Type,
81 blink::WebMediaPlayerAction::Type::TypeLast)
82 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPluginAction::Type,
83 blink::WebPluginAction::Type::TypeLast)
84 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPopupType,
85 blink::WebPopupType::WebPopupTypeLast)
86 // TODO(dcheng): Update WebScreenOrientationType to have a "Last" enum member.
87 IPC_ENUM_TRAITS_MIN_MAX_VALUE(blink::WebScreenOrientationType,
88 blink::WebScreenOrientationUndefined,
89 blink::WebScreenOrientationLandscapeSecondary)
90 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebTextDirection,
91 blink::WebTextDirection::WebTextDirectionLast)
92 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebDisplayMode,
93 blink::WebDisplayMode::WebDisplayModeLast)
94 IPC_ENUM_TRAITS_MAX_VALUE(WindowContainerType, WINDOW_CONTAINER_TYPE_MAX_VALUE)
95 IPC_ENUM_TRAITS(content::FaviconURL::IconType)
96 IPC_ENUM_TRAITS(content::FileChooserParams::Mode)
97 IPC_ENUM_TRAITS(content::MenuItem::Type)
98 IPC_ENUM_TRAITS_MAX_VALUE(content::NavigationGesture,
99 content::NavigationGestureLast)
100 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::PageZoom,
101 content::PageZoom::PAGE_ZOOM_OUT,
102 content::PageZoom::PAGE_ZOOM_IN)
103 IPC_ENUM_TRAITS_MAX_VALUE(gfx::FontRenderParams::Hinting,
104 gfx::FontRenderParams::HINTING_MAX)
105 IPC_ENUM_TRAITS_MAX_VALUE(gfx::FontRenderParams::SubpixelRendering,
106 gfx::FontRenderParams::SUBPIXEL_RENDERING_MAX)
107 IPC_ENUM_TRAITS_MAX_VALUE(content::TapMultipleTargetsStrategy,
108 content::TAP_MULTIPLE_TARGETS_STRATEGY_MAX)
109 IPC_ENUM_TRAITS_MAX_VALUE(content::StopFindAction,
110 content::STOP_FIND_ACTION_LAST)
111 IPC_ENUM_TRAITS_MAX_VALUE(content::ThreeDAPIType,
112 content::THREE_D_API_TYPE_LAST)
113 IPC_ENUM_TRAITS_MAX_VALUE(media::ChannelLayout, media::CHANNEL_LAYOUT_MAX - 1)
114 IPC_ENUM_TRAITS_MAX_VALUE(media::MediaLogEvent::Type,
115 media::MediaLogEvent::TYPE_LAST)
116 IPC_ENUM_TRAITS_MAX_VALUE(ui::TextInputMode, ui::TEXT_INPUT_MODE_MAX)
117 IPC_ENUM_TRAITS_MAX_VALUE(ui::TextInputType, ui::TEXT_INPUT_TYPE_MAX)
119 #if defined(OS_MACOSX)
120 IPC_STRUCT_TRAITS_BEGIN(FontDescriptor)
121 IPC_STRUCT_TRAITS_MEMBER(font_name)
122 IPC_STRUCT_TRAITS_MEMBER(font_point_size)
123 IPC_STRUCT_TRAITS_END()
124 #endif
126 IPC_STRUCT_TRAITS_BEGIN(blink::WebFindOptions)
127 IPC_STRUCT_TRAITS_MEMBER(forward)
128 IPC_STRUCT_TRAITS_MEMBER(matchCase)
129 IPC_STRUCT_TRAITS_MEMBER(findNext)
130 IPC_STRUCT_TRAITS_END()
132 IPC_STRUCT_TRAITS_BEGIN(blink::WebMediaPlayerAction)
133 IPC_STRUCT_TRAITS_MEMBER(type)
134 IPC_STRUCT_TRAITS_MEMBER(enable)
135 IPC_STRUCT_TRAITS_END()
137 IPC_STRUCT_TRAITS_BEGIN(blink::WebPluginAction)
138 IPC_STRUCT_TRAITS_MEMBER(type)
139 IPC_STRUCT_TRAITS_MEMBER(enable)
140 IPC_STRUCT_TRAITS_END()
142 IPC_STRUCT_TRAITS_BEGIN(blink::WebFloatPoint)
143 IPC_STRUCT_TRAITS_MEMBER(x)
144 IPC_STRUCT_TRAITS_MEMBER(y)
145 IPC_STRUCT_TRAITS_END()
147 IPC_STRUCT_TRAITS_BEGIN(blink::WebFloatRect)
148 IPC_STRUCT_TRAITS_MEMBER(x)
149 IPC_STRUCT_TRAITS_MEMBER(y)
150 IPC_STRUCT_TRAITS_MEMBER(width)
151 IPC_STRUCT_TRAITS_MEMBER(height)
152 IPC_STRUCT_TRAITS_END()
154 IPC_STRUCT_TRAITS_BEGIN(blink::WebSize)
155 IPC_STRUCT_TRAITS_MEMBER(width)
156 IPC_STRUCT_TRAITS_MEMBER(height)
157 IPC_STRUCT_TRAITS_END()
159 IPC_STRUCT_TRAITS_BEGIN(blink::WebDeviceEmulationParams)
160 IPC_STRUCT_TRAITS_MEMBER(screenPosition)
161 IPC_STRUCT_TRAITS_MEMBER(deviceScaleFactor)
162 IPC_STRUCT_TRAITS_MEMBER(viewSize)
163 IPC_STRUCT_TRAITS_MEMBER(fitToView)
164 IPC_STRUCT_TRAITS_MEMBER(offset)
165 IPC_STRUCT_TRAITS_MEMBER(scale)
166 IPC_STRUCT_TRAITS_END()
168 IPC_STRUCT_TRAITS_BEGIN(blink::WebScreenInfo)
169 IPC_STRUCT_TRAITS_MEMBER(deviceScaleFactor)
170 IPC_STRUCT_TRAITS_MEMBER(depth)
171 IPC_STRUCT_TRAITS_MEMBER(depthPerComponent)
172 IPC_STRUCT_TRAITS_MEMBER(isMonochrome)
173 IPC_STRUCT_TRAITS_MEMBER(rect)
174 IPC_STRUCT_TRAITS_MEMBER(availableRect)
175 IPC_STRUCT_TRAITS_MEMBER(orientationType)
176 IPC_STRUCT_TRAITS_MEMBER(orientationAngle)
177 IPC_STRUCT_TRAITS_END()
179 IPC_STRUCT_TRAITS_BEGIN(content::MenuItem)
180 IPC_STRUCT_TRAITS_MEMBER(label)
181 IPC_STRUCT_TRAITS_MEMBER(tool_tip)
182 IPC_STRUCT_TRAITS_MEMBER(type)
183 IPC_STRUCT_TRAITS_MEMBER(action)
184 IPC_STRUCT_TRAITS_MEMBER(rtl)
185 IPC_STRUCT_TRAITS_MEMBER(has_directional_override)
186 IPC_STRUCT_TRAITS_MEMBER(enabled)
187 IPC_STRUCT_TRAITS_MEMBER(checked)
188 IPC_STRUCT_TRAITS_MEMBER(submenu)
189 IPC_STRUCT_TRAITS_END()
191 IPC_STRUCT_TRAITS_BEGIN(content::DateTimeSuggestion)
192 IPC_STRUCT_TRAITS_MEMBER(value)
193 IPC_STRUCT_TRAITS_MEMBER(localized_value)
194 IPC_STRUCT_TRAITS_MEMBER(label)
195 IPC_STRUCT_TRAITS_END()
197 IPC_STRUCT_TRAITS_BEGIN(content::FaviconURL)
198 IPC_STRUCT_TRAITS_MEMBER(icon_url)
199 IPC_STRUCT_TRAITS_MEMBER(icon_type)
200 IPC_STRUCT_TRAITS_MEMBER(icon_sizes)
201 IPC_STRUCT_TRAITS_END()
203 IPC_STRUCT_TRAITS_BEGIN(content::FileChooserFileInfo)
204 IPC_STRUCT_TRAITS_MEMBER(file_path)
205 IPC_STRUCT_TRAITS_MEMBER(display_name)
206 IPC_STRUCT_TRAITS_MEMBER(file_system_url)
207 IPC_STRUCT_TRAITS_MEMBER(modification_time)
208 IPC_STRUCT_TRAITS_MEMBER(length)
209 IPC_STRUCT_TRAITS_MEMBER(is_directory)
210 IPC_STRUCT_TRAITS_END()
212 IPC_STRUCT_TRAITS_BEGIN(content::FileChooserParams)
213 IPC_STRUCT_TRAITS_MEMBER(mode)
214 IPC_STRUCT_TRAITS_MEMBER(title)
215 IPC_STRUCT_TRAITS_MEMBER(default_file_name)
216 IPC_STRUCT_TRAITS_MEMBER(accept_types)
217 IPC_STRUCT_TRAITS_MEMBER(need_local_path)
218 #if defined(OS_ANDROID)
219 IPC_STRUCT_TRAITS_MEMBER(capture)
220 #endif
221 IPC_STRUCT_TRAITS_END()
223 #if defined(ENABLE_PLUGINS)
224 IPC_STRUCT_TRAITS_BEGIN(content::PepperRendererInstanceData)
225 IPC_STRUCT_TRAITS_MEMBER(render_process_id)
226 IPC_STRUCT_TRAITS_MEMBER(render_frame_id)
227 IPC_STRUCT_TRAITS_MEMBER(document_url)
228 IPC_STRUCT_TRAITS_MEMBER(plugin_url)
229 IPC_STRUCT_TRAITS_MEMBER(is_potentially_secure_plugin_context)
230 IPC_STRUCT_TRAITS_END()
231 #endif
233 IPC_STRUCT_TRAITS_BEGIN(content::RendererPreferences)
234 IPC_STRUCT_TRAITS_MEMBER(can_accept_load_drops)
235 IPC_STRUCT_TRAITS_MEMBER(should_antialias_text)
236 IPC_STRUCT_TRAITS_MEMBER(hinting)
237 IPC_STRUCT_TRAITS_MEMBER(use_autohinter)
238 IPC_STRUCT_TRAITS_MEMBER(use_bitmaps)
239 IPC_STRUCT_TRAITS_MEMBER(subpixel_rendering)
240 IPC_STRUCT_TRAITS_MEMBER(use_subpixel_positioning)
241 IPC_STRUCT_TRAITS_MEMBER(focus_ring_color)
242 IPC_STRUCT_TRAITS_MEMBER(thumb_active_color)
243 IPC_STRUCT_TRAITS_MEMBER(thumb_inactive_color)
244 IPC_STRUCT_TRAITS_MEMBER(track_color)
245 IPC_STRUCT_TRAITS_MEMBER(active_selection_bg_color)
246 IPC_STRUCT_TRAITS_MEMBER(active_selection_fg_color)
247 IPC_STRUCT_TRAITS_MEMBER(inactive_selection_bg_color)
248 IPC_STRUCT_TRAITS_MEMBER(inactive_selection_fg_color)
249 IPC_STRUCT_TRAITS_MEMBER(browser_handles_non_local_top_level_requests)
250 IPC_STRUCT_TRAITS_MEMBER(browser_handles_all_top_level_requests)
251 IPC_STRUCT_TRAITS_MEMBER(caret_blink_interval)
252 IPC_STRUCT_TRAITS_MEMBER(use_custom_colors)
253 IPC_STRUCT_TRAITS_MEMBER(enable_referrers)
254 IPC_STRUCT_TRAITS_MEMBER(enable_do_not_track)
255 IPC_STRUCT_TRAITS_MEMBER(enable_webrtc_multiple_routes)
256 IPC_STRUCT_TRAITS_MEMBER(default_zoom_level)
257 IPC_STRUCT_TRAITS_MEMBER(user_agent_override)
258 IPC_STRUCT_TRAITS_MEMBER(accept_languages)
259 IPC_STRUCT_TRAITS_MEMBER(report_frame_name_changes)
260 IPC_STRUCT_TRAITS_MEMBER(tap_multiple_targets_strategy)
261 IPC_STRUCT_TRAITS_MEMBER(disable_client_blocked_error_page)
262 IPC_STRUCT_TRAITS_MEMBER(plugin_fullscreen_allowed)
263 IPC_STRUCT_TRAITS_MEMBER(use_video_overlay_for_embedded_encrypted_video)
264 IPC_STRUCT_TRAITS_MEMBER(use_view_overlay_for_all_video)
265 IPC_STRUCT_TRAITS_MEMBER(network_contry_iso)
266 #if defined(OS_WIN)
267 IPC_STRUCT_TRAITS_MEMBER(caption_font_family_name)
268 IPC_STRUCT_TRAITS_MEMBER(caption_font_height)
269 IPC_STRUCT_TRAITS_MEMBER(small_caption_font_family_name)
270 IPC_STRUCT_TRAITS_MEMBER(small_caption_font_height)
271 IPC_STRUCT_TRAITS_MEMBER(menu_font_family_name)
272 IPC_STRUCT_TRAITS_MEMBER(menu_font_height)
273 IPC_STRUCT_TRAITS_MEMBER(status_font_family_name)
274 IPC_STRUCT_TRAITS_MEMBER(status_font_height)
275 IPC_STRUCT_TRAITS_MEMBER(message_font_family_name)
276 IPC_STRUCT_TRAITS_MEMBER(message_font_height)
277 IPC_STRUCT_TRAITS_MEMBER(vertical_scroll_bar_width_in_dips)
278 IPC_STRUCT_TRAITS_MEMBER(horizontal_scroll_bar_height_in_dips)
279 IPC_STRUCT_TRAITS_MEMBER(arrow_bitmap_height_vertical_scroll_bar_in_dips)
280 IPC_STRUCT_TRAITS_MEMBER(arrow_bitmap_width_horizontal_scroll_bar_in_dips)
281 #endif
282 IPC_STRUCT_TRAITS_END()
284 IPC_STRUCT_TRAITS_BEGIN(content::WebPluginGeometry)
285 IPC_STRUCT_TRAITS_MEMBER(window)
286 IPC_STRUCT_TRAITS_MEMBER(window_rect)
287 IPC_STRUCT_TRAITS_MEMBER(clip_rect)
288 IPC_STRUCT_TRAITS_MEMBER(cutout_rects)
289 IPC_STRUCT_TRAITS_MEMBER(rects_valid)
290 IPC_STRUCT_TRAITS_MEMBER(visible)
291 IPC_STRUCT_TRAITS_END()
293 IPC_STRUCT_TRAITS_BEGIN(media::MediaLogEvent)
294 IPC_STRUCT_TRAITS_MEMBER(id)
295 IPC_STRUCT_TRAITS_MEMBER(type)
296 IPC_STRUCT_TRAITS_MEMBER(params)
297 IPC_STRUCT_TRAITS_MEMBER(time)
298 IPC_STRUCT_TRAITS_END()
300 IPC_STRUCT_BEGIN(ViewHostMsg_CreateWindow_Params)
301 // Routing ID of the view initiating the open.
302 IPC_STRUCT_MEMBER(int, opener_id)
304 // True if this open request came in the context of a user gesture.
305 IPC_STRUCT_MEMBER(bool, user_gesture)
307 // Type of window requested.
308 IPC_STRUCT_MEMBER(WindowContainerType, window_container_type)
310 // The session storage namespace ID this view should use.
311 IPC_STRUCT_MEMBER(int64, session_storage_namespace_id)
313 // The name of the resulting frame that should be created (empty if none
314 // has been specified).
315 IPC_STRUCT_MEMBER(base::string16, frame_name)
317 // The routing id of the frame initiating the open.
318 IPC_STRUCT_MEMBER(int, opener_render_frame_id)
320 // The URL of the frame initiating the open.
321 IPC_STRUCT_MEMBER(GURL, opener_url)
323 // The URL of the top frame containing the opener.
324 IPC_STRUCT_MEMBER(GURL, opener_top_level_frame_url)
326 // The security origin of the frame initiating the open.
327 IPC_STRUCT_MEMBER(GURL, opener_security_origin)
329 // Whether the opener will be suppressed in the new window, in which case
330 // scripting the new window is not allowed.
331 IPC_STRUCT_MEMBER(bool, opener_suppressed)
333 // Whether the window should be opened in the foreground, background, etc.
334 IPC_STRUCT_MEMBER(WindowOpenDisposition, disposition)
336 // The URL that will be loaded in the new window (empty if none has been
337 // sepcified).
338 IPC_STRUCT_MEMBER(GURL, target_url)
340 // The referrer that will be used to load |target_url| (empty if none has
341 // been specified).
342 IPC_STRUCT_MEMBER(content::Referrer, referrer)
344 // The window features to use for the new view.
345 IPC_STRUCT_MEMBER(blink::WebWindowFeatures, features)
347 // The additional window features to use for the new view. We pass these
348 // separately from |features| above because we cannot serialize WebStrings
349 // over IPC.
350 IPC_STRUCT_MEMBER(std::vector<base::string16>, additional_features)
351 IPC_STRUCT_END()
353 IPC_STRUCT_BEGIN(ViewHostMsg_CreateWorker_Params)
354 // URL for the worker script.
355 IPC_STRUCT_MEMBER(GURL, url)
357 // Name for a SharedWorker, otherwise empty string.
358 IPC_STRUCT_MEMBER(base::string16, name)
360 // Security policy used in the worker.
361 IPC_STRUCT_MEMBER(base::string16, content_security_policy)
363 // Security policy type used in the worker.
364 IPC_STRUCT_MEMBER(blink::WebContentSecurityPolicyType, security_policy_type)
366 // The ID of the parent document (unique within parent renderer).
367 IPC_STRUCT_MEMBER(unsigned long long, document_id)
369 // RenderFrame routing id used to send messages back to the parent.
370 IPC_STRUCT_MEMBER(int, render_frame_route_id)
371 IPC_STRUCT_END()
373 IPC_STRUCT_BEGIN(ViewHostMsg_DateTimeDialogValue_Params)
374 IPC_STRUCT_MEMBER(ui::TextInputType, dialog_type)
375 IPC_STRUCT_MEMBER(double, dialog_value)
376 IPC_STRUCT_MEMBER(double, minimum)
377 IPC_STRUCT_MEMBER(double, maximum)
378 IPC_STRUCT_MEMBER(double, step)
379 IPC_STRUCT_MEMBER(std::vector<content::DateTimeSuggestion>, suggestions)
380 IPC_STRUCT_END()
382 IPC_STRUCT_BEGIN(ViewHostMsg_SelectionBounds_Params)
383 IPC_STRUCT_MEMBER(gfx::Rect, anchor_rect)
384 IPC_STRUCT_MEMBER(blink::WebTextDirection, anchor_dir)
385 IPC_STRUCT_MEMBER(gfx::Rect, focus_rect)
386 IPC_STRUCT_MEMBER(blink::WebTextDirection, focus_dir)
387 IPC_STRUCT_MEMBER(bool, is_anchor_first)
388 IPC_STRUCT_END()
390 IPC_STRUCT_BEGIN(ViewHostMsg_TextInputState_Params)
391 // The type of input field
392 IPC_STRUCT_MEMBER(ui::TextInputType, type)
394 // The flags of the input field (autocorrect, autocomplete, etc.)
395 IPC_STRUCT_MEMBER(int, flags)
397 // The value of the input field
398 IPC_STRUCT_MEMBER(std::string, value)
400 // The cursor position of the current selection start, or the caret position
401 // if nothing is selected
402 IPC_STRUCT_MEMBER(int, selection_start)
404 // The cursor position of the current selection end, or the caret position
405 // if nothing is selected
406 IPC_STRUCT_MEMBER(int, selection_end)
408 // The start position of the current composition, or -1 if there is none
409 IPC_STRUCT_MEMBER(int, composition_start)
411 // The end position of the current composition, or -1 if there is none
412 IPC_STRUCT_MEMBER(int, composition_end)
414 // Whether or not inline composition can be performed for the current input.
415 IPC_STRUCT_MEMBER(bool, can_compose_inline)
417 // Whether or not the IME should be shown as a result of this update. Even if
418 // true, the IME will only be shown if the type is appropriate (e.g. not
419 // TEXT_INPUT_TYPE_NONE).
420 IPC_STRUCT_MEMBER(bool, show_ime_if_needed)
422 // Whether this change is originated from non-IME (e.g. Javascript, Autofill).
423 IPC_STRUCT_MEMBER(bool, is_non_ime_change)
424 IPC_STRUCT_END()
426 IPC_STRUCT_BEGIN(ViewHostMsg_UpdateRect_Params)
427 // The size of the RenderView when this message was generated. This is
428 // included so the host knows how large the view is from the perspective of
429 // the renderer process. This is necessary in case a resize operation is in
430 // progress. If auto-resize is enabled, this should update the corresponding
431 // view size.
432 IPC_STRUCT_MEMBER(gfx::Size, view_size)
434 // New window locations for plugin child windows.
435 IPC_STRUCT_MEMBER(std::vector<content::WebPluginGeometry>,
436 plugin_window_moves)
438 // The following describes the various bits that may be set in flags:
440 // ViewHostMsg_UpdateRect_Flags::IS_RESIZE_ACK
441 // Indicates that this is a response to a ViewMsg_Resize message.
443 // ViewHostMsg_UpdateRect_Flags::IS_REPAINT_ACK
444 // Indicates that this is a response to a ViewMsg_Repaint message.
446 // If flags is zero, then this message corresponds to an unsolicited paint
447 // request by the render view. Any of the above bits may be set in flags,
448 // which would indicate that this paint message is an ACK for multiple
449 // request messages.
450 IPC_STRUCT_MEMBER(int, flags)
451 IPC_STRUCT_END()
453 IPC_STRUCT_BEGIN(ViewMsg_Resize_Params)
454 // Information about the screen (dpi, depth, etc..).
455 IPC_STRUCT_MEMBER(blink::WebScreenInfo, screen_info)
456 // The size of the renderer.
457 IPC_STRUCT_MEMBER(gfx::Size, new_size)
458 // The size of the view's backing surface in non-DPI-adjusted pixels.
459 IPC_STRUCT_MEMBER(gfx::Size, physical_backing_size)
460 // Whether or not Blink's viewport size should be shrunk by the height of the
461 // URL-bar (always false on platforms where URL-bar hiding isn't supported).
462 IPC_STRUCT_MEMBER(bool, top_controls_shrink_blink_size)
463 // The height of the top controls (always 0 on platforms where URL-bar hiding
464 // isn't supported).
465 IPC_STRUCT_MEMBER(float, top_controls_height)
466 // The size of the visible viewport, which may be smaller than the view if the
467 // view is partially occluded (e.g. by a virtual keyboard). The size is in
468 // DPI-adjusted pixels.
469 IPC_STRUCT_MEMBER(gfx::Size, visible_viewport_size)
470 // The resizer rect.
471 IPC_STRUCT_MEMBER(gfx::Rect, resizer_rect)
472 // Indicates whether tab-initiated fullscreen was granted.
473 IPC_STRUCT_MEMBER(bool, is_fullscreen_granted)
474 // The display mode.
475 IPC_STRUCT_MEMBER(blink::WebDisplayMode, display_mode)
476 // If set, requests the renderer to reply with a ViewHostMsg_UpdateRect
477 // with the ViewHostMsg_UpdateRect_Flags::IS_RESIZE_ACK bit set in flags.
478 IPC_STRUCT_MEMBER(bool, needs_resize_ack)
479 IPC_STRUCT_END()
481 IPC_STRUCT_BEGIN(ViewMsg_New_Params)
482 // Renderer-wide preferences.
483 IPC_STRUCT_MEMBER(content::RendererPreferences, renderer_preferences)
485 // Preferences for this view.
486 IPC_STRUCT_MEMBER(content::WebPreferences, web_preferences)
488 // The ID of the view to be created.
489 IPC_STRUCT_MEMBER(int32, view_id)
491 // The ID of the main frame hosted in the view.
492 IPC_STRUCT_MEMBER(int32, main_frame_routing_id)
494 // The ID of the rendering surface.
495 IPC_STRUCT_MEMBER(int32, surface_id)
497 // The session storage namespace ID this view should use.
498 IPC_STRUCT_MEMBER(int64, session_storage_namespace_id)
500 // The name of the frame associated with this view (or empty if none).
501 IPC_STRUCT_MEMBER(base::string16, frame_name)
503 // The route ID of the opener RenderView if we need to set one
504 // (MSG_ROUTING_NONE otherwise).
505 IPC_STRUCT_MEMBER(int, opener_route_id)
507 // Whether the RenderView should initially be swapped out.
508 IPC_STRUCT_MEMBER(bool, swapped_out)
510 // In --site-per-process mode, if this view is |swapped_out|, its main frame
511 // will become a RenderFrameProxy. |replicated_frame_state| is used to
512 // replicate information such as security origin to that RenderFrameProxy.
513 IPC_STRUCT_MEMBER(content::FrameReplicationState, replicated_frame_state)
515 // The ID of the proxy object for the main frame in this view. It is only
516 // used if |swapped_out| is true.
517 IPC_STRUCT_MEMBER(int32, proxy_routing_id)
519 // Whether the RenderView should initially be hidden.
520 IPC_STRUCT_MEMBER(bool, hidden)
522 // Whether the RenderView will never be visible.
523 IPC_STRUCT_MEMBER(bool, never_visible)
525 // Whether the window associated with this view was created with an opener.
526 IPC_STRUCT_MEMBER(bool, window_was_created_with_opener)
528 // The initial page ID to use for this view, which must be larger than any
529 // existing navigation that might be loaded in the view. Page IDs are unique
530 // to a view and are only updated by the renderer after this initial value.
531 IPC_STRUCT_MEMBER(int32, next_page_id)
533 // The initial renderer size.
534 IPC_STRUCT_MEMBER(ViewMsg_Resize_Params, initial_size)
536 // Whether to enable auto-resize.
537 IPC_STRUCT_MEMBER(bool, enable_auto_resize)
539 // The minimum size to layout the page if auto-resize is enabled.
540 IPC_STRUCT_MEMBER(gfx::Size, min_size)
542 // The maximum size to layout the page if auto-resize is enabled.
543 IPC_STRUCT_MEMBER(gfx::Size, max_size)
544 IPC_STRUCT_END()
546 // Messages sent from the browser to the renderer.
548 #if defined(OS_ANDROID)
549 // Tells the renderer to cancel an opened date/time dialog.
550 IPC_MESSAGE_ROUTED0(ViewMsg_CancelDateTimeDialog)
552 // Replaces a date time input field.
553 IPC_MESSAGE_ROUTED1(ViewMsg_ReplaceDateTime,
554 double /* dialog_value */)
556 #endif
558 // Get all savable resource links from current webpage, include main
559 // frame and sub-frame.
560 IPC_MESSAGE_ROUTED1(ViewMsg_GetAllSavableResourceLinksForCurrentPage,
561 GURL /* url of page which is needed to save */)
563 // Get html data by serializing all frames of current page with lists
564 // which contain all resource links that have local copy.
565 IPC_MESSAGE_ROUTED3(ViewMsg_GetSerializedHtmlDataForCurrentPageWithLocalLinks,
566 std::vector<GURL> /* urls that have local copy */,
567 std::vector<base::FilePath> /* paths of local copy */,
568 base::FilePath /* local directory path */)
570 // Tells the render side that a ViewHostMsg_LockMouse message has been
571 // processed. |succeeded| indicates whether the mouse has been successfully
572 // locked or not.
573 IPC_MESSAGE_ROUTED1(ViewMsg_LockMouse_ACK,
574 bool /* succeeded */)
575 // Tells the render side that the mouse has been unlocked.
576 IPC_MESSAGE_ROUTED0(ViewMsg_MouseLockLost)
578 // Sent by the browser when the parameters for vsync alignment have changed.
579 IPC_MESSAGE_ROUTED2(ViewMsg_UpdateVSyncParameters,
580 base::TimeTicks /* timebase */,
581 base::TimeDelta /* interval */)
583 // Sent when the history is altered outside of navigation. The history list was
584 // reset to |history_length| length, and the offset was reset to be
585 // |history_offset|.
586 IPC_MESSAGE_ROUTED2(ViewMsg_SetHistoryOffsetAndLength,
587 int /* history_offset */,
588 int /* history_length */)
590 // Tells the renderer to create a new view.
591 // This message is slightly different, the view it takes (via
592 // ViewMsg_New_Params) is the view to create, the message itself is sent as a
593 // non-view control message.
594 IPC_MESSAGE_CONTROL1(ViewMsg_New,
595 ViewMsg_New_Params)
597 // Reply in response to ViewHostMsg_ShowView or ViewHostMsg_ShowWidget.
598 // similar to the new command, but used when the renderer created a view
599 // first, and we need to update it.
600 IPC_MESSAGE_ROUTED0(ViewMsg_CreatingNew_ACK)
602 // Sends updated preferences to the renderer.
603 IPC_MESSAGE_ROUTED1(ViewMsg_SetRendererPrefs,
604 content::RendererPreferences)
606 // This passes a set of webkit preferences down to the renderer.
607 IPC_MESSAGE_ROUTED1(ViewMsg_UpdateWebPreferences,
608 content::WebPreferences)
610 // Informs the renderer that the timezone has changed along with a new
611 // timezone ID.
612 IPC_MESSAGE_CONTROL1(ViewMsg_TimezoneChange, std::string)
614 // Tells the render view to close.
615 // Expects a Close_ACK message when finished.
616 IPC_MESSAGE_ROUTED0(ViewMsg_Close)
618 // Tells the render view to change its size. A ViewHostMsg_UpdateRect message
619 // is generated in response provided new_size is not empty and not equal to
620 // the view's current size. The generated ViewHostMsg_UpdateRect message will
621 // have the IS_RESIZE_ACK flag set. It also receives the resizer rect so that
622 // we don't have to fetch it every time WebKit asks for it.
623 IPC_MESSAGE_ROUTED1(ViewMsg_Resize,
624 ViewMsg_Resize_Params /* params */)
626 // Enables device emulation. See WebDeviceEmulationParams for description.
627 IPC_MESSAGE_ROUTED1(ViewMsg_EnableDeviceEmulation,
628 blink::WebDeviceEmulationParams /* params */)
630 // Disables device emulation, enabled previously by EnableDeviceEmulation.
631 IPC_MESSAGE_ROUTED0(ViewMsg_DisableDeviceEmulation)
633 // Sent to inform the renderer of its screen device color profile. An empty
634 // profile tells the renderer use the default sRGB color profile.
635 IPC_MESSAGE_ROUTED1(ViewMsg_ColorProfile,
636 std::vector<char> /* color profile */)
638 // Tells the render view that the resize rect has changed.
639 IPC_MESSAGE_ROUTED1(ViewMsg_ChangeResizeRect,
640 gfx::Rect /* resizer_rect */)
642 // Sent to inform the view that it was hidden. This allows it to reduce its
643 // resource utilization.
644 IPC_MESSAGE_ROUTED0(ViewMsg_WasHidden)
646 // Tells the render view that it is no longer hidden (see WasHidden), and the
647 // render view is expected to respond with a full repaint if needs_repainting
648 // is true. If needs_repainting is false, then this message does not trigger a
649 // message in response.
650 IPC_MESSAGE_ROUTED2(ViewMsg_WasShown,
651 bool /* needs_repainting */,
652 ui::LatencyInfo /* latency_info */)
654 // Tells the renderer to focus the first (last if reverse is true) focusable
655 // node.
656 IPC_MESSAGE_ROUTED1(ViewMsg_SetInitialFocus,
657 bool /* reverse */)
659 // Sent to inform the renderer to invoke a context menu.
660 // The parameter specifies the location in the render view's coordinates.
661 IPC_MESSAGE_ROUTED2(ViewMsg_ShowContextMenu,
662 ui::MenuSourceType,
663 gfx::Point /* location where menu should be shown */)
665 // Sent when the user wants to search for a word on the page (find in page).
666 IPC_MESSAGE_ROUTED3(ViewMsg_Find,
667 int /* request_id */,
668 base::string16 /* search_text */,
669 blink::WebFindOptions)
671 // This message notifies the renderer that the user has closed the FindInPage
672 // window (and what action to take regarding the selection).
673 IPC_MESSAGE_ROUTED1(ViewMsg_StopFinding,
674 content::StopFindAction /* action */)
676 // Copies the image at location x, y to the clipboard (if there indeed is an
677 // image at that location).
678 IPC_MESSAGE_ROUTED2(ViewMsg_CopyImageAt,
679 int /* x */,
680 int /* y */)
682 // Saves the image at location x, y to the disk (if there indeed is an
683 // image at that location).
684 IPC_MESSAGE_ROUTED2(ViewMsg_SaveImageAt,
685 int /* x */,
686 int /* y */)
688 // Tells the renderer to perform the given action on the media player
689 // located at the given point.
690 IPC_MESSAGE_ROUTED2(ViewMsg_MediaPlayerActionAt,
691 gfx::Point, /* location */
692 blink::WebMediaPlayerAction)
694 // Tells the renderer to perform the given action on the plugin located at
695 // the given point.
696 IPC_MESSAGE_ROUTED2(ViewMsg_PluginActionAt,
697 gfx::Point, /* location */
698 blink::WebPluginAction)
700 // Resets the page scale for the current main frame to the default page scale.
701 IPC_MESSAGE_ROUTED0(ViewMsg_ResetPageScale)
703 // Change the zoom level for the current main frame. If the level actually
704 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser
705 // telling it what url got zoomed and what its current zoom level is.
706 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom,
707 content::PageZoom /* function */)
709 // Set the zoom level for a particular url that the renderer is in the
710 // process of loading. This will be stored, to be used if the load commits
711 // and ignored otherwise.
712 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForLoadingURL,
713 GURL /* url */,
714 double /* zoom_level */)
716 // Set the zoom level for a particular url, so all render views
717 // displaying this url can update their zoom levels to match.
718 // If scheme is empty, then only host is used for matching.
719 IPC_MESSAGE_CONTROL3(ViewMsg_SetZoomLevelForCurrentURL,
720 std::string /* scheme */,
721 std::string /* host */,
722 double /* zoom_level */)
724 // Set the zoom level for a particular render view.
725 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForView,
726 bool /* uses_temporary_zoom_level */,
727 double /* zoom_level */)
729 // Change encoding of page in the renderer.
730 IPC_MESSAGE_ROUTED1(ViewMsg_SetPageEncoding,
731 std::string /*new encoding name*/)
733 // Reset encoding of page in the renderer back to default.
734 IPC_MESSAGE_ROUTED0(ViewMsg_ResetPageEncodingToDefault)
736 // Used to tell a render view whether it should expose various bindings
737 // that allow JS content extended privileges. See BindingsPolicy for valid
738 // flag values.
739 IPC_MESSAGE_ROUTED1(ViewMsg_AllowBindings,
740 int /* enabled_bindings_flags */)
742 // Tell the renderer to add a property to the WebUI binding object. This
743 // only works if we allowed WebUI bindings.
744 IPC_MESSAGE_ROUTED2(ViewMsg_SetWebUIProperty,
745 std::string /* property_name */,
746 std::string /* property_value_json */)
748 // This message starts/stop monitoring the input method status of the focused
749 // edit control of a renderer process.
750 // Parameters
751 // * is_active (bool)
752 // Indicates if an input method is active in the browser process.
753 // The possible actions when a renderer process receives this message are
754 // listed below:
755 // Value Action
756 // true Start sending IPC message ViewHostMsg_ImeUpdateTextInputState
757 // to notify the input method status of the focused edit control.
758 // false Stop sending IPC message ViewHostMsg_ImeUpdateTextInputState.
759 IPC_MESSAGE_ROUTED1(ViewMsg_SetInputMethodActive,
760 bool /* is_active */)
762 // Used to notify the render-view that we have received a target URL. Used
763 // to prevent target URLs spamming the browser.
764 IPC_MESSAGE_ROUTED0(ViewMsg_UpdateTargetURL_ACK)
766 IPC_MESSAGE_ROUTED1(ViewMsg_RunFileChooserResponse,
767 std::vector<content::FileChooserFileInfo>)
769 // Provides the results of directory enumeration.
770 IPC_MESSAGE_ROUTED2(ViewMsg_EnumerateDirectoryResponse,
771 int /* request_id */,
772 std::vector<base::FilePath> /* files_in_directory */)
774 // When a renderer sends a ViewHostMsg_Focus to the browser process,
775 // the browser has the option of sending a ViewMsg_CantFocus back to
776 // the renderer.
777 IPC_MESSAGE_ROUTED0(ViewMsg_CantFocus)
779 // Tells the renderer to suppress any further modal dialogs until it receives a
780 // corresponding ViewMsg_SwapOut message. This ensures that no
781 // PageGroupLoadDeferrer is on the stack for SwapOut.
782 IPC_MESSAGE_ROUTED0(ViewMsg_SuppressDialogsUntilSwapOut)
784 // Instructs the renderer to close the current page, including running the
785 // onunload event handler.
787 // Expects a ClosePage_ACK message when finished.
788 IPC_MESSAGE_ROUTED0(ViewMsg_ClosePage)
790 // Notifies the renderer about ui theme changes
791 IPC_MESSAGE_ROUTED0(ViewMsg_ThemeChanged)
793 // Notifies the renderer that a paint is to be generated for the rectangle
794 // passed in.
795 IPC_MESSAGE_ROUTED1(ViewMsg_Repaint,
796 gfx::Size /* The view size to be repainted */)
798 // Notification that a move or resize renderer's containing window has
799 // started.
800 IPC_MESSAGE_ROUTED0(ViewMsg_MoveOrResizeStarted)
802 IPC_MESSAGE_ROUTED2(ViewMsg_UpdateScreenRects,
803 gfx::Rect /* view_screen_rect */,
804 gfx::Rect /* window_screen_rect */)
806 // Reply to ViewHostMsg_RequestMove, ViewHostMsg_ShowView, and
807 // ViewHostMsg_ShowWidget to inform the renderer that the browser has
808 // processed the move. The browser may have ignored the move, but it finished
809 // processing. This is used because the renderer keeps a temporary cache of
810 // the widget position while these asynchronous operations are in progress.
811 IPC_MESSAGE_ROUTED0(ViewMsg_Move_ACK)
813 // Used to instruct the RenderView to send back updates to the preferred size.
814 IPC_MESSAGE_ROUTED0(ViewMsg_EnablePreferredSizeChangedMode)
816 // Used to instruct the RenderView to automatically resize and send back
817 // updates for the new size.
818 IPC_MESSAGE_ROUTED2(ViewMsg_EnableAutoResize,
819 gfx::Size /* min_size */,
820 gfx::Size /* max_size */)
822 // Used to instruct the RenderView to disalbe automatically resize.
823 IPC_MESSAGE_ROUTED1(ViewMsg_DisableAutoResize,
824 gfx::Size /* new_size */)
826 // Changes the text direction of the currently selected input field (if any).
827 IPC_MESSAGE_ROUTED1(ViewMsg_SetTextDirection,
828 blink::WebTextDirection /* direction */)
830 // Tells the renderer to clear the focused element (if any).
831 IPC_MESSAGE_ROUTED0(ViewMsg_ClearFocusedElement)
833 // Make the RenderView background transparent or opaque.
834 IPC_MESSAGE_ROUTED1(ViewMsg_SetBackgroundOpaque, bool /* opaque */)
836 // Used to tell the renderer not to add scrollbars with height and
837 // width below a threshold.
838 IPC_MESSAGE_ROUTED1(ViewMsg_DisableScrollbarsForSmallWindows,
839 gfx::Size /* disable_scrollbar_size_limit */)
841 // Activate/deactivate the RenderView (i.e., set its controls' tint
842 // accordingly, etc.).
843 IPC_MESSAGE_ROUTED1(ViewMsg_SetActive,
844 bool /* active */)
846 // Response message to ViewHostMsg_CreateWorker.
847 // Sent when the worker has started.
848 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerCreated)
850 // Sent when the worker failed to load the worker script.
851 // In normal cases, this message is sent after ViewMsg_WorkerCreated is sent.
852 // But if the shared worker of the same URL already exists and it has failed
853 // to load the script, when the renderer send ViewHostMsg_CreateWorker before
854 // the shared worker is killed only ViewMsg_WorkerScriptLoadFailed is sent.
855 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerScriptLoadFailed)
857 // Sent when the worker has connected.
858 // This message is sent only if the worker successfully loaded the script.
859 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerConnected)
861 // Tells the renderer that the network type has changed so that navigator.onLine
862 // and navigator.connection can be updated.
863 IPC_MESSAGE_CONTROL1(ViewMsg_NetworkTypeChanged,
864 net::NetworkChangeNotifier::ConnectionType /* type */)
866 #if defined(ENABLE_PLUGINS)
867 // Reply to ViewHostMsg_OpenChannelToPpapiBroker
868 // Tells the renderer that the channel to the broker has been created.
869 IPC_MESSAGE_ROUTED2(ViewMsg_PpapiBrokerChannelCreated,
870 base::ProcessId /* broker_pid */,
871 IPC::ChannelHandle /* handle */)
873 // Reply to ViewHostMsg_RequestPpapiBrokerPermission.
874 // Tells the renderer whether permission to access to PPAPI broker was granted
875 // or not.
876 IPC_MESSAGE_ROUTED1(ViewMsg_PpapiBrokerPermissionResult,
877 bool /* result */)
879 // Tells the renderer to empty its plugin list cache, optional reloading
880 // pages containing plugins.
881 IPC_MESSAGE_CONTROL1(ViewMsg_PurgePluginListCache,
882 bool /* reload_pages */)
883 #endif
885 // Used to instruct the RenderView to go into "view source" mode.
886 IPC_MESSAGE_ROUTED0(ViewMsg_EnableViewSourceMode)
888 // Instructs the renderer to save the current page to MHTML.
889 IPC_MESSAGE_ROUTED2(ViewMsg_SavePageAsMHTML,
890 int /* job_id */,
891 IPC::PlatformFileForTransit /* file handle */)
893 // Temporary message to diagnose an unexpected condition in WebContentsImpl.
894 IPC_MESSAGE_CONTROL1(ViewMsg_TempCrashWithData,
895 GURL /* data */)
897 // An acknowledge to ViewHostMsg_MultipleTargetsTouched to notify the renderer
898 // process to release the magnified image.
899 IPC_MESSAGE_ROUTED1(ViewMsg_ReleaseDisambiguationPopupBitmap,
900 cc::SharedBitmapId /* id */)
902 // Fetches complete rendered content of a web page as plain text.
903 IPC_MESSAGE_ROUTED0(ViewMsg_GetRenderedText)
905 #if defined(OS_MACOSX)
906 IPC_ENUM_TRAITS_MAX_VALUE(blink::ScrollerStyle, blink::ScrollerStyleOverlay)
908 // Notification of a change in scrollbar appearance and/or behavior.
909 IPC_MESSAGE_CONTROL5(ViewMsg_UpdateScrollbarTheme,
910 float /* initial_button_delay */,
911 float /* autoscroll_button_delay */,
912 bool /* jump_on_track_click */,
913 blink::ScrollerStyle /* preferred_scroller_style */,
914 bool /* redraw */)
915 #endif
917 #if defined(OS_ANDROID)
918 // Tells the renderer to suspend/resume the webkit timers.
919 IPC_MESSAGE_CONTROL1(ViewMsg_SetWebKitSharedTimersSuspended,
920 bool /* suspend */)
922 // Sent when the browser wants the bounding boxes of the current find matches.
924 // If match rects are already cached on the browser side, |current_version|
925 // should be the version number from the ViewHostMsg_FindMatchRects_Reply
926 // they came in, so the renderer can tell if it needs to send updated rects.
927 // Otherwise just pass -1 to always receive the list of rects.
929 // There must be an active search string (it is probably most useful to call
930 // this immediately after a ViewHostMsg_Find_Reply message arrives with
931 // final_update set to true).
932 IPC_MESSAGE_ROUTED1(ViewMsg_FindMatchRects,
933 int /* current_version */)
935 // Notifies the renderer whether hiding/showing the top controls is enabled
936 // and whether or not to animate to the proper state.
937 IPC_MESSAGE_ROUTED3(ViewMsg_UpdateTopControlsState,
938 bool /* enable_hiding */,
939 bool /* enable_showing */,
940 bool /* animate */)
942 IPC_MESSAGE_ROUTED0(ViewMsg_ShowImeIfNeeded)
944 // Sent by the browser when an IME update that requires acknowledgement has been
945 // processed on the browser side.
946 IPC_MESSAGE_ROUTED0(ViewMsg_ImeEventAck)
948 // Extracts the data at the given rect, returning it through the
949 // ViewHostMsg_SmartClipDataExtracted IPC.
950 IPC_MESSAGE_ROUTED1(ViewMsg_ExtractSmartClipData,
951 gfx::Rect /* rect */)
953 #elif defined(OS_MACOSX)
954 // Let the RenderView know its window has changed visibility.
955 IPC_MESSAGE_ROUTED1(ViewMsg_SetWindowVisibility,
956 bool /* visibile */)
958 // Let the RenderView know its window's frame has changed.
959 IPC_MESSAGE_ROUTED2(ViewMsg_WindowFrameChanged,
960 gfx::Rect /* window frame */,
961 gfx::Rect /* content view frame */)
963 // Message sent from the browser to the renderer when the user starts or stops
964 // resizing the view.
965 IPC_MESSAGE_ROUTED1(ViewMsg_SetInLiveResize,
966 bool /* enable */)
968 // Tell the renderer that plugin IME has completed.
969 IPC_MESSAGE_ROUTED2(ViewMsg_PluginImeCompositionCompleted,
970 base::string16 /* text */,
971 int /* plugin_id */)
972 #endif
974 // Sent by the browser as a reply to ViewHostMsg_SwapCompositorFrame.
975 IPC_MESSAGE_ROUTED2(ViewMsg_SwapCompositorFrameAck,
976 uint32 /* output_surface_id */,
977 cc::CompositorFrameAck /* ack */)
979 // Sent by browser to tell renderer compositor that some resources that were
980 // given to the browser in a swap are not being used anymore.
981 IPC_MESSAGE_ROUTED2(ViewMsg_ReclaimCompositorResources,
982 uint32 /* output_surface_id */,
983 cc::CompositorFrameAck /* ack */)
985 // Sent by browser to give renderer compositor a new namespace ID for any
986 // SurfaceSequences it has to create.
987 IPC_MESSAGE_ROUTED1(ViewMsg_SetSurfaceIdNamespace,
988 uint32_t /* surface_id_namespace */)
990 IPC_MESSAGE_ROUTED0(ViewMsg_SelectWordAroundCaret)
992 // Sent by the browser to ask the renderer to redraw.
993 // If |request_id| is not zero, it is added to the forced frame's latency info
994 // as ui::WINDOW_SNAPSHOT_FRAME_NUMBER_COMPONENT.
995 IPC_MESSAGE_ROUTED1(ViewMsg_ForceRedraw,
996 int /* request_id */)
998 // Sent by the browser when the renderer should generate a new frame.
999 IPC_MESSAGE_ROUTED1(ViewMsg_BeginFrame,
1000 cc::BeginFrameArgs /* args */)
1002 // -----------------------------------------------------------------------------
1003 // Messages sent from the renderer to the browser.
1005 // Sent by renderer to request a ViewMsg_BeginFrame message for upcoming
1006 // display events. If |enabled| is true, the BeginFrame message will continue
1007 // to be be delivered until the notification is disabled.
1008 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrames,
1009 bool /* enabled */)
1011 // Sent by the renderer when it is creating a new window. The browser creates
1012 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is
1013 // MSG_ROUTING_NONE, the view couldn't be created.
1014 IPC_SYNC_MESSAGE_CONTROL1_4(ViewHostMsg_CreateWindow,
1015 ViewHostMsg_CreateWindow_Params,
1016 int /* route_id */,
1017 int /* main_frame_route_id */,
1018 int32 /* surface_id */,
1019 int64 /* cloned_session_storage_namespace_id */)
1021 // Similar to ViewHostMsg_CreateWindow, except used for sub-widgets, like
1022 // <select> dropdowns. This message is sent to the WebContentsImpl that
1023 // contains the widget being created.
1024 IPC_SYNC_MESSAGE_CONTROL2_2(ViewHostMsg_CreateWidget,
1025 int /* opener_id */,
1026 blink::WebPopupType /* popup type */,
1027 int /* route_id */,
1028 int32 /* surface_id */)
1030 // Similar to ViewHostMsg_CreateWidget except the widget is a full screen
1031 // window.
1032 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_CreateFullscreenWidget,
1033 int /* opener_id */,
1034 int /* route_id */,
1035 int32 /* surface_id */)
1037 // Asks the browser for a unique routing ID.
1038 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GenerateRoutingID,
1039 int /* routing_id */)
1041 // Asks the browser for the default audio hardware configuration.
1042 IPC_SYNC_MESSAGE_CONTROL0_2(ViewHostMsg_GetAudioHardwareConfig,
1043 media::AudioParameters /* input parameters */,
1044 media::AudioParameters /* output parameters */)
1046 // Asks the browser for the renderer process memory size stats.
1047 IPC_SYNC_MESSAGE_CONTROL0_2(ViewHostMsg_GetProcessMemorySizes,
1048 size_t /* private_bytes */,
1049 size_t /* shared_bytes */)
1051 // These three messages are sent to the parent RenderViewHost to display the
1052 // page/widget that was created by
1053 // CreateWindow/CreateWidget/CreateFullscreenWidget. routing_id
1054 // refers to the id that was returned from the Create message above.
1055 // The initial_rect parameter is in screen coordinates.
1057 // FUTURE: there will probably be flags here to control if the result is
1058 // in a new window.
1059 IPC_MESSAGE_ROUTED4(ViewHostMsg_ShowView,
1060 int /* route_id */,
1061 WindowOpenDisposition /* disposition */,
1062 gfx::Rect /* initial_rect */,
1063 bool /* opened_by_user_gesture */)
1065 IPC_MESSAGE_ROUTED2(ViewHostMsg_ShowWidget,
1066 int /* route_id */,
1067 gfx::Rect /* initial_rect */)
1069 // Message to show a full screen widget.
1070 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowFullscreenWidget,
1071 int /* route_id */)
1073 // Indicates the renderer is ready in response to a ViewMsg_New or
1074 // a ViewMsg_CreatingNew_ACK.
1075 IPC_MESSAGE_ROUTED0(ViewHostMsg_RenderViewReady)
1077 // Sent by the renderer process to request that the browser close the view.
1078 // This corresponds to the window.close() API, and the browser may ignore
1079 // this message. Otherwise, the browser will generates a ViewMsg_Close
1080 // message to close the view.
1081 IPC_MESSAGE_ROUTED0(ViewHostMsg_Close)
1083 // Send in response to a ViewMsg_UpdateScreenRects so that the renderer can
1084 // throttle these messages.
1085 IPC_MESSAGE_ROUTED0(ViewHostMsg_UpdateScreenRects_ACK)
1087 // Sent by the renderer process to request that the browser move the view.
1088 // This corresponds to the window.resizeTo() and window.moveTo() APIs, and
1089 // the browser may ignore this message.
1090 IPC_MESSAGE_ROUTED1(ViewHostMsg_RequestMove,
1091 gfx::Rect /* position */)
1093 // Result of string search in the page.
1094 // Response to ViewMsg_Find with the results of the requested find-in-page
1095 // search, the number of matches found and the selection rect (in screen
1096 // coordinates) for the string found. If |final_update| is false, it signals
1097 // that this is not the last Find_Reply message - more will be sent as the
1098 // scoping effort continues.
1099 IPC_MESSAGE_ROUTED5(ViewHostMsg_Find_Reply,
1100 int /* request_id */,
1101 int /* number of matches */,
1102 gfx::Rect /* selection_rect */,
1103 int /* active_match_ordinal */,
1104 bool /* final_update */)
1106 // Indicates that the render view has been closed in respose to a
1107 // Close message.
1108 IPC_MESSAGE_CONTROL1(ViewHostMsg_Close_ACK,
1109 int /* old_route_id */)
1111 // Indicates that the current page has been closed, after a ClosePage
1112 // message.
1113 IPC_MESSAGE_ROUTED0(ViewHostMsg_ClosePage_ACK)
1115 // Notifies the browser that we have session history information.
1116 // page_id: unique ID that allows us to distinguish between history entries.
1117 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateState,
1118 int32 /* page_id */,
1119 content::PageState /* state */)
1121 // Notifies the browser that we want to show a destination url for a potential
1122 // action (e.g. when the user is hovering over a link).
1123 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateTargetURL,
1124 GURL)
1126 // Sent when the document element is available for the top-level frame. This
1127 // happens after the page starts loading, but before all resources are
1128 // finished.
1129 IPC_MESSAGE_ROUTED1(ViewHostMsg_DocumentAvailableInMainFrame,
1130 bool /* uses_temporary_zoom_level */)
1132 // Sent when the renderer loads a resource from its memory cache.
1133 // The security info is non empty if the resource was originally loaded over
1134 // a secure connection.
1135 // Note: May only be sent once per URL per frame per committed load.
1136 IPC_MESSAGE_ROUTED5(ViewHostMsg_DidLoadResourceFromMemoryCache,
1137 GURL /* url */,
1138 std::string /* security info */,
1139 std::string /* http method */,
1140 std::string /* mime type */,
1141 content::ResourceType /* resource type */)
1143 // Sent when the renderer displays insecure content in a secure page.
1144 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidDisplayInsecureContent)
1146 // Sent when the renderer runs insecure content in a secure origin.
1147 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidRunInsecureContent,
1148 std::string /* security_origin */,
1149 GURL /* target URL */)
1151 // Sent to update part of the view. In response to this message, the host
1152 // generates a ViewMsg_UpdateRect_ACK message.
1153 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateRect,
1154 ViewHostMsg_UpdateRect_Params)
1156 IPC_MESSAGE_ROUTED0(ViewHostMsg_Focus)
1157 IPC_MESSAGE_ROUTED0(ViewHostMsg_Blur)
1159 // Message sent from renderer to the browser when focus changes inside the
1160 // webpage. The first parameter says whether the newly focused element needs
1161 // keyboard input (true for textfields, text areas and content editable divs).
1162 // The second parameter is the node bounds relative to RenderWidgetHostView.
1163 IPC_MESSAGE_ROUTED2(ViewHostMsg_FocusedNodeChanged,
1164 bool /* is_editable_node */,
1165 gfx::Rect /* node_bounds */)
1167 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetCursor, content::WebCursor)
1169 // Used to get the list of plugins
1170 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetPlugins,
1171 bool /* refresh*/,
1172 std::vector<content::WebPluginInfo> /* plugins */)
1174 #if defined(OS_WIN)
1175 IPC_MESSAGE_ROUTED1(ViewHostMsg_WindowlessPluginDummyWindowCreated,
1176 gfx::NativeViewId /* dummy_activation_window */)
1178 IPC_MESSAGE_ROUTED1(ViewHostMsg_WindowlessPluginDummyWindowDestroyed,
1179 gfx::NativeViewId /* dummy_activation_window */)
1181 // Asks the browser for the user's monitor profile.
1182 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetMonitorColorProfile,
1183 std::vector<char> /* profile */)
1184 #endif
1186 // Get the list of proxies to use for |url|, as a semicolon delimited list
1187 // of "<TYPE> <HOST>:<PORT>" | "DIRECT".
1188 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_ResolveProxy,
1189 GURL /* url */,
1190 bool /* result */,
1191 std::string /* proxy list */)
1193 // A renderer sends this to the browser process when it wants to create a
1194 // worker. The browser will create the worker process if necessary, and
1195 // will return the route id on success. On error returns MSG_ROUTING_NONE.
1196 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_CreateWorker,
1197 ViewHostMsg_CreateWorker_Params,
1198 int /* route_id */)
1200 // A renderer sends this to the browser process when a document has been
1201 // detached. The browser will use this to constrain the lifecycle of worker
1202 // processes (SharedWorkers are shut down when their last associated document
1203 // is detached).
1204 IPC_MESSAGE_CONTROL1(ViewHostMsg_DocumentDetached,
1205 uint64 /* document_id */)
1207 // Wraps an IPC message that's destined to the worker on the renderer->browser
1208 // hop.
1209 IPC_MESSAGE_CONTROL1(ViewHostMsg_ForwardToWorker,
1210 IPC::Message /* message */)
1212 // Tells the browser that a specific Appcache manifest in the current page
1213 // was accessed.
1214 IPC_MESSAGE_ROUTED2(ViewHostMsg_AppCacheAccessed,
1215 GURL /* manifest url */,
1216 bool /* blocked by policy */)
1218 // Initiates a download based on user actions like 'ALT+click'.
1219 IPC_MESSAGE_CONTROL4(ViewHostMsg_DownloadUrl,
1220 int /* render_view_id */,
1221 GURL /* url */,
1222 content::Referrer /* referrer */,
1223 base::string16 /* suggested_name */)
1225 // Used to go to the session history entry at the given offset (ie, -1 will
1226 // return the "back" item).
1227 IPC_MESSAGE_ROUTED1(ViewHostMsg_GoToEntryAtOffset,
1228 int /* offset (from current) of history item to get */)
1230 // Sent from an inactive renderer for the browser to route to the active
1231 // renderer, instructing it to close.
1232 IPC_MESSAGE_ROUTED0(ViewHostMsg_RouteCloseEvent)
1234 // Notifies that the preferred size of the content changed.
1235 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidContentsPreferredSizeChange,
1236 gfx::Size /* pref_size */)
1238 // Notifies whether there are JavaScript touch event handlers or not.
1239 IPC_MESSAGE_ROUTED1(ViewHostMsg_HasTouchEventHandlers,
1240 bool /* has_handlers */)
1242 // A message from HTML-based UI. When (trusted) Javascript calls
1243 // send(message, args), this message is sent to the browser.
1244 IPC_MESSAGE_ROUTED3(ViewHostMsg_WebUISend,
1245 GURL /* source_url */,
1246 std::string /* message */,
1247 base::ListValue /* args */)
1249 #if defined(ENABLE_PLUGINS)
1250 // A renderer sends this to the browser process when it wants to create a ppapi
1251 // plugin. The browser will create the plugin process if necessary, and will
1252 // return a handle to the channel on success.
1254 // The plugin_child_id is the ChildProcessHost ID assigned in the browser
1255 // process. This ID is valid only in the context of the browser process and is
1256 // used to identify the proper process when the renderer notifies it that the
1257 // plugin is hung.
1259 // On error an empty string and null handles are returned.
1260 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_OpenChannelToPepperPlugin,
1261 base::FilePath /* path */,
1262 IPC::ChannelHandle /* handle to channel */,
1263 base::ProcessId /* plugin_pid */,
1264 int /* plugin_child_id */)
1266 // Notification that a plugin has created a new plugin instance. The parameters
1267 // indicate:
1268 // -The plugin process ID that we're creating the instance for.
1269 // -The instance ID of the instance being created.
1270 // -A PepperRendererInstanceData struct which contains properties from the
1271 // renderer which are associated with the plugin instance. This includes the
1272 // routing ID of the associated render view and the URL of plugin.
1273 // -Whether the plugin we're creating an instance for is external or internal.
1275 // This message must be sync even though it returns no parameters to avoid
1276 // a race condition with the plugin process. The plugin process sends messages
1277 // to the browser that assume the browser knows about the instance. We need to
1278 // make sure that the browser actually knows about the instance before we tell
1279 // the plugin to run.
1280 IPC_SYNC_MESSAGE_CONTROL4_0(
1281 ViewHostMsg_DidCreateOutOfProcessPepperInstance,
1282 int /* plugin_child_id */,
1283 int32 /* pp_instance */,
1284 content::PepperRendererInstanceData /* creation_data */,
1285 bool /* is_external */)
1287 // Notification that a plugin has destroyed an instance. This is the opposite of
1288 // the "DidCreate" message above.
1289 IPC_MESSAGE_CONTROL3(ViewHostMsg_DidDeleteOutOfProcessPepperInstance,
1290 int /* plugin_child_id */,
1291 int32 /* pp_instance */,
1292 bool /* is_external */)
1294 // Message from the renderer to the browser indicating the in-process instance
1295 // has been created.
1296 IPC_MESSAGE_CONTROL2(ViewHostMsg_DidCreateInProcessInstance,
1297 int32 /* instance */,
1298 content::PepperRendererInstanceData /* instance_data */)
1300 // Message from the renderer to the browser indicating the in-process instance
1301 // has been destroyed.
1302 IPC_MESSAGE_CONTROL1(ViewHostMsg_DidDeleteInProcessInstance,
1303 int32 /* instance */)
1305 // A renderer sends this to the browser process when it wants to
1306 // create a ppapi broker. The browser will create the broker process
1307 // if necessary, and will return a handle to the channel on success.
1308 // On error an empty string is returned.
1309 // The browser will respond with ViewMsg_PpapiBrokerChannelCreated.
1310 IPC_MESSAGE_CONTROL2(ViewHostMsg_OpenChannelToPpapiBroker,
1311 int /* routing_id */,
1312 base::FilePath /* path */)
1314 // A renderer sends this to the browser process when it wants to access a PPAPI
1315 // broker. In contrast to ViewHostMsg_OpenChannelToPpapiBroker, this is called
1316 // for every connection.
1317 // The browser will respond with ViewMsg_PpapiBrokerPermissionResult.
1318 IPC_MESSAGE_ROUTED3(ViewHostMsg_RequestPpapiBrokerPermission,
1319 int /* routing_id */,
1320 GURL /* document_url */,
1321 base::FilePath /* plugin_path */)
1323 // A renderer sends this to the browser process when it throttles or unthrottles
1324 // a plugin instance for the Plugin Power Saver feature.
1325 IPC_MESSAGE_CONTROL3(ViewHostMsg_PluginInstanceThrottleStateChange,
1326 int /* plugin_child_id */,
1327 int32 /* pp_instance */,
1328 bool /* is_throttled */)
1329 #endif // defined(ENABLE_PLUGINS)
1331 // Send the tooltip text for the current mouse position to the browser.
1332 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetTooltipText,
1333 base::string16 /* tooltip text string */,
1334 blink::WebTextDirection /* text direction hint */)
1336 // Notification that the text selection has changed.
1337 // Note: The secound parameter is the character based offset of the
1338 // base::string16
1339 // text in the document.
1340 IPC_MESSAGE_ROUTED3(ViewHostMsg_SelectionChanged,
1341 base::string16 /* text covers the selection range */,
1342 size_t /* the offset of the text in the document */,
1343 gfx::Range /* selection range in the document */)
1345 // Notification that the selection bounds have changed.
1346 IPC_MESSAGE_ROUTED1(ViewHostMsg_SelectionBoundsChanged,
1347 ViewHostMsg_SelectionBounds_Params)
1349 // Asks the browser to display the file chooser. The result is returned in a
1350 // ViewMsg_RunFileChooserResponse message.
1351 IPC_MESSAGE_ROUTED1(ViewHostMsg_RunFileChooser,
1352 content::FileChooserParams)
1354 // Asks the browser to enumerate a directory. This is equivalent to running
1355 // the file chooser in directory-enumeration mode and having the user select
1356 // the given directory. The result is returned in a
1357 // ViewMsg_EnumerateDirectoryResponse message.
1358 IPC_MESSAGE_ROUTED2(ViewHostMsg_EnumerateDirectory,
1359 int /* request_id */,
1360 base::FilePath /* file_path */)
1362 // Asks the browser to save a image (for <canvas> or <img>) from a data URL.
1363 // Note: |data_url| is the contents of a data:URL, and that it's represented as
1364 // a string only to work around size limitations for GURLs in IPC messages.
1365 IPC_MESSAGE_CONTROL2(ViewHostMsg_SaveImageFromDataURL,
1366 int /* render_view_id */,
1367 std::string /* data_url */)
1369 // Tells the browser to move the focus to the next (previous if reverse is
1370 // true) focusable element.
1371 IPC_MESSAGE_ROUTED1(ViewHostMsg_TakeFocus,
1372 bool /* reverse */)
1374 // Required for opening a date/time dialog
1375 IPC_MESSAGE_ROUTED1(ViewHostMsg_OpenDateTimeDialog,
1376 ViewHostMsg_DateTimeDialogValue_Params /* value */)
1378 IPC_MESSAGE_ROUTED4(ViewHostMsg_TextInputTypeChanged,
1379 ui::TextInputType /* TextInputType of the focused node */,
1380 ui::TextInputMode /* TextInputMode of the focused node */,
1381 bool /* can_compose_inline in the focused node */,
1382 int /* flags in the focused node */)
1384 // Required for updating text input state.
1385 IPC_MESSAGE_ROUTED1(ViewHostMsg_TextInputStateChanged,
1386 ViewHostMsg_TextInputState_Params /* input state params */)
1388 // Sent when the renderer changes the zoom level for a particular url, so the
1389 // browser can update its records. If the view is a plugin doc, then url is
1390 // used to update the zoom level for all pages in that site. Otherwise, the
1391 // render view's id is used so that only the menu is updated.
1392 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidZoomURL,
1393 double /* zoom_level */,
1394 GURL /* url */)
1396 // Sent when the renderer changes its page scale factor and whether or not the
1397 // page scale factor is one changes.
1398 IPC_MESSAGE_ROUTED1(ViewHostMsg_PageScaleFactorIsOneChanged, bool /* is_one */)
1400 // Updates the minimum/maximum allowed zoom percent for this tab from the
1401 // default values. If |remember| is true, then the zoom setting is applied to
1402 // other pages in the site and is saved, otherwise it only applies to this
1403 // tab.
1404 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateZoomLimits,
1405 int /* minimum_percent */,
1406 int /* maximum_percent */)
1408 // Notify the browser that this render process can or can't be suddenly
1409 // terminated.
1410 IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged,
1411 bool /* enabled */)
1413 IPC_MESSAGE_ROUTED3(
1414 ViewHostMsg_SwapCompositorFrame,
1415 uint32 /* output_surface_id */,
1416 cc::CompositorFrame /* frame */,
1417 std::vector<IPC::Message> /* messages_to_deliver_with_frame */)
1419 //---------------------------------------------------------------------------
1420 // Request for cryptographic operation messages:
1421 // These are messages from the renderer to the browser to perform a
1422 // cryptographic operation.
1424 // Asks the browser process to generate a keypair for grabbing a client
1425 // certificate from a CA (<keygen> tag), and returns the signed public
1426 // key and challenge string.
1427 IPC_SYNC_MESSAGE_CONTROL3_1(ViewHostMsg_Keygen,
1428 uint32 /* key size index */,
1429 std::string /* challenge string */,
1430 GURL /* URL of requestor */,
1431 std::string /* signed public key and challenge */)
1433 // Message sent from the renderer to the browser to request that the browser
1434 // cache |data| associated with |url| and |expected_response_time|.
1435 IPC_MESSAGE_CONTROL3(ViewHostMsg_DidGenerateCacheableMetadata,
1436 GURL /* url */,
1437 base::Time /* expected_response_time */,
1438 std::vector<char> /* data */)
1440 // Register a new handler for URL requests with the given scheme.
1441 IPC_MESSAGE_ROUTED4(ViewHostMsg_RegisterProtocolHandler,
1442 std::string /* scheme */,
1443 GURL /* url */,
1444 base::string16 /* title */,
1445 bool /* user_gesture */)
1447 // Unregister the registered handler for URL requests with the given scheme.
1448 IPC_MESSAGE_ROUTED3(ViewHostMsg_UnregisterProtocolHandler,
1449 std::string /* scheme */,
1450 GURL /* url */,
1451 bool /* user_gesture */)
1453 // Send back a string to be recorded by UserMetrics.
1454 IPC_MESSAGE_CONTROL1(ViewHostMsg_UserMetricsRecordAction,
1455 std::string /* action */)
1457 // Notifies the browser that the page was or was not saved as MHTML.
1458 IPC_MESSAGE_CONTROL2(ViewHostMsg_SavedPageAsMHTML,
1459 int /* job_id */,
1460 int64 /* size of the MHTML file, -1 if error */)
1462 IPC_MESSAGE_ROUTED3(ViewHostMsg_SendCurrentPageAllSavableResourceLinks,
1463 std::vector<GURL> /* all savable resource links */,
1464 std::vector<content::Referrer> /* all referrers */,
1465 std::vector<GURL> /* all frame links */)
1467 IPC_MESSAGE_ROUTED3(ViewHostMsg_SendSerializedHtmlData,
1468 GURL /* frame's url */,
1469 std::string /* data buffer */,
1470 int32 /* complete status */)
1472 // Notifies the browser of an event occurring in the media pipeline.
1473 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvents,
1474 std::vector<media::MediaLogEvent> /* events */)
1476 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message
1477 // being sent back.
1478 // |privileged| is used by Pepper Flash. If this flag is set to true, we won't
1479 // pop up a bubble to ask for user permission or take mouse lock content into
1480 // account.
1481 IPC_MESSAGE_ROUTED3(ViewHostMsg_LockMouse,
1482 bool /* user_gesture */,
1483 bool /* last_unlocked_by_target */,
1484 bool /* privileged */)
1486 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent
1487 // whenever the mouse is unlocked (which may or may not be caused by
1488 // ViewHostMsg_UnlockMouse).
1489 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse)
1491 // Notifies that multiple touch targets may have been pressed, and to show
1492 // the disambiguation popup.
1493 IPC_MESSAGE_ROUTED3(ViewHostMsg_ShowDisambiguationPopup,
1494 gfx::Rect, /* Border of touched targets */
1495 gfx::Size, /* Size of zoomed image */
1496 cc::SharedBitmapId /* id */)
1498 // Sent by the renderer process to check whether client 3D APIs
1499 // (Pepper 3D, WebGL) are explicitly blocked.
1500 IPC_SYNC_MESSAGE_CONTROL3_1(ViewHostMsg_Are3DAPIsBlocked,
1501 int /* render_view_id */,
1502 GURL /* top_origin_url */,
1503 content::ThreeDAPIType /* requester */,
1504 bool /* blocked */)
1506 // Sent by the renderer process to indicate that a context was lost by
1507 // client 3D content (Pepper 3D, WebGL) running on the page at the
1508 // given URL.
1509 IPC_MESSAGE_CONTROL3(ViewHostMsg_DidLose3DContext,
1510 GURL /* top_origin_url */,
1511 content::ThreeDAPIType /* context_type */,
1512 int /* arb_robustness_status_code */)
1514 // Notifies the browser that document has parsed the body. This is used by the
1515 // ResourceScheduler as an indication that bandwidth contention won't block
1516 // first paint.
1517 IPC_MESSAGE_ROUTED0(ViewHostMsg_WillInsertBody)
1519 // Notification that the urls for the favicon of a site has been determined.
1520 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateFaviconURL,
1521 std::vector<content::FaviconURL> /* candidates */)
1523 // Message sent from renderer to the browser when the element that is focused
1524 // has been touched. A bool is passed in this message which indicates if the
1525 // node is editable.
1526 IPC_MESSAGE_ROUTED1(ViewHostMsg_FocusedNodeTouched,
1527 bool /* editable */)
1529 // Message sent from the renderer to the browser when an HTML form has failed
1530 // validation constraints.
1531 IPC_MESSAGE_ROUTED3(ViewHostMsg_ShowValidationMessage,
1532 gfx::Rect /* anchor rectangle in root view coordinate */,
1533 base::string16 /* validation message */,
1534 base::string16 /* supplemental text */)
1536 // Message sent from the renderer to the browser when a HTML form validation
1537 // message should be hidden from view.
1538 IPC_MESSAGE_ROUTED0(ViewHostMsg_HideValidationMessage)
1540 // Message sent from the renderer to the browser when the suggested co-ordinates
1541 // of the anchor for a HTML form validation message have changed.
1542 IPC_MESSAGE_ROUTED1(ViewHostMsg_MoveValidationMessage,
1543 gfx::Rect /* anchor rectangle in root view coordinate */)
1545 #if defined(OS_ANDROID)
1546 // Response to ViewMsg_FindMatchRects.
1548 // |version| will contain the current version number of the renderer's find
1549 // match list (incremented whenever they change), which should be passed in the
1550 // next call to ViewMsg_FindMatchRects.
1552 // |rects| will either contain a list of the enclosing rects of all matches
1553 // found by the most recent Find operation, or will be empty if |version| is not
1554 // greater than the |current_version| passed to ViewMsg_FindMatchRects (hence
1555 // your locally cached rects should still be valid). The rect coords will be
1556 // custom normalized fractions of the document size. The rects will be sorted by
1557 // frame traversal order starting in the main frame, then by dom order.
1559 // |active_rect| will contain the bounding box of the active find-in-page match
1560 // marker, in similarly normalized coords (or an empty rect if there isn't one).
1561 IPC_MESSAGE_ROUTED3(ViewHostMsg_FindMatchRects_Reply,
1562 int /* version */,
1563 std::vector<gfx::RectF> /* rects */,
1564 gfx::RectF /* active_rect */)
1566 // Start an android intent with the given URI.
1567 IPC_MESSAGE_ROUTED1(ViewHostMsg_StartContentIntent,
1568 GURL /* content_url */)
1570 // Message sent when the renderer changed the background color for the view.
1571 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidChangeBodyBackgroundColor,
1572 uint32 /* bg_color */)
1574 // This message runs the MediaCodec for decoding audio for webaudio.
1575 IPC_MESSAGE_CONTROL3(ViewHostMsg_RunWebAudioMediaCodec,
1576 base::SharedMemoryHandle /* encoded_data_handle */,
1577 base::FileDescriptor /* pcm_output */,
1578 uint32_t /* data_size*/)
1580 // Reply to the ViewMsg_ExtractSmartClipData message.
1581 IPC_MESSAGE_ROUTED3(ViewHostMsg_SmartClipDataExtracted,
1582 base::string16 /* text */,
1583 base::string16 /* html */,
1584 gfx::Rect /* rect */)
1586 // Notifies that an unhandled tap has occurred at the specified x,y position
1587 // and that the UI may need to be triggered.
1588 IPC_MESSAGE_ROUTED2(ViewHostMsg_ShowUnhandledTapUIIfNeeded,
1589 int /* x */,
1590 int /* y */)
1592 #elif defined(OS_MACOSX)
1593 // Request that the browser load a font into shared memory for us.
1594 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LoadFont,
1595 FontDescriptor /* font to load */,
1596 uint32 /* buffer size */,
1597 base::SharedMemoryHandle /* font data */,
1598 uint32 /* font id */)
1600 // Informs the browser that a plugin has gained or lost focus.
1601 IPC_MESSAGE_ROUTED2(ViewHostMsg_PluginFocusChanged,
1602 bool, /* focused */
1603 int /* plugin_id */)
1605 // Instructs the browser to start plugin IME.
1606 IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme)
1608 // Receives content of a web page as plain text.
1609 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string);
1611 #elif defined(OS_WIN)
1612 // Request that the given font characters be loaded by the browser so it's
1613 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters
1614 // for details.
1615 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters,
1616 LOGFONT /* font_data */,
1617 base::string16 /* characters */)
1618 #endif
1620 // Adding a new message? Stick to the sort order above: first platform
1621 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
1622 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.