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