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"
68 #if defined(ENABLE_PLUGINS)
69 #include "content/common/pepper_renderer_instance_data.h"
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(WindowContainerType
)
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(gfx::FontRenderParams::Hinting
)
99 IPC_ENUM_TRAITS(gfx::FontRenderParams::SubpixelRendering
)
100 IPC_ENUM_TRAITS_MAX_VALUE(content::TapMultipleTargetsStrategy
,
101 content::TAP_MULTIPLE_TARGETS_STRATEGY_MAX
)
102 IPC_ENUM_TRAITS_MAX_VALUE(content::StopFindAction
,
103 content::STOP_FIND_ACTION_LAST
)
104 IPC_ENUM_TRAITS_MAX_VALUE(content::ThreeDAPIType
,
105 content::THREE_D_API_TYPE_LAST
)
106 IPC_ENUM_TRAITS_MAX_VALUE(media::ChannelLayout
, media::CHANNEL_LAYOUT_MAX
- 1)
107 IPC_ENUM_TRAITS_MAX_VALUE(media::MediaLogEvent::Type
,
108 media::MediaLogEvent::TYPE_LAST
)
109 IPC_ENUM_TRAITS_MAX_VALUE(ui::TextInputMode
, ui::TEXT_INPUT_MODE_MAX
)
110 IPC_ENUM_TRAITS(ui::TextInputType
)
112 #if defined(OS_MACOSX)
113 IPC_STRUCT_TRAITS_BEGIN(FontDescriptor
)
114 IPC_STRUCT_TRAITS_MEMBER(font_name
)
115 IPC_STRUCT_TRAITS_MEMBER(font_point_size
)
116 IPC_STRUCT_TRAITS_END()
119 IPC_STRUCT_TRAITS_BEGIN(blink::WebFindOptions
)
120 IPC_STRUCT_TRAITS_MEMBER(forward
)
121 IPC_STRUCT_TRAITS_MEMBER(matchCase
)
122 IPC_STRUCT_TRAITS_MEMBER(findNext
)
123 IPC_STRUCT_TRAITS_END()
125 IPC_STRUCT_TRAITS_BEGIN(blink::WebMediaPlayerAction
)
126 IPC_STRUCT_TRAITS_MEMBER(type
)
127 IPC_STRUCT_TRAITS_MEMBER(enable
)
128 IPC_STRUCT_TRAITS_END()
130 IPC_STRUCT_TRAITS_BEGIN(blink::WebPluginAction
)
131 IPC_STRUCT_TRAITS_MEMBER(type
)
132 IPC_STRUCT_TRAITS_MEMBER(enable
)
133 IPC_STRUCT_TRAITS_END()
135 IPC_STRUCT_TRAITS_BEGIN(blink::WebFloatPoint
)
136 IPC_STRUCT_TRAITS_MEMBER(x
)
137 IPC_STRUCT_TRAITS_MEMBER(y
)
138 IPC_STRUCT_TRAITS_END()
140 IPC_STRUCT_TRAITS_BEGIN(blink::WebFloatRect
)
141 IPC_STRUCT_TRAITS_MEMBER(x
)
142 IPC_STRUCT_TRAITS_MEMBER(y
)
143 IPC_STRUCT_TRAITS_MEMBER(width
)
144 IPC_STRUCT_TRAITS_MEMBER(height
)
145 IPC_STRUCT_TRAITS_END()
147 IPC_STRUCT_TRAITS_BEGIN(blink::WebSize
)
148 IPC_STRUCT_TRAITS_MEMBER(width
)
149 IPC_STRUCT_TRAITS_MEMBER(height
)
150 IPC_STRUCT_TRAITS_END()
152 IPC_STRUCT_TRAITS_BEGIN(blink::WebDeviceEmulationParams
)
153 IPC_STRUCT_TRAITS_MEMBER(screenPosition
)
154 IPC_STRUCT_TRAITS_MEMBER(deviceScaleFactor
)
155 IPC_STRUCT_TRAITS_MEMBER(viewSize
)
156 IPC_STRUCT_TRAITS_MEMBER(fitToView
)
157 IPC_STRUCT_TRAITS_MEMBER(offset
)
158 IPC_STRUCT_TRAITS_MEMBER(scale
)
159 IPC_STRUCT_TRAITS_END()
161 IPC_STRUCT_TRAITS_BEGIN(blink::WebScreenInfo
)
162 IPC_STRUCT_TRAITS_MEMBER(deviceScaleFactor
)
163 IPC_STRUCT_TRAITS_MEMBER(depth
)
164 IPC_STRUCT_TRAITS_MEMBER(depthPerComponent
)
165 IPC_STRUCT_TRAITS_MEMBER(isMonochrome
)
166 IPC_STRUCT_TRAITS_MEMBER(rect
)
167 IPC_STRUCT_TRAITS_MEMBER(availableRect
)
168 IPC_STRUCT_TRAITS_MEMBER(orientationType
)
169 IPC_STRUCT_TRAITS_MEMBER(orientationAngle
)
170 IPC_STRUCT_TRAITS_END()
172 IPC_STRUCT_TRAITS_BEGIN(content::MenuItem
)
173 IPC_STRUCT_TRAITS_MEMBER(label
)
174 IPC_STRUCT_TRAITS_MEMBER(tool_tip
)
175 IPC_STRUCT_TRAITS_MEMBER(type
)
176 IPC_STRUCT_TRAITS_MEMBER(action
)
177 IPC_STRUCT_TRAITS_MEMBER(rtl
)
178 IPC_STRUCT_TRAITS_MEMBER(has_directional_override
)
179 IPC_STRUCT_TRAITS_MEMBER(enabled
)
180 IPC_STRUCT_TRAITS_MEMBER(checked
)
181 IPC_STRUCT_TRAITS_MEMBER(submenu
)
182 IPC_STRUCT_TRAITS_END()
184 IPC_STRUCT_TRAITS_BEGIN(content::DateTimeSuggestion
)
185 IPC_STRUCT_TRAITS_MEMBER(value
)
186 IPC_STRUCT_TRAITS_MEMBER(localized_value
)
187 IPC_STRUCT_TRAITS_MEMBER(label
)
188 IPC_STRUCT_TRAITS_END()
190 IPC_STRUCT_TRAITS_BEGIN(content::FaviconURL
)
191 IPC_STRUCT_TRAITS_MEMBER(icon_url
)
192 IPC_STRUCT_TRAITS_MEMBER(icon_type
)
193 IPC_STRUCT_TRAITS_MEMBER(icon_sizes
)
194 IPC_STRUCT_TRAITS_END()
196 IPC_STRUCT_TRAITS_BEGIN(content::FileChooserFileInfo
)
197 IPC_STRUCT_TRAITS_MEMBER(file_path
)
198 IPC_STRUCT_TRAITS_MEMBER(display_name
)
199 IPC_STRUCT_TRAITS_MEMBER(file_system_url
)
200 IPC_STRUCT_TRAITS_MEMBER(modification_time
)
201 IPC_STRUCT_TRAITS_MEMBER(length
)
202 IPC_STRUCT_TRAITS_MEMBER(is_directory
)
203 IPC_STRUCT_TRAITS_END()
205 IPC_STRUCT_TRAITS_BEGIN(content::FileChooserParams
)
206 IPC_STRUCT_TRAITS_MEMBER(mode
)
207 IPC_STRUCT_TRAITS_MEMBER(title
)
208 IPC_STRUCT_TRAITS_MEMBER(default_file_name
)
209 IPC_STRUCT_TRAITS_MEMBER(accept_types
)
210 IPC_STRUCT_TRAITS_MEMBER(need_local_path
)
211 #if defined(OS_ANDROID)
212 IPC_STRUCT_TRAITS_MEMBER(capture
)
214 IPC_STRUCT_TRAITS_END()
216 #if defined(ENABLE_PLUGINS)
217 IPC_STRUCT_TRAITS_BEGIN(content::PepperRendererInstanceData
)
218 IPC_STRUCT_TRAITS_MEMBER(render_process_id
)
219 IPC_STRUCT_TRAITS_MEMBER(render_frame_id
)
220 IPC_STRUCT_TRAITS_MEMBER(document_url
)
221 IPC_STRUCT_TRAITS_MEMBER(plugin_url
)
222 IPC_STRUCT_TRAITS_END()
225 IPC_STRUCT_TRAITS_BEGIN(content::RendererPreferences
)
226 IPC_STRUCT_TRAITS_MEMBER(can_accept_load_drops
)
227 IPC_STRUCT_TRAITS_MEMBER(should_antialias_text
)
228 IPC_STRUCT_TRAITS_MEMBER(hinting
)
229 IPC_STRUCT_TRAITS_MEMBER(use_autohinter
)
230 IPC_STRUCT_TRAITS_MEMBER(use_bitmaps
)
231 IPC_STRUCT_TRAITS_MEMBER(subpixel_rendering
)
232 IPC_STRUCT_TRAITS_MEMBER(use_subpixel_positioning
)
233 IPC_STRUCT_TRAITS_MEMBER(focus_ring_color
)
234 IPC_STRUCT_TRAITS_MEMBER(thumb_active_color
)
235 IPC_STRUCT_TRAITS_MEMBER(thumb_inactive_color
)
236 IPC_STRUCT_TRAITS_MEMBER(track_color
)
237 IPC_STRUCT_TRAITS_MEMBER(active_selection_bg_color
)
238 IPC_STRUCT_TRAITS_MEMBER(active_selection_fg_color
)
239 IPC_STRUCT_TRAITS_MEMBER(inactive_selection_bg_color
)
240 IPC_STRUCT_TRAITS_MEMBER(inactive_selection_fg_color
)
241 IPC_STRUCT_TRAITS_MEMBER(browser_handles_non_local_top_level_requests
)
242 IPC_STRUCT_TRAITS_MEMBER(browser_handles_all_top_level_requests
)
243 IPC_STRUCT_TRAITS_MEMBER(caret_blink_interval
)
244 IPC_STRUCT_TRAITS_MEMBER(use_custom_colors
)
245 IPC_STRUCT_TRAITS_MEMBER(enable_referrers
)
246 IPC_STRUCT_TRAITS_MEMBER(enable_do_not_track
)
247 IPC_STRUCT_TRAITS_MEMBER(enable_webrtc_multiple_routes
)
248 IPC_STRUCT_TRAITS_MEMBER(default_zoom_level
)
249 IPC_STRUCT_TRAITS_MEMBER(user_agent_override
)
250 IPC_STRUCT_TRAITS_MEMBER(accept_languages
)
251 IPC_STRUCT_TRAITS_MEMBER(report_frame_name_changes
)
252 IPC_STRUCT_TRAITS_MEMBER(tap_multiple_targets_strategy
)
253 IPC_STRUCT_TRAITS_MEMBER(disable_client_blocked_error_page
)
254 IPC_STRUCT_TRAITS_MEMBER(plugin_fullscreen_allowed
)
255 IPC_STRUCT_TRAITS_MEMBER(use_video_overlay_for_embedded_encrypted_video
)
256 IPC_STRUCT_TRAITS_MEMBER(use_view_overlay_for_all_video
)
257 IPC_STRUCT_TRAITS_MEMBER(network_contry_iso
)
259 IPC_STRUCT_TRAITS_MEMBER(caption_font_family_name
)
260 IPC_STRUCT_TRAITS_MEMBER(caption_font_height
)
261 IPC_STRUCT_TRAITS_MEMBER(small_caption_font_family_name
)
262 IPC_STRUCT_TRAITS_MEMBER(small_caption_font_height
)
263 IPC_STRUCT_TRAITS_MEMBER(menu_font_family_name
)
264 IPC_STRUCT_TRAITS_MEMBER(menu_font_height
)
265 IPC_STRUCT_TRAITS_MEMBER(status_font_family_name
)
266 IPC_STRUCT_TRAITS_MEMBER(status_font_height
)
267 IPC_STRUCT_TRAITS_MEMBER(message_font_family_name
)
268 IPC_STRUCT_TRAITS_MEMBER(message_font_height
)
269 IPC_STRUCT_TRAITS_MEMBER(vertical_scroll_bar_width_in_dips
)
270 IPC_STRUCT_TRAITS_MEMBER(horizontal_scroll_bar_height_in_dips
)
271 IPC_STRUCT_TRAITS_MEMBER(arrow_bitmap_height_vertical_scroll_bar_in_dips
)
272 IPC_STRUCT_TRAITS_MEMBER(arrow_bitmap_width_horizontal_scroll_bar_in_dips
)
274 IPC_STRUCT_TRAITS_END()
276 IPC_STRUCT_TRAITS_BEGIN(content::WebPluginGeometry
)
277 IPC_STRUCT_TRAITS_MEMBER(window
)
278 IPC_STRUCT_TRAITS_MEMBER(window_rect
)
279 IPC_STRUCT_TRAITS_MEMBER(clip_rect
)
280 IPC_STRUCT_TRAITS_MEMBER(cutout_rects
)
281 IPC_STRUCT_TRAITS_MEMBER(rects_valid
)
282 IPC_STRUCT_TRAITS_MEMBER(visible
)
283 IPC_STRUCT_TRAITS_END()
285 IPC_STRUCT_TRAITS_BEGIN(media::MediaLogEvent
)
286 IPC_STRUCT_TRAITS_MEMBER(id
)
287 IPC_STRUCT_TRAITS_MEMBER(type
)
288 IPC_STRUCT_TRAITS_MEMBER(params
)
289 IPC_STRUCT_TRAITS_MEMBER(time
)
290 IPC_STRUCT_TRAITS_END()
292 IPC_STRUCT_BEGIN(ViewHostMsg_CreateWindow_Params
)
293 // Routing ID of the view initiating the open.
294 IPC_STRUCT_MEMBER(int, opener_id
)
296 // True if this open request came in the context of a user gesture.
297 IPC_STRUCT_MEMBER(bool, user_gesture
)
299 // Type of window requested.
300 IPC_STRUCT_MEMBER(WindowContainerType
, window_container_type
)
302 // The session storage namespace ID this view should use.
303 IPC_STRUCT_MEMBER(int64
, session_storage_namespace_id
)
305 // The name of the resulting frame that should be created (empty if none
306 // has been specified).
307 IPC_STRUCT_MEMBER(base::string16
, frame_name
)
309 // The routing id of the frame initiating the open.
310 IPC_STRUCT_MEMBER(int, opener_render_frame_id
)
312 // The URL of the frame initiating the open.
313 IPC_STRUCT_MEMBER(GURL
, opener_url
)
315 // The URL of the top frame containing the opener.
316 IPC_STRUCT_MEMBER(GURL
, opener_top_level_frame_url
)
318 // The security origin of the frame initiating the open.
319 IPC_STRUCT_MEMBER(GURL
, opener_security_origin
)
321 // Whether the opener will be suppressed in the new window, in which case
322 // scripting the new window is not allowed.
323 IPC_STRUCT_MEMBER(bool, opener_suppressed
)
325 // Whether the window should be opened in the foreground, background, etc.
326 IPC_STRUCT_MEMBER(WindowOpenDisposition
, disposition
)
328 // The URL that will be loaded in the new window (empty if none has been
330 IPC_STRUCT_MEMBER(GURL
, target_url
)
332 // The referrer that will be used to load |target_url| (empty if none has
334 IPC_STRUCT_MEMBER(content::Referrer
, referrer
)
336 // The window features to use for the new view.
337 IPC_STRUCT_MEMBER(blink::WebWindowFeatures
, features
)
339 // The additional window features to use for the new view. We pass these
340 // separately from |features| above because we cannot serialize WebStrings
342 IPC_STRUCT_MEMBER(std::vector
<base::string16
>, additional_features
)
345 IPC_STRUCT_BEGIN(ViewHostMsg_CreateWorker_Params
)
346 // URL for the worker script.
347 IPC_STRUCT_MEMBER(GURL
, url
)
349 // Name for a SharedWorker, otherwise empty string.
350 IPC_STRUCT_MEMBER(base::string16
, name
)
352 // Security policy used in the worker.
353 IPC_STRUCT_MEMBER(base::string16
, content_security_policy
)
355 // Security policy type used in the worker.
356 IPC_STRUCT_MEMBER(blink::WebContentSecurityPolicyType
, security_policy_type
)
358 // The ID of the parent document (unique within parent renderer).
359 IPC_STRUCT_MEMBER(unsigned long long, document_id
)
361 // RenderFrame routing id used to send messages back to the parent.
362 IPC_STRUCT_MEMBER(int, render_frame_route_id
)
365 IPC_STRUCT_BEGIN(ViewHostMsg_DateTimeDialogValue_Params
)
366 IPC_STRUCT_MEMBER(ui::TextInputType
, dialog_type
)
367 IPC_STRUCT_MEMBER(double, dialog_value
)
368 IPC_STRUCT_MEMBER(double, minimum
)
369 IPC_STRUCT_MEMBER(double, maximum
)
370 IPC_STRUCT_MEMBER(double, step
)
371 IPC_STRUCT_MEMBER(std::vector
<content::DateTimeSuggestion
>, suggestions
)
374 IPC_STRUCT_BEGIN(ViewHostMsg_SelectionBounds_Params
)
375 IPC_STRUCT_MEMBER(gfx::Rect
, anchor_rect
)
376 IPC_STRUCT_MEMBER(blink::WebTextDirection
, anchor_dir
)
377 IPC_STRUCT_MEMBER(gfx::Rect
, focus_rect
)
378 IPC_STRUCT_MEMBER(blink::WebTextDirection
, focus_dir
)
379 IPC_STRUCT_MEMBER(bool, is_anchor_first
)
382 IPC_STRUCT_BEGIN(ViewHostMsg_TextInputState_Params
)
383 // The type of input field
384 IPC_STRUCT_MEMBER(ui::TextInputType
, type
)
386 // The flags of the input field (autocorrect, autocomplete, etc.)
387 IPC_STRUCT_MEMBER(int, flags
)
389 // The value of the input field
390 IPC_STRUCT_MEMBER(std::string
, value
)
392 // The cursor position of the current selection start, or the caret position
393 // if nothing is selected
394 IPC_STRUCT_MEMBER(int, selection_start
)
396 // The cursor position of the current selection end, or the caret position
397 // if nothing is selected
398 IPC_STRUCT_MEMBER(int, selection_end
)
400 // The start position of the current composition, or -1 if there is none
401 IPC_STRUCT_MEMBER(int, composition_start
)
403 // The end position of the current composition, or -1 if there is none
404 IPC_STRUCT_MEMBER(int, composition_end
)
406 // Whether or not inline composition can be performed for the current input.
407 IPC_STRUCT_MEMBER(bool, can_compose_inline
)
409 // Whether or not the IME should be shown as a result of this update. Even if
410 // true, the IME will only be shown if the type is appropriate (e.g. not
411 // TEXT_INPUT_TYPE_NONE).
412 IPC_STRUCT_MEMBER(bool, show_ime_if_needed
)
414 // Whether this change is originated from non-IME (e.g. Javascript, Autofill).
415 IPC_STRUCT_MEMBER(bool, is_non_ime_change
)
418 IPC_STRUCT_BEGIN(ViewHostMsg_UpdateRect_Params
)
419 // The size of the RenderView when this message was generated. This is
420 // included so the host knows how large the view is from the perspective of
421 // the renderer process. This is necessary in case a resize operation is in
422 // progress. If auto-resize is enabled, this should update the corresponding
424 IPC_STRUCT_MEMBER(gfx::Size
, view_size
)
426 // New window locations for plugin child windows.
427 IPC_STRUCT_MEMBER(std::vector
<content::WebPluginGeometry
>,
430 // The following describes the various bits that may be set in flags:
432 // ViewHostMsg_UpdateRect_Flags::IS_RESIZE_ACK
433 // Indicates that this is a response to a ViewMsg_Resize message.
435 // ViewHostMsg_UpdateRect_Flags::IS_REPAINT_ACK
436 // Indicates that this is a response to a ViewMsg_Repaint message.
438 // If flags is zero, then this message corresponds to an unsolicited paint
439 // request by the render view. Any of the above bits may be set in flags,
440 // which would indicate that this paint message is an ACK for multiple
442 IPC_STRUCT_MEMBER(int, flags
)
445 IPC_STRUCT_BEGIN(ViewMsg_Resize_Params
)
446 // Information about the screen (dpi, depth, etc..).
447 IPC_STRUCT_MEMBER(blink::WebScreenInfo
, screen_info
)
448 // The size of the renderer.
449 IPC_STRUCT_MEMBER(gfx::Size
, new_size
)
450 // The size of the view's backing surface in non-DPI-adjusted pixels.
451 IPC_STRUCT_MEMBER(gfx::Size
, physical_backing_size
)
452 // Whether or not Blink's viewport size should be shrunk by the height of the
453 // URL-bar (always false on platforms where URL-bar hiding isn't supported).
454 IPC_STRUCT_MEMBER(bool, top_controls_shrink_blink_size
)
455 // The height of the top controls (always 0 on platforms where URL-bar hiding
457 IPC_STRUCT_MEMBER(float, top_controls_height
)
458 // The size of the visible viewport, which may be smaller than the view if the
459 // view is partially occluded (e.g. by a virtual keyboard). The size is in
460 // DPI-adjusted pixels.
461 IPC_STRUCT_MEMBER(gfx::Size
, visible_viewport_size
)
463 IPC_STRUCT_MEMBER(gfx::Rect
, resizer_rect
)
464 // Indicates whether tab-initiated fullscreen was granted.
465 IPC_STRUCT_MEMBER(bool, is_fullscreen_granted
)
467 IPC_STRUCT_MEMBER(blink::WebDisplayMode
, display_mode
)
468 // If set, requests the renderer to reply with a ViewHostMsg_UpdateRect
469 // with the ViewHostMsg_UpdateRect_Flags::IS_RESIZE_ACK bit set in flags.
470 IPC_STRUCT_MEMBER(bool, needs_resize_ack
)
473 IPC_STRUCT_BEGIN(ViewMsg_New_Params
)
474 // Renderer-wide preferences.
475 IPC_STRUCT_MEMBER(content::RendererPreferences
, renderer_preferences
)
477 // Preferences for this view.
478 IPC_STRUCT_MEMBER(content::WebPreferences
, web_preferences
)
480 // The ID of the view to be created.
481 IPC_STRUCT_MEMBER(int32
, view_id
)
483 // The ID of the main frame hosted in the view.
484 IPC_STRUCT_MEMBER(int32
, main_frame_routing_id
)
486 // The ID of the rendering surface.
487 IPC_STRUCT_MEMBER(int32
, surface_id
)
489 // The session storage namespace ID this view should use.
490 IPC_STRUCT_MEMBER(int64
, session_storage_namespace_id
)
492 // The name of the frame associated with this view (or empty if none).
493 IPC_STRUCT_MEMBER(base::string16
, frame_name
)
495 // The route ID of the opener RenderView if we need to set one
496 // (MSG_ROUTING_NONE otherwise).
497 IPC_STRUCT_MEMBER(int, opener_route_id
)
499 // Whether the RenderView should initially be swapped out.
500 IPC_STRUCT_MEMBER(bool, swapped_out
)
502 // In --site-per-process mode, if this view is |swapped_out|, its main frame
503 // will become a RenderFrameProxy. |replicated_frame_state| is used to
504 // replicate information such as security origin to that RenderFrameProxy.
505 IPC_STRUCT_MEMBER(content::FrameReplicationState
, replicated_frame_state
)
507 // The ID of the proxy object for the main frame in this view. It is only
508 // used if |swapped_out| is true.
509 IPC_STRUCT_MEMBER(int32
, proxy_routing_id
)
511 // Whether the RenderView should initially be hidden.
512 IPC_STRUCT_MEMBER(bool, hidden
)
514 // Whether the RenderView will never be visible.
515 IPC_STRUCT_MEMBER(bool, never_visible
)
517 // Whether the window associated with this view was created with an opener.
518 IPC_STRUCT_MEMBER(bool, window_was_created_with_opener
)
520 // The initial page ID to use for this view, which must be larger than any
521 // existing navigation that might be loaded in the view. Page IDs are unique
522 // to a view and are only updated by the renderer after this initial value.
523 IPC_STRUCT_MEMBER(int32
, next_page_id
)
525 // The initial renderer size.
526 IPC_STRUCT_MEMBER(ViewMsg_Resize_Params
, initial_size
)
528 // Whether to enable auto-resize.
529 IPC_STRUCT_MEMBER(bool, enable_auto_resize
)
531 // The minimum size to layout the page if auto-resize is enabled.
532 IPC_STRUCT_MEMBER(gfx::Size
, min_size
)
534 // The maximum size to layout the page if auto-resize is enabled.
535 IPC_STRUCT_MEMBER(gfx::Size
, max_size
)
538 // Messages sent from the browser to the renderer.
540 #if defined(OS_ANDROID)
541 // Tells the renderer to cancel an opened date/time dialog.
542 IPC_MESSAGE_ROUTED0(ViewMsg_CancelDateTimeDialog
)
544 // Replaces a date time input field.
545 IPC_MESSAGE_ROUTED1(ViewMsg_ReplaceDateTime
,
546 double /* dialog_value */)
550 // Get all savable resource links from current webpage, include main
551 // frame and sub-frame.
552 IPC_MESSAGE_ROUTED1(ViewMsg_GetAllSavableResourceLinksForCurrentPage
,
553 GURL
/* url of page which is needed to save */)
555 // Get html data by serializing all frames of current page with lists
556 // which contain all resource links that have local copy.
557 IPC_MESSAGE_ROUTED3(ViewMsg_GetSerializedHtmlDataForCurrentPageWithLocalLinks
,
558 std::vector
<GURL
> /* urls that have local copy */,
559 std::vector
<base::FilePath
> /* paths of local copy */,
560 base::FilePath
/* local directory path */)
562 // Tells the render side that a ViewHostMsg_LockMouse message has been
563 // processed. |succeeded| indicates whether the mouse has been successfully
565 IPC_MESSAGE_ROUTED1(ViewMsg_LockMouse_ACK
,
566 bool /* succeeded */)
567 // Tells the render side that the mouse has been unlocked.
568 IPC_MESSAGE_ROUTED0(ViewMsg_MouseLockLost
)
570 // Sent by the browser when the parameters for vsync alignment have changed.
571 IPC_MESSAGE_ROUTED2(ViewMsg_UpdateVSyncParameters
,
572 base::TimeTicks
/* timebase */,
573 base::TimeDelta
/* interval */)
575 // Sent when the history is altered outside of navigation. The history list was
576 // reset to |history_length| length, and the offset was reset to be
578 IPC_MESSAGE_ROUTED2(ViewMsg_SetHistoryOffsetAndLength
,
579 int /* history_offset */,
580 int /* history_length */)
582 // Tells the renderer to create a new view.
583 // This message is slightly different, the view it takes (via
584 // ViewMsg_New_Params) is the view to create, the message itself is sent as a
585 // non-view control message.
586 IPC_MESSAGE_CONTROL1(ViewMsg_New
,
589 // Reply in response to ViewHostMsg_ShowView or ViewHostMsg_ShowWidget.
590 // similar to the new command, but used when the renderer created a view
591 // first, and we need to update it.
592 IPC_MESSAGE_ROUTED0(ViewMsg_CreatingNew_ACK
)
594 // Sends updated preferences to the renderer.
595 IPC_MESSAGE_ROUTED1(ViewMsg_SetRendererPrefs
,
596 content::RendererPreferences
)
598 // This passes a set of webkit preferences down to the renderer.
599 IPC_MESSAGE_ROUTED1(ViewMsg_UpdateWebPreferences
,
600 content::WebPreferences
)
602 // Informs the renderer that the timezone has changed.
603 IPC_MESSAGE_CONTROL0(ViewMsg_TimezoneChange
)
605 // Tells the render view to close.
606 // Expects a Close_ACK message when finished.
607 IPC_MESSAGE_ROUTED0(ViewMsg_Close
)
609 // Tells the render view to change its size. A ViewHostMsg_UpdateRect message
610 // is generated in response provided new_size is not empty and not equal to
611 // the view's current size. The generated ViewHostMsg_UpdateRect message will
612 // have the IS_RESIZE_ACK flag set. It also receives the resizer rect so that
613 // we don't have to fetch it every time WebKit asks for it.
614 IPC_MESSAGE_ROUTED1(ViewMsg_Resize
,
615 ViewMsg_Resize_Params
/* params */)
617 // Enables device emulation. See WebDeviceEmulationParams for description.
618 IPC_MESSAGE_ROUTED1(ViewMsg_EnableDeviceEmulation
,
619 blink::WebDeviceEmulationParams
/* params */)
621 // Disables device emulation, enabled previously by EnableDeviceEmulation.
622 IPC_MESSAGE_ROUTED0(ViewMsg_DisableDeviceEmulation
)
624 // Sent to inform the renderer of its screen device color profile. An empty
625 // profile tells the renderer use the default sRGB color profile.
626 IPC_MESSAGE_ROUTED1(ViewMsg_ColorProfile
,
627 std::vector
<char> /* color profile */)
629 // Tells the render view that the resize rect has changed.
630 IPC_MESSAGE_ROUTED1(ViewMsg_ChangeResizeRect
,
631 gfx::Rect
/* resizer_rect */)
633 // Sent to inform the view that it was hidden. This allows it to reduce its
634 // resource utilization.
635 IPC_MESSAGE_ROUTED0(ViewMsg_WasHidden
)
637 // Tells the render view that it is no longer hidden (see WasHidden), and the
638 // render view is expected to respond with a full repaint if needs_repainting
639 // is true. If needs_repainting is false, then this message does not trigger a
640 // message in response.
641 IPC_MESSAGE_ROUTED2(ViewMsg_WasShown
,
642 bool /* needs_repainting */,
643 ui::LatencyInfo
/* latency_info */)
645 // Tells the renderer to focus the first (last if reverse is true) focusable
647 IPC_MESSAGE_ROUTED1(ViewMsg_SetInitialFocus
,
650 // Sent to inform the renderer to invoke a context menu.
651 // The parameter specifies the location in the render view's coordinates.
652 IPC_MESSAGE_ROUTED2(ViewMsg_ShowContextMenu
,
654 gfx::Point
/* location where menu should be shown */)
656 // Sent when the user wants to search for a word on the page (find in page).
657 IPC_MESSAGE_ROUTED3(ViewMsg_Find
,
658 int /* request_id */,
659 base::string16
/* search_text */,
660 blink::WebFindOptions
)
662 // This message notifies the renderer that the user has closed the FindInPage
663 // window (and what action to take regarding the selection).
664 IPC_MESSAGE_ROUTED1(ViewMsg_StopFinding
,
665 content::StopFindAction
/* action */)
667 // Copies the image at location x, y to the clipboard (if there indeed is an
668 // image at that location).
669 IPC_MESSAGE_ROUTED2(ViewMsg_CopyImageAt
,
673 // Saves the image at location x, y to the disk (if there indeed is an
674 // image at that location).
675 IPC_MESSAGE_ROUTED2(ViewMsg_SaveImageAt
,
679 // Tells the renderer to perform the given action on the media player
680 // located at the given point.
681 IPC_MESSAGE_ROUTED2(ViewMsg_MediaPlayerActionAt
,
682 gfx::Point
, /* location */
683 blink::WebMediaPlayerAction
)
685 // Tells the renderer to perform the given action on the plugin located at
687 IPC_MESSAGE_ROUTED2(ViewMsg_PluginActionAt
,
688 gfx::Point
, /* location */
689 blink::WebPluginAction
)
691 // Resets the page scale for the current main frame to the default page scale.
692 IPC_MESSAGE_ROUTED0(ViewMsg_ResetPageScale
)
694 // Change the zoom level for the current main frame. If the level actually
695 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser
696 // telling it what url got zoomed and what its current zoom level is.
697 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom
,
698 content::PageZoom
/* function */)
700 // Set the zoom level for a particular url that the renderer is in the
701 // process of loading. This will be stored, to be used if the load commits
702 // and ignored otherwise.
703 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForLoadingURL
,
705 double /* zoom_level */)
707 // Set the zoom level for a particular url, so all render views
708 // displaying this url can update their zoom levels to match.
709 // If scheme is empty, then only host is used for matching.
710 IPC_MESSAGE_CONTROL3(ViewMsg_SetZoomLevelForCurrentURL
,
711 std::string
/* scheme */,
712 std::string
/* host */,
713 double /* zoom_level */)
715 // Set the zoom level for a particular render view.
716 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForView
,
717 bool /* uses_temporary_zoom_level */,
718 double /* zoom_level */)
720 // Change encoding of page in the renderer.
721 IPC_MESSAGE_ROUTED1(ViewMsg_SetPageEncoding
,
722 std::string
/*new encoding name*/)
724 // Reset encoding of page in the renderer back to default.
725 IPC_MESSAGE_ROUTED0(ViewMsg_ResetPageEncodingToDefault
)
727 // Used to tell a render view whether it should expose various bindings
728 // that allow JS content extended privileges. See BindingsPolicy for valid
730 IPC_MESSAGE_ROUTED1(ViewMsg_AllowBindings
,
731 int /* enabled_bindings_flags */)
733 // Tell the renderer to add a property to the WebUI binding object. This
734 // only works if we allowed WebUI bindings.
735 IPC_MESSAGE_ROUTED2(ViewMsg_SetWebUIProperty
,
736 std::string
/* property_name */,
737 std::string
/* property_value_json */)
739 // This message starts/stop monitoring the input method status of the focused
740 // edit control of a renderer process.
742 // * is_active (bool)
743 // Indicates if an input method is active in the browser process.
744 // The possible actions when a renderer process receives this message are
747 // true Start sending IPC message ViewHostMsg_ImeUpdateTextInputState
748 // to notify the input method status of the focused edit control.
749 // false Stop sending IPC message ViewHostMsg_ImeUpdateTextInputState.
750 IPC_MESSAGE_ROUTED1(ViewMsg_SetInputMethodActive
,
751 bool /* is_active */)
753 // IME API oncandidatewindow* events for InputMethodContext.
754 IPC_MESSAGE_ROUTED0(ViewMsg_CandidateWindowShown
)
755 IPC_MESSAGE_ROUTED0(ViewMsg_CandidateWindowUpdated
)
756 IPC_MESSAGE_ROUTED0(ViewMsg_CandidateWindowHidden
)
758 // Used to notify the render-view that we have received a target URL. Used
759 // to prevent target URLs spamming the browser.
760 IPC_MESSAGE_ROUTED0(ViewMsg_UpdateTargetURL_ACK
)
762 IPC_MESSAGE_ROUTED1(ViewMsg_RunFileChooserResponse
,
763 std::vector
<content::FileChooserFileInfo
>)
765 // Provides the results of directory enumeration.
766 IPC_MESSAGE_ROUTED2(ViewMsg_EnumerateDirectoryResponse
,
767 int /* request_id */,
768 std::vector
<base::FilePath
> /* files_in_directory */)
770 // When a renderer sends a ViewHostMsg_Focus to the browser process,
771 // the browser has the option of sending a ViewMsg_CantFocus back to
773 IPC_MESSAGE_ROUTED0(ViewMsg_CantFocus
)
775 // Tells the renderer to suppress any further modal dialogs until it receives a
776 // corresponding ViewMsg_SwapOut message. This ensures that no
777 // PageGroupLoadDeferrer is on the stack for SwapOut.
778 IPC_MESSAGE_ROUTED0(ViewMsg_SuppressDialogsUntilSwapOut
)
780 // Instructs the renderer to close the current page, including running the
781 // onunload event handler.
783 // Expects a ClosePage_ACK message when finished.
784 IPC_MESSAGE_ROUTED0(ViewMsg_ClosePage
)
786 // Notifies the renderer about ui theme changes
787 IPC_MESSAGE_ROUTED0(ViewMsg_ThemeChanged
)
789 // Notifies the renderer that a paint is to be generated for the rectangle
791 IPC_MESSAGE_ROUTED1(ViewMsg_Repaint
,
792 gfx::Size
/* The view size to be repainted */)
794 // Notification that a move or resize renderer's containing window has
796 IPC_MESSAGE_ROUTED0(ViewMsg_MoveOrResizeStarted
)
798 IPC_MESSAGE_ROUTED2(ViewMsg_UpdateScreenRects
,
799 gfx::Rect
/* view_screen_rect */,
800 gfx::Rect
/* window_screen_rect */)
802 // Reply to ViewHostMsg_RequestMove, ViewHostMsg_ShowView, and
803 // ViewHostMsg_ShowWidget to inform the renderer that the browser has
804 // processed the move. The browser may have ignored the move, but it finished
805 // processing. This is used because the renderer keeps a temporary cache of
806 // the widget position while these asynchronous operations are in progress.
807 IPC_MESSAGE_ROUTED0(ViewMsg_Move_ACK
)
809 // Used to instruct the RenderView to send back updates to the preferred size.
810 IPC_MESSAGE_ROUTED0(ViewMsg_EnablePreferredSizeChangedMode
)
812 // Used to instruct the RenderView to automatically resize and send back
813 // updates for the new size.
814 IPC_MESSAGE_ROUTED2(ViewMsg_EnableAutoResize
,
815 gfx::Size
/* min_size */,
816 gfx::Size
/* max_size */)
818 // Used to instruct the RenderView to disalbe automatically resize.
819 IPC_MESSAGE_ROUTED1(ViewMsg_DisableAutoResize
,
820 gfx::Size
/* new_size */)
822 // Changes the text direction of the currently selected input field (if any).
823 IPC_MESSAGE_ROUTED1(ViewMsg_SetTextDirection
,
824 blink::WebTextDirection
/* direction */)
826 // Tells the renderer to clear the focused element (if any).
827 IPC_MESSAGE_ROUTED0(ViewMsg_ClearFocusedElement
)
829 // Make the RenderView background transparent or opaque.
830 IPC_MESSAGE_ROUTED1(ViewMsg_SetBackgroundOpaque
, bool /* opaque */)
832 // Used to tell the renderer not to add scrollbars with height and
833 // width below a threshold.
834 IPC_MESSAGE_ROUTED1(ViewMsg_DisableScrollbarsForSmallWindows
,
835 gfx::Size
/* disable_scrollbar_size_limit */)
837 // Activate/deactivate the RenderView (i.e., set its controls' tint
838 // accordingly, etc.).
839 IPC_MESSAGE_ROUTED1(ViewMsg_SetActive
,
842 // Response message to ViewHostMsg_CreateWorker.
843 // Sent when the worker has started.
844 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerCreated
)
846 // Sent when the worker failed to load the worker script.
847 // In normal cases, this message is sent after ViewMsg_WorkerCreated is sent.
848 // But if the shared worker of the same URL already exists and it has failed
849 // to load the script, when the renderer send ViewHostMsg_CreateWorker before
850 // the shared worker is killed only ViewMsg_WorkerScriptLoadFailed is sent.
851 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerScriptLoadFailed
)
853 // Sent when the worker has connected.
854 // This message is sent only if the worker successfully loaded the script.
855 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerConnected
)
857 // Tells the renderer that the network type has changed so that navigator.onLine
858 // and navigator.connection can be updated.
859 IPC_MESSAGE_CONTROL1(ViewMsg_NetworkTypeChanged
,
860 net::NetworkChangeNotifier::ConnectionType
/* type */)
862 #if defined(ENABLE_PLUGINS)
863 // Reply to ViewHostMsg_OpenChannelToPpapiBroker
864 // Tells the renderer that the channel to the broker has been created.
865 IPC_MESSAGE_ROUTED2(ViewMsg_PpapiBrokerChannelCreated
,
866 base::ProcessId
/* broker_pid */,
867 IPC::ChannelHandle
/* handle */)
869 // Reply to ViewHostMsg_RequestPpapiBrokerPermission.
870 // Tells the renderer whether permission to access to PPAPI broker was granted
872 IPC_MESSAGE_ROUTED1(ViewMsg_PpapiBrokerPermissionResult
,
875 // Tells the renderer to empty its plugin list cache, optional reloading
876 // pages containing plugins.
877 IPC_MESSAGE_CONTROL1(ViewMsg_PurgePluginListCache
,
878 bool /* reload_pages */)
881 // Used to instruct the RenderView to go into "view source" mode.
882 IPC_MESSAGE_ROUTED0(ViewMsg_EnableViewSourceMode
)
884 // Instructs the renderer to save the current page to MHTML.
885 IPC_MESSAGE_ROUTED2(ViewMsg_SavePageAsMHTML
,
887 IPC::PlatformFileForTransit
/* file handle */)
889 // Temporary message to diagnose an unexpected condition in WebContentsImpl.
890 IPC_MESSAGE_CONTROL1(ViewMsg_TempCrashWithData
,
893 // An acknowledge to ViewHostMsg_MultipleTargetsTouched to notify the renderer
894 // process to release the magnified image.
895 IPC_MESSAGE_ROUTED1(ViewMsg_ReleaseDisambiguationPopupBitmap
,
896 cc::SharedBitmapId
/* id */)
898 // Fetches complete rendered content of a web page as plain text.
899 IPC_MESSAGE_ROUTED0(ViewMsg_GetRenderedText
)
901 #if defined(OS_MACOSX)
902 IPC_ENUM_TRAITS_MAX_VALUE(blink::ScrollerStyle
, blink::ScrollerStyleOverlay
)
904 // Notification of a change in scrollbar appearance and/or behavior.
905 IPC_MESSAGE_CONTROL5(ViewMsg_UpdateScrollbarTheme
,
906 float /* initial_button_delay */,
907 float /* autoscroll_button_delay */,
908 bool /* jump_on_track_click */,
909 blink::ScrollerStyle
/* preferred_scroller_style */,
913 #if defined(OS_ANDROID)
914 // Tells the renderer to suspend/resume the webkit timers.
915 IPC_MESSAGE_CONTROL1(ViewMsg_SetWebKitSharedTimersSuspended
,
918 // Sent when the browser wants the bounding boxes of the current find matches.
920 // If match rects are already cached on the browser side, |current_version|
921 // should be the version number from the ViewHostMsg_FindMatchRects_Reply
922 // they came in, so the renderer can tell if it needs to send updated rects.
923 // Otherwise just pass -1 to always receive the list of rects.
925 // There must be an active search string (it is probably most useful to call
926 // this immediately after a ViewHostMsg_Find_Reply message arrives with
927 // final_update set to true).
928 IPC_MESSAGE_ROUTED1(ViewMsg_FindMatchRects
,
929 int /* current_version */)
931 // Notifies the renderer whether hiding/showing the top controls is enabled
932 // and whether or not to animate to the proper state.
933 IPC_MESSAGE_ROUTED3(ViewMsg_UpdateTopControlsState
,
934 bool /* enable_hiding */,
935 bool /* enable_showing */,
938 IPC_MESSAGE_ROUTED0(ViewMsg_ShowImeIfNeeded
)
940 // Sent by the browser when an IME update that requires acknowledgement has been
941 // processed on the browser side.
942 IPC_MESSAGE_ROUTED0(ViewMsg_ImeEventAck
)
944 // Extracts the data at the given rect, returning it through the
945 // ViewHostMsg_SmartClipDataExtracted IPC.
946 IPC_MESSAGE_ROUTED1(ViewMsg_ExtractSmartClipData
,
947 gfx::Rect
/* rect */)
949 #elif defined(OS_MACOSX)
950 // Let the RenderView know its window has changed visibility.
951 IPC_MESSAGE_ROUTED1(ViewMsg_SetWindowVisibility
,
954 // Let the RenderView know its window's frame has changed.
955 IPC_MESSAGE_ROUTED2(ViewMsg_WindowFrameChanged
,
956 gfx::Rect
/* window frame */,
957 gfx::Rect
/* content view frame */)
959 // Message sent from the browser to the renderer when the user starts or stops
960 // resizing the view.
961 IPC_MESSAGE_ROUTED1(ViewMsg_SetInLiveResize
,
964 // Tell the renderer that plugin IME has completed.
965 IPC_MESSAGE_ROUTED2(ViewMsg_PluginImeCompositionCompleted
,
966 base::string16
/* text */,
970 // Sent by the browser as a reply to ViewHostMsg_SwapCompositorFrame.
971 IPC_MESSAGE_ROUTED2(ViewMsg_SwapCompositorFrameAck
,
972 uint32
/* output_surface_id */,
973 cc::CompositorFrameAck
/* ack */)
975 // Sent by browser to tell renderer compositor that some resources that were
976 // given to the browser in a swap are not being used anymore.
977 IPC_MESSAGE_ROUTED2(ViewMsg_ReclaimCompositorResources
,
978 uint32
/* output_surface_id */,
979 cc::CompositorFrameAck
/* ack */)
981 IPC_MESSAGE_ROUTED0(ViewMsg_SelectWordAroundCaret
)
983 // Sent by the browser to ask the renderer to redraw.
984 // If |request_id| is not zero, it is added to the forced frame's latency info
985 // as ui::WINDOW_SNAPSHOT_FRAME_NUMBER_COMPONENT.
986 IPC_MESSAGE_ROUTED1(ViewMsg_ForceRedraw
,
987 int /* request_id */)
989 // Sent by the browser when the renderer should generate a new frame.
990 IPC_MESSAGE_ROUTED1(ViewMsg_BeginFrame
,
991 cc::BeginFrameArgs
/* args */)
993 // -----------------------------------------------------------------------------
994 // Messages sent from the renderer to the browser.
996 // Sent by renderer to request a ViewMsg_BeginFrame message for upcoming
997 // display events. If |enabled| is true, the BeginFrame message will continue
998 // to be be delivered until the notification is disabled.
999 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrames
,
1002 // Sent by the renderer when it is creating a new window. The browser creates
1003 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is
1004 // MSG_ROUTING_NONE, the view couldn't be created.
1005 IPC_SYNC_MESSAGE_CONTROL1_4(ViewHostMsg_CreateWindow
,
1006 ViewHostMsg_CreateWindow_Params
,
1008 int /* main_frame_route_id */,
1009 int32
/* surface_id */,
1010 int64
/* cloned_session_storage_namespace_id */)
1012 // Similar to ViewHostMsg_CreateWindow, except used for sub-widgets, like
1013 // <select> dropdowns. This message is sent to the WebContentsImpl that
1014 // contains the widget being created.
1015 IPC_SYNC_MESSAGE_CONTROL2_2(ViewHostMsg_CreateWidget
,
1016 int /* opener_id */,
1017 blink::WebPopupType
/* popup type */,
1019 int32
/* surface_id */)
1021 // Similar to ViewHostMsg_CreateWidget except the widget is a full screen
1023 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_CreateFullscreenWidget
,
1024 int /* opener_id */,
1026 int32
/* surface_id */)
1028 // Asks the browser for a unique routing ID.
1029 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GenerateRoutingID
,
1030 int /* routing_id */)
1032 // Asks the browser for the default audio hardware configuration.
1033 IPC_SYNC_MESSAGE_CONTROL0_2(ViewHostMsg_GetAudioHardwareConfig
,
1034 media::AudioParameters
/* input parameters */,
1035 media::AudioParameters
/* output parameters */)
1037 // Asks the browser for the renderer process memory size stats.
1038 IPC_SYNC_MESSAGE_CONTROL0_2(ViewHostMsg_GetProcessMemorySizes
,
1039 size_t /* private_bytes */,
1040 size_t /* shared_bytes */)
1042 // These three messages are sent to the parent RenderViewHost to display the
1043 // page/widget that was created by
1044 // CreateWindow/CreateWidget/CreateFullscreenWidget. routing_id
1045 // refers to the id that was returned from the Create message above.
1046 // The initial_rect parameter is in screen coordinates.
1048 // FUTURE: there will probably be flags here to control if the result is
1050 IPC_MESSAGE_ROUTED4(ViewHostMsg_ShowView
,
1052 WindowOpenDisposition
/* disposition */,
1053 gfx::Rect
/* initial_rect */,
1054 bool /* opened_by_user_gesture */)
1056 IPC_MESSAGE_ROUTED2(ViewHostMsg_ShowWidget
,
1058 gfx::Rect
/* initial_rect */)
1060 // Message to show a full screen widget.
1061 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowFullscreenWidget
,
1064 // Indicates the renderer is ready in response to a ViewMsg_New or
1065 // a ViewMsg_CreatingNew_ACK.
1066 IPC_MESSAGE_ROUTED0(ViewHostMsg_RenderViewReady
)
1068 // Sent by the renderer process to request that the browser close the view.
1069 // This corresponds to the window.close() API, and the browser may ignore
1070 // this message. Otherwise, the browser will generates a ViewMsg_Close
1071 // message to close the view.
1072 IPC_MESSAGE_ROUTED0(ViewHostMsg_Close
)
1074 // Send in response to a ViewMsg_UpdateScreenRects so that the renderer can
1075 // throttle these messages.
1076 IPC_MESSAGE_ROUTED0(ViewHostMsg_UpdateScreenRects_ACK
)
1078 // Sent by the renderer process to request that the browser move the view.
1079 // This corresponds to the window.resizeTo() and window.moveTo() APIs, and
1080 // the browser may ignore this message.
1081 IPC_MESSAGE_ROUTED1(ViewHostMsg_RequestMove
,
1082 gfx::Rect
/* position */)
1084 // Result of string search in the page.
1085 // Response to ViewMsg_Find with the results of the requested find-in-page
1086 // search, the number of matches found and the selection rect (in screen
1087 // coordinates) for the string found. If |final_update| is false, it signals
1088 // that this is not the last Find_Reply message - more will be sent as the
1089 // scoping effort continues.
1090 IPC_MESSAGE_ROUTED5(ViewHostMsg_Find_Reply
,
1091 int /* request_id */,
1092 int /* number of matches */,
1093 gfx::Rect
/* selection_rect */,
1094 int /* active_match_ordinal */,
1095 bool /* final_update */)
1097 // Indicates that the render view has been closed in respose to a
1099 IPC_MESSAGE_CONTROL1(ViewHostMsg_Close_ACK
,
1100 int /* old_route_id */)
1102 // Indicates that the current page has been closed, after a ClosePage
1104 IPC_MESSAGE_ROUTED0(ViewHostMsg_ClosePage_ACK
)
1106 // Notifies the browser that we have session history information.
1107 // page_id: unique ID that allows us to distinguish between history entries.
1108 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateState
,
1109 int32
/* page_id */,
1110 content::PageState
/* state */)
1112 // Notifies the browser that we want to show a destination url for a potential
1113 // action (e.g. when the user is hovering over a link).
1114 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateTargetURL
,
1117 // Sent when the document element is available for the top-level frame. This
1118 // happens after the page starts loading, but before all resources are
1120 IPC_MESSAGE_ROUTED1(ViewHostMsg_DocumentAvailableInMainFrame
,
1121 bool /* uses_temporary_zoom_level */)
1123 // Sent when the renderer loads a resource from its memory cache.
1124 // The security info is non empty if the resource was originally loaded over
1125 // a secure connection.
1126 // Note: May only be sent once per URL per frame per committed load.
1127 IPC_MESSAGE_ROUTED5(ViewHostMsg_DidLoadResourceFromMemoryCache
,
1129 std::string
/* security info */,
1130 std::string
/* http method */,
1131 std::string
/* mime type */,
1132 content::ResourceType
/* resource type */)
1134 // Sent when the renderer displays insecure content in a secure page.
1135 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidDisplayInsecureContent
)
1137 // Sent when the renderer runs insecure content in a secure origin.
1138 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidRunInsecureContent
,
1139 std::string
/* security_origin */,
1140 GURL
/* target URL */)
1142 // Sent to update part of the view. In response to this message, the host
1143 // generates a ViewMsg_UpdateRect_ACK message.
1144 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateRect
,
1145 ViewHostMsg_UpdateRect_Params
)
1147 IPC_MESSAGE_ROUTED0(ViewHostMsg_Focus
)
1148 IPC_MESSAGE_ROUTED0(ViewHostMsg_Blur
)
1150 // Message sent from renderer to the browser when focus changes inside the
1151 // webpage. The first parameter says whether the newly focused element needs
1152 // keyboard input (true for textfields, text areas and content editable divs).
1153 // The second parameter is the node bounds relative to RenderWidgetHostView.
1154 IPC_MESSAGE_ROUTED2(ViewHostMsg_FocusedNodeChanged
,
1155 bool /* is_editable_node */,
1156 gfx::Rect
/* node_bounds */)
1158 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetCursor
, content::WebCursor
)
1160 // Used to set a cookie. The cookie is set asynchronously, but will be
1161 // available to a subsequent ViewHostMsg_GetCookies request.
1162 IPC_MESSAGE_CONTROL4(ViewHostMsg_SetCookie
,
1163 int /* render_frame_id */,
1165 GURL
/* first_party_for_cookies */,
1166 std::string
/* cookie */)
1168 // Used to get cookies for the given URL. This may block waiting for a
1169 // previous SetCookie message to be processed.
1170 IPC_SYNC_MESSAGE_CONTROL3_1(ViewHostMsg_GetCookies
,
1171 int /* render_frame_id */,
1173 GURL
/* first_party_for_cookies */,
1174 std::string
/* cookies */)
1176 // Used to check if cookies are enabled for the given URL. This may block
1177 // waiting for a previous SetCookie message to be processed.
1178 IPC_SYNC_MESSAGE_CONTROL3_1(ViewHostMsg_CookiesEnabled
,
1179 int /* render_frame_id */,
1181 GURL
/* first_party_for_cookies */,
1182 bool /* cookies_enabled */)
1184 // Used to get the list of plugins
1185 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetPlugins
,
1187 std::vector
<content::WebPluginInfo
> /* plugins */)
1190 IPC_MESSAGE_ROUTED1(ViewHostMsg_WindowlessPluginDummyWindowCreated
,
1191 gfx::NativeViewId
/* dummy_activation_window */)
1193 IPC_MESSAGE_ROUTED1(ViewHostMsg_WindowlessPluginDummyWindowDestroyed
,
1194 gfx::NativeViewId
/* dummy_activation_window */)
1196 // Asks the browser for the user's monitor profile.
1197 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetMonitorColorProfile
,
1198 std::vector
<char> /* profile */)
1201 // Get the list of proxies to use for |url|, as a semicolon delimited list
1202 // of "<TYPE> <HOST>:<PORT>" | "DIRECT".
1203 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_ResolveProxy
,
1206 std::string
/* proxy list */)
1208 // A renderer sends this to the browser process when it wants to create a
1209 // worker. The browser will create the worker process if necessary, and
1210 // will return the route id on success. On error returns MSG_ROUTING_NONE.
1211 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_CreateWorker
,
1212 ViewHostMsg_CreateWorker_Params
,
1215 // A renderer sends this to the browser process when a document has been
1216 // detached. The browser will use this to constrain the lifecycle of worker
1217 // processes (SharedWorkers are shut down when their last associated document
1219 IPC_MESSAGE_CONTROL1(ViewHostMsg_DocumentDetached
,
1220 uint64
/* document_id */)
1222 // Wraps an IPC message that's destined to the worker on the renderer->browser
1224 IPC_MESSAGE_CONTROL1(ViewHostMsg_ForwardToWorker
,
1225 IPC::Message
/* message */)
1227 // Tells the browser that a specific Appcache manifest in the current page
1229 IPC_MESSAGE_ROUTED2(ViewHostMsg_AppCacheAccessed
,
1230 GURL
/* manifest url */,
1231 bool /* blocked by policy */)
1233 // Initiates a download based on user actions like 'ALT+click'.
1234 IPC_MESSAGE_CONTROL4(ViewHostMsg_DownloadUrl
,
1235 int /* render_view_id */,
1237 content::Referrer
/* referrer */,
1238 base::string16
/* suggested_name */)
1240 // Used to go to the session history entry at the given offset (ie, -1 will
1241 // return the "back" item).
1242 IPC_MESSAGE_ROUTED1(ViewHostMsg_GoToEntryAtOffset
,
1243 int /* offset (from current) of history item to get */)
1245 // Sent from an inactive renderer for the browser to route to the active
1246 // renderer, instructing it to close.
1247 IPC_MESSAGE_ROUTED0(ViewHostMsg_RouteCloseEvent
)
1249 // Notifies that the preferred size of the content changed.
1250 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidContentsPreferredSizeChange
,
1251 gfx::Size
/* pref_size */)
1253 // Notifies whether there are JavaScript touch event handlers or not.
1254 IPC_MESSAGE_ROUTED1(ViewHostMsg_HasTouchEventHandlers
,
1255 bool /* has_handlers */)
1257 // A message from HTML-based UI. When (trusted) Javascript calls
1258 // send(message, args), this message is sent to the browser.
1259 IPC_MESSAGE_ROUTED3(ViewHostMsg_WebUISend
,
1260 GURL
/* source_url */,
1261 std::string
/* message */,
1262 base::ListValue
/* args */)
1264 #if defined(ENABLE_PLUGINS)
1265 // A renderer sends this to the browser process when it wants to create a ppapi
1266 // plugin. The browser will create the plugin process if necessary, and will
1267 // return a handle to the channel on success.
1269 // The plugin_child_id is the ChildProcessHost ID assigned in the browser
1270 // process. This ID is valid only in the context of the browser process and is
1271 // used to identify the proper process when the renderer notifies it that the
1274 // On error an empty string and null handles are returned.
1275 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_OpenChannelToPepperPlugin
,
1276 base::FilePath
/* path */,
1277 IPC::ChannelHandle
/* handle to channel */,
1278 base::ProcessId
/* plugin_pid */,
1279 int /* plugin_child_id */)
1281 // Notification that a plugin has created a new plugin instance. The parameters
1283 // -The plugin process ID that we're creating the instance for.
1284 // -The instance ID of the instance being created.
1285 // -A PepperRendererInstanceData struct which contains properties from the
1286 // renderer which are associated with the plugin instance. This includes the
1287 // routing ID of the associated render view and the URL of plugin.
1288 // -Whether the plugin we're creating an instance for is external or internal.
1290 // This message must be sync even though it returns no parameters to avoid
1291 // a race condition with the plugin process. The plugin process sends messages
1292 // to the browser that assume the browser knows about the instance. We need to
1293 // make sure that the browser actually knows about the instance before we tell
1294 // the plugin to run.
1295 IPC_SYNC_MESSAGE_CONTROL4_0(
1296 ViewHostMsg_DidCreateOutOfProcessPepperInstance
,
1297 int /* plugin_child_id */,
1298 int32
/* pp_instance */,
1299 content::PepperRendererInstanceData
/* creation_data */,
1300 bool /* is_external */)
1302 // Notification that a plugin has destroyed an instance. This is the opposite of
1303 // the "DidCreate" message above.
1304 IPC_MESSAGE_CONTROL3(ViewHostMsg_DidDeleteOutOfProcessPepperInstance
,
1305 int /* plugin_child_id */,
1306 int32
/* pp_instance */,
1307 bool /* is_external */)
1309 // Message from the renderer to the browser indicating the in-process instance
1310 // has been created.
1311 IPC_MESSAGE_CONTROL2(ViewHostMsg_DidCreateInProcessInstance
,
1312 int32
/* instance */,
1313 content::PepperRendererInstanceData
/* instance_data */)
1315 // Message from the renderer to the browser indicating the in-process instance
1316 // has been destroyed.
1317 IPC_MESSAGE_CONTROL1(ViewHostMsg_DidDeleteInProcessInstance
,
1318 int32
/* instance */)
1320 // A renderer sends this to the browser process when it wants to
1321 // create a ppapi broker. The browser will create the broker process
1322 // if necessary, and will return a handle to the channel on success.
1323 // On error an empty string is returned.
1324 // The browser will respond with ViewMsg_PpapiBrokerChannelCreated.
1325 IPC_MESSAGE_CONTROL2(ViewHostMsg_OpenChannelToPpapiBroker
,
1326 int /* routing_id */,
1327 base::FilePath
/* path */)
1329 // A renderer sends this to the browser process when it wants to access a PPAPI
1330 // broker. In contrast to ViewHostMsg_OpenChannelToPpapiBroker, this is called
1331 // for every connection.
1332 // The browser will respond with ViewMsg_PpapiBrokerPermissionResult.
1333 IPC_MESSAGE_ROUTED3(ViewHostMsg_RequestPpapiBrokerPermission
,
1334 int /* routing_id */,
1335 GURL
/* document_url */,
1336 base::FilePath
/* plugin_path */)
1338 // A renderer sends this to the browser process when it throttles or unthrottles
1339 // a plugin instance for the Plugin Power Saver feature.
1340 IPC_MESSAGE_CONTROL3(ViewHostMsg_PluginInstanceThrottleStateChange
,
1341 int /* plugin_child_id */,
1342 int32
/* pp_instance */,
1343 bool /* is_throttled */)
1344 #endif // defined(ENABLE_PLUGINS)
1346 // Send the tooltip text for the current mouse position to the browser.
1347 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetTooltipText
,
1348 base::string16
/* tooltip text string */,
1349 blink::WebTextDirection
/* text direction hint */)
1351 // Notification that the text selection has changed.
1352 // Note: The secound parameter is the character based offset of the
1354 // text in the document.
1355 IPC_MESSAGE_ROUTED3(ViewHostMsg_SelectionChanged
,
1356 base::string16
/* text covers the selection range */,
1357 size_t /* the offset of the text in the document */,
1358 gfx::Range
/* selection range in the document */)
1360 // Notification that the selection bounds have changed.
1361 IPC_MESSAGE_ROUTED1(ViewHostMsg_SelectionBoundsChanged
,
1362 ViewHostMsg_SelectionBounds_Params
)
1364 // Asks the browser to display the file chooser. The result is returned in a
1365 // ViewMsg_RunFileChooserResponse message.
1366 IPC_MESSAGE_ROUTED1(ViewHostMsg_RunFileChooser
,
1367 content::FileChooserParams
)
1369 // Asks the browser to enumerate a directory. This is equivalent to running
1370 // the file chooser in directory-enumeration mode and having the user select
1371 // the given directory. The result is returned in a
1372 // ViewMsg_EnumerateDirectoryResponse message.
1373 IPC_MESSAGE_ROUTED2(ViewHostMsg_EnumerateDirectory
,
1374 int /* request_id */,
1375 base::FilePath
/* file_path */)
1377 // Asks the browser to save a image (for <canvas> or <img>) from a data URL.
1378 // Note: |data_url| is the contents of a data:URL, and that it's represented as
1379 // a string only to work around size limitations for GURLs in IPC messages.
1380 IPC_MESSAGE_CONTROL2(ViewHostMsg_SaveImageFromDataURL
,
1381 int /* render_view_id */,
1382 std::string
/* data_url */)
1384 // Tells the browser to move the focus to the next (previous if reverse is
1385 // true) focusable element.
1386 IPC_MESSAGE_ROUTED1(ViewHostMsg_TakeFocus
,
1389 // Required for opening a date/time dialog
1390 IPC_MESSAGE_ROUTED1(ViewHostMsg_OpenDateTimeDialog
,
1391 ViewHostMsg_DateTimeDialogValue_Params
/* value */)
1393 IPC_MESSAGE_ROUTED4(ViewHostMsg_TextInputTypeChanged
,
1394 ui::TextInputType
/* TextInputType of the focused node */,
1395 ui::TextInputMode
/* TextInputMode of the focused node */,
1396 bool /* can_compose_inline in the focused node */,
1397 int /* flags in the focused node */)
1399 // Required for updating text input state.
1400 IPC_MESSAGE_ROUTED1(ViewHostMsg_TextInputStateChanged
,
1401 ViewHostMsg_TextInputState_Params
/* input state params */)
1403 // Sent when the renderer changes the zoom level for a particular url, so the
1404 // browser can update its records. If the view is a plugin doc, then url is
1405 // used to update the zoom level for all pages in that site. Otherwise, the
1406 // render view's id is used so that only the menu is updated.
1407 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidZoomURL
,
1408 double /* zoom_level */,
1411 // Sent when the renderer changes its page scale factor and whether or not the
1412 // page scale factor is one changes.
1413 IPC_MESSAGE_ROUTED1(ViewHostMsg_PageScaleFactorIsOneChanged
, bool /* is_one */)
1415 // Updates the minimum/maximum allowed zoom percent for this tab from the
1416 // default values. If |remember| is true, then the zoom setting is applied to
1417 // other pages in the site and is saved, otherwise it only applies to this
1419 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateZoomLimits
,
1420 int /* minimum_percent */,
1421 int /* maximum_percent */)
1423 // Notify the browser that this render process can or can't be suddenly
1425 IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged
,
1428 IPC_MESSAGE_ROUTED3(
1429 ViewHostMsg_SwapCompositorFrame
,
1430 uint32
/* output_surface_id */,
1431 cc::CompositorFrame
/* frame */,
1432 std::vector
<IPC::Message
> /* messages_to_deliver_with_frame */)
1434 //---------------------------------------------------------------------------
1435 // Request for cryptographic operation messages:
1436 // These are messages from the renderer to the browser to perform a
1437 // cryptographic operation.
1439 // Asks the browser process to generate a keypair for grabbing a client
1440 // certificate from a CA (<keygen> tag), and returns the signed public
1441 // key and challenge string.
1442 IPC_SYNC_MESSAGE_CONTROL3_1(ViewHostMsg_Keygen
,
1443 uint32
/* key size index */,
1444 std::string
/* challenge string */,
1445 GURL
/* URL of requestor */,
1446 std::string
/* signed public key and challenge */)
1448 // Message sent from the renderer to the browser to request that the browser
1449 // cache |data| associated with |url| and |expected_response_time|.
1450 IPC_MESSAGE_CONTROL3(ViewHostMsg_DidGenerateCacheableMetadata
,
1452 base::Time
/* expected_response_time */,
1453 std::vector
<char> /* data */)
1455 // Register a new handler for URL requests with the given scheme.
1456 IPC_MESSAGE_ROUTED4(ViewHostMsg_RegisterProtocolHandler
,
1457 std::string
/* scheme */,
1459 base::string16
/* title */,
1460 bool /* user_gesture */)
1462 // Unregister the registered handler for URL requests with the given scheme.
1463 IPC_MESSAGE_ROUTED3(ViewHostMsg_UnregisterProtocolHandler
,
1464 std::string
/* scheme */,
1466 bool /* user_gesture */)
1468 // Send back a string to be recorded by UserMetrics.
1469 IPC_MESSAGE_CONTROL1(ViewHostMsg_UserMetricsRecordAction
,
1470 std::string
/* action */)
1472 // Notifies the browser that the page was or was not saved as MHTML.
1473 IPC_MESSAGE_CONTROL2(ViewHostMsg_SavedPageAsMHTML
,
1475 int64
/* size of the MHTML file, -1 if error */)
1477 IPC_MESSAGE_ROUTED3(ViewHostMsg_SendCurrentPageAllSavableResourceLinks
,
1478 std::vector
<GURL
> /* all savable resource links */,
1479 std::vector
<content::Referrer
> /* all referrers */,
1480 std::vector
<GURL
> /* all frame links */)
1482 IPC_MESSAGE_ROUTED3(ViewHostMsg_SendSerializedHtmlData
,
1483 GURL
/* frame's url */,
1484 std::string
/* data buffer */,
1485 int32
/* complete status */)
1487 // Notifies the browser of an event occurring in the media pipeline.
1488 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvents
,
1489 std::vector
<media::MediaLogEvent
> /* events */)
1491 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message
1493 // |privileged| is used by Pepper Flash. If this flag is set to true, we won't
1494 // pop up a bubble to ask for user permission or take mouse lock content into
1496 IPC_MESSAGE_ROUTED3(ViewHostMsg_LockMouse
,
1497 bool /* user_gesture */,
1498 bool /* last_unlocked_by_target */,
1499 bool /* privileged */)
1501 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent
1502 // whenever the mouse is unlocked (which may or may not be caused by
1503 // ViewHostMsg_UnlockMouse).
1504 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse
)
1506 // Notifies that multiple touch targets may have been pressed, and to show
1507 // the disambiguation popup.
1508 IPC_MESSAGE_ROUTED3(ViewHostMsg_ShowDisambiguationPopup
,
1509 gfx::Rect
, /* Border of touched targets */
1510 gfx::Size
, /* Size of zoomed image */
1511 cc::SharedBitmapId
/* id */)
1513 // Sent by the renderer process to check whether client 3D APIs
1514 // (Pepper 3D, WebGL) are explicitly blocked.
1515 IPC_SYNC_MESSAGE_CONTROL3_1(ViewHostMsg_Are3DAPIsBlocked
,
1516 int /* render_view_id */,
1517 GURL
/* top_origin_url */,
1518 content::ThreeDAPIType
/* requester */,
1521 // Sent by the renderer process to indicate that a context was lost by
1522 // client 3D content (Pepper 3D, WebGL) running on the page at the
1524 IPC_MESSAGE_CONTROL3(ViewHostMsg_DidLose3DContext
,
1525 GURL
/* top_origin_url */,
1526 content::ThreeDAPIType
/* context_type */,
1527 int /* arb_robustness_status_code */)
1529 // Notifies the browser that document has parsed the body. This is used by the
1530 // ResourceScheduler as an indication that bandwidth contention won't block
1532 IPC_MESSAGE_ROUTED0(ViewHostMsg_WillInsertBody
)
1534 // Notification that the urls for the favicon of a site has been determined.
1535 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateFaviconURL
,
1536 std::vector
<content::FaviconURL
> /* candidates */)
1538 // Message sent from renderer to the browser when the element that is focused
1539 // has been touched. A bool is passed in this message which indicates if the
1540 // node is editable.
1541 IPC_MESSAGE_ROUTED1(ViewHostMsg_FocusedNodeTouched
,
1542 bool /* editable */)
1544 // Message sent from the renderer to the browser when an HTML form has failed
1545 // validation constraints.
1546 IPC_MESSAGE_ROUTED3(ViewHostMsg_ShowValidationMessage
,
1547 gfx::Rect
/* anchor rectangle in root view coordinate */,
1548 base::string16
/* validation message */,
1549 base::string16
/* supplemental text */)
1551 // Message sent from the renderer to the browser when a HTML form validation
1552 // message should be hidden from view.
1553 IPC_MESSAGE_ROUTED0(ViewHostMsg_HideValidationMessage
)
1555 // Message sent from the renderer to the browser when the suggested co-ordinates
1556 // of the anchor for a HTML form validation message have changed.
1557 IPC_MESSAGE_ROUTED1(ViewHostMsg_MoveValidationMessage
,
1558 gfx::Rect
/* anchor rectangle in root view coordinate */)
1560 #if defined(OS_ANDROID)
1561 // Response to ViewMsg_FindMatchRects.
1563 // |version| will contain the current version number of the renderer's find
1564 // match list (incremented whenever they change), which should be passed in the
1565 // next call to ViewMsg_FindMatchRects.
1567 // |rects| will either contain a list of the enclosing rects of all matches
1568 // found by the most recent Find operation, or will be empty if |version| is not
1569 // greater than the |current_version| passed to ViewMsg_FindMatchRects (hence
1570 // your locally cached rects should still be valid). The rect coords will be
1571 // custom normalized fractions of the document size. The rects will be sorted by
1572 // frame traversal order starting in the main frame, then by dom order.
1574 // |active_rect| will contain the bounding box of the active find-in-page match
1575 // marker, in similarly normalized coords (or an empty rect if there isn't one).
1576 IPC_MESSAGE_ROUTED3(ViewHostMsg_FindMatchRects_Reply
,
1578 std::vector
<gfx::RectF
> /* rects */,
1579 gfx::RectF
/* active_rect */)
1581 // Start an android intent with the given URI.
1582 IPC_MESSAGE_ROUTED1(ViewHostMsg_StartContentIntent
,
1583 GURL
/* content_url */)
1585 // Message sent when the renderer changed the background color for the view.
1586 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidChangeBodyBackgroundColor
,
1587 uint32
/* bg_color */)
1589 // This message runs the MediaCodec for decoding audio for webaudio.
1590 IPC_MESSAGE_CONTROL3(ViewHostMsg_RunWebAudioMediaCodec
,
1591 base::SharedMemoryHandle
/* encoded_data_handle */,
1592 base::FileDescriptor
/* pcm_output */,
1593 uint32_t /* data_size*/)
1595 // Reply to the ViewMsg_ExtractSmartClipData message.
1596 IPC_MESSAGE_ROUTED3(ViewHostMsg_SmartClipDataExtracted
,
1597 base::string16
/* text */,
1598 base::string16
/* html */,
1599 gfx::Rect
/* rect */)
1601 // Notifies that an unhandled tap has occurred at the specified x,y position
1602 // and that the UI may need to be triggered.
1603 IPC_MESSAGE_ROUTED2(ViewHostMsg_ShowUnhandledTapUIIfNeeded
,
1607 #elif defined(OS_MACOSX)
1608 // Request that the browser load a font into shared memory for us.
1609 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LoadFont
,
1610 FontDescriptor
/* font to load */,
1611 uint32
/* buffer size */,
1612 base::SharedMemoryHandle
/* font data */,
1613 uint32
/* font id */)
1615 // Informs the browser that a plugin has gained or lost focus.
1616 IPC_MESSAGE_ROUTED2(ViewHostMsg_PluginFocusChanged
,
1618 int /* plugin_id */)
1620 // Instructs the browser to start plugin IME.
1621 IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme
)
1623 // Receives content of a web page as plain text.
1624 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted
, std::string
);
1626 #elif defined(OS_WIN)
1627 // Request that the given font characters be loaded by the browser so it's
1628 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters
1630 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters
,
1631 LOGFONT
/* font_data */,
1632 base::string16
/* characters */)
1635 // Adding a new message? Stick to the sort order above: first platform
1636 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
1637 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.