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/media/media_param_traits.h"
19 #include "content/common/navigation_gesture.h"
20 #include "content/common/view_message_enums.h"
21 #include "content/common/webplugin_geometry.h"
22 #include "content/public/common/common_param_traits.h"
23 #include "content/public/common/favicon_url.h"
24 #include "content/public/common/file_chooser_file_info.h"
25 #include "content/public/common/file_chooser_params.h"
26 #include "content/public/common/menu_item.h"
27 #include "content/public/common/message_port_types.h"
28 #include "content/public/common/page_state.h"
29 #include "content/public/common/page_zoom.h"
30 #include "content/public/common/referrer.h"
31 #include "content/public/common/renderer_preferences.h"
32 #include "content/public/common/stop_find_action.h"
33 #include "content/public/common/three_d_api_types.h"
34 #include "content/public/common/window_container_type.h"
35 #include "ipc/ipc_channel_handle.h"
36 #include "ipc/ipc_message_macros.h"
37 #include "ipc/ipc_platform_file.h"
38 #include "media/audio/audio_parameters.h"
39 #include "media/base/channel_layout.h"
40 #include "media/base/media_log_event.h"
41 #include "net/base/network_change_notifier.h"
42 #include "third_party/WebKit/public/platform/WebDisplayMode.h"
43 #include "third_party/WebKit/public/platform/WebFloatPoint.h"
44 #include "third_party/WebKit/public/platform/WebFloatRect.h"
45 #include "third_party/WebKit/public/platform/WebScreenInfo.h"
46 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScreenOrientationType.h"
47 #include "third_party/WebKit/public/web/WebDeviceEmulationParams.h"
48 #include "third_party/WebKit/public/web/WebFindOptions.h"
49 #include "third_party/WebKit/public/web/WebMediaPlayerAction.h"
50 #include "third_party/WebKit/public/web/WebPluginAction.h"
51 #include "third_party/WebKit/public/web/WebPopupType.h"
52 #include "third_party/WebKit/public/web/WebTextDirection.h"
53 #include "third_party/skia/include/core/SkBitmap.h"
54 #include "ui/base/ime/text_input_mode.h"
55 #include "ui/base/ime/text_input_type.h"
56 #include "ui/base/ui_base_types.h"
57 #include "ui/gfx/geometry/point.h"
58 #include "ui/gfx/geometry/rect.h"
59 #include "ui/gfx/geometry/rect_f.h"
60 #include "ui/gfx/geometry/vector2d.h"
61 #include "ui/gfx/geometry/vector2d_f.h"
62 #include "ui/gfx/ipc/gfx_param_traits.h"
63 #include "ui/gfx/range/range.h"
65 #if defined(OS_MACOSX)
66 #include "content/common/mac/font_descriptor.h"
67 #include "third_party/WebKit/public/web/mac/WebScrollbarTheme.h"
70 #if defined(ENABLE_PLUGINS)
71 #include "content/common/pepper_renderer_instance_data.h"
74 #undef IPC_MESSAGE_EXPORT
75 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
77 #define IPC_MESSAGE_START ViewMsgStart
79 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebDeviceEmulationParams::ScreenPosition
,
80 blink::WebDeviceEmulationParams::ScreenPositionLast
)
81 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebMediaPlayerAction::Type
,
82 blink::WebMediaPlayerAction::Type::TypeLast
)
83 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPluginAction::Type
,
84 blink::WebPluginAction::Type::TypeLast
)
85 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPopupType
,
86 blink::WebPopupType::WebPopupTypeLast
)
87 // TODO(dcheng): Update WebScreenOrientationType to have a "Last" enum member.
88 IPC_ENUM_TRAITS_MIN_MAX_VALUE(blink::WebScreenOrientationType
,
89 blink::WebScreenOrientationUndefined
,
90 blink::WebScreenOrientationLandscapeSecondary
)
91 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebTextDirection
,
92 blink::WebTextDirection::WebTextDirectionLast
)
93 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebDisplayMode
,
94 blink::WebDisplayMode::WebDisplayModeLast
)
95 IPC_ENUM_TRAITS_MAX_VALUE(WindowContainerType
, WINDOW_CONTAINER_TYPE_MAX_VALUE
)
96 IPC_ENUM_TRAITS(content::FaviconURL::IconType
)
97 IPC_ENUM_TRAITS(content::FileChooserParams::Mode
)
98 IPC_ENUM_TRAITS(content::MenuItem::Type
)
99 IPC_ENUM_TRAITS_MAX_VALUE(content::NavigationGesture
,
100 content::NavigationGestureLast
)
101 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::PageZoom
,
102 content::PageZoom::PAGE_ZOOM_OUT
,
103 content::PageZoom::PAGE_ZOOM_IN
)
104 IPC_ENUM_TRAITS_MAX_VALUE(gfx::FontRenderParams::Hinting
,
105 gfx::FontRenderParams::HINTING_MAX
)
106 IPC_ENUM_TRAITS_MAX_VALUE(gfx::FontRenderParams::SubpixelRendering
,
107 gfx::FontRenderParams::SUBPIXEL_RENDERING_MAX
)
108 IPC_ENUM_TRAITS_MAX_VALUE(content::TapMultipleTargetsStrategy
,
109 content::TAP_MULTIPLE_TARGETS_STRATEGY_MAX
)
110 IPC_ENUM_TRAITS_MAX_VALUE(content::StopFindAction
,
111 content::STOP_FIND_ACTION_LAST
)
112 IPC_ENUM_TRAITS_MAX_VALUE(content::ThreeDAPIType
,
113 content::THREE_D_API_TYPE_LAST
)
114 IPC_ENUM_TRAITS_MAX_VALUE(media::MediaLogEvent::Type
,
115 media::MediaLogEvent::TYPE_LAST
)
116 IPC_ENUM_TRAITS_MAX_VALUE(ui::TextInputMode
, ui::TEXT_INPUT_MODE_MAX
)
117 IPC_ENUM_TRAITS_MAX_VALUE(ui::TextInputType
, ui::TEXT_INPUT_TYPE_MAX
)
119 #if defined(OS_MACOSX)
120 IPC_ENUM_TRAITS_MAX_VALUE(
121 blink::ScrollbarButtonsPlacement
,
122 blink::ScrollbarButtonsPlacement::ScrollbarButtonsPlacementLast
)
124 IPC_ENUM_TRAITS_MAX_VALUE(blink::ScrollerStyle
, blink::ScrollerStyleOverlay
)
126 IPC_STRUCT_TRAITS_BEGIN(FontDescriptor
)
127 IPC_STRUCT_TRAITS_MEMBER(font_name
)
128 IPC_STRUCT_TRAITS_MEMBER(font_point_size
)
129 IPC_STRUCT_TRAITS_END()
132 IPC_STRUCT_TRAITS_BEGIN(blink::WebFindOptions
)
133 IPC_STRUCT_TRAITS_MEMBER(forward
)
134 IPC_STRUCT_TRAITS_MEMBER(matchCase
)
135 IPC_STRUCT_TRAITS_MEMBER(findNext
)
136 IPC_STRUCT_TRAITS_END()
138 IPC_STRUCT_TRAITS_BEGIN(blink::WebMediaPlayerAction
)
139 IPC_STRUCT_TRAITS_MEMBER(type
)
140 IPC_STRUCT_TRAITS_MEMBER(enable
)
141 IPC_STRUCT_TRAITS_END()
143 IPC_STRUCT_TRAITS_BEGIN(blink::WebPluginAction
)
144 IPC_STRUCT_TRAITS_MEMBER(type
)
145 IPC_STRUCT_TRAITS_MEMBER(enable
)
146 IPC_STRUCT_TRAITS_END()
148 IPC_STRUCT_TRAITS_BEGIN(blink::WebFloatPoint
)
149 IPC_STRUCT_TRAITS_MEMBER(x
)
150 IPC_STRUCT_TRAITS_MEMBER(y
)
151 IPC_STRUCT_TRAITS_END()
153 IPC_STRUCT_TRAITS_BEGIN(blink::WebFloatRect
)
154 IPC_STRUCT_TRAITS_MEMBER(x
)
155 IPC_STRUCT_TRAITS_MEMBER(y
)
156 IPC_STRUCT_TRAITS_MEMBER(width
)
157 IPC_STRUCT_TRAITS_MEMBER(height
)
158 IPC_STRUCT_TRAITS_END()
160 IPC_STRUCT_TRAITS_BEGIN(blink::WebSize
)
161 IPC_STRUCT_TRAITS_MEMBER(width
)
162 IPC_STRUCT_TRAITS_MEMBER(height
)
163 IPC_STRUCT_TRAITS_END()
165 IPC_STRUCT_TRAITS_BEGIN(blink::WebDeviceEmulationParams
)
166 IPC_STRUCT_TRAITS_MEMBER(screenPosition
)
167 IPC_STRUCT_TRAITS_MEMBER(screenSize
)
168 IPC_STRUCT_TRAITS_MEMBER(viewPosition
)
169 IPC_STRUCT_TRAITS_MEMBER(deviceScaleFactor
)
170 IPC_STRUCT_TRAITS_MEMBER(viewSize
)
171 IPC_STRUCT_TRAITS_MEMBER(fitToView
)
172 IPC_STRUCT_TRAITS_MEMBER(offset
)
173 IPC_STRUCT_TRAITS_MEMBER(scale
)
174 IPC_STRUCT_TRAITS_END()
176 IPC_STRUCT_TRAITS_BEGIN(blink::WebScreenInfo
)
177 IPC_STRUCT_TRAITS_MEMBER(deviceScaleFactor
)
178 IPC_STRUCT_TRAITS_MEMBER(depth
)
179 IPC_STRUCT_TRAITS_MEMBER(depthPerComponent
)
180 IPC_STRUCT_TRAITS_MEMBER(isMonochrome
)
181 IPC_STRUCT_TRAITS_MEMBER(rect
)
182 IPC_STRUCT_TRAITS_MEMBER(availableRect
)
183 IPC_STRUCT_TRAITS_MEMBER(orientationType
)
184 IPC_STRUCT_TRAITS_MEMBER(orientationAngle
)
185 IPC_STRUCT_TRAITS_END()
187 IPC_STRUCT_TRAITS_BEGIN(content::MenuItem
)
188 IPC_STRUCT_TRAITS_MEMBER(label
)
189 IPC_STRUCT_TRAITS_MEMBER(tool_tip
)
190 IPC_STRUCT_TRAITS_MEMBER(type
)
191 IPC_STRUCT_TRAITS_MEMBER(action
)
192 IPC_STRUCT_TRAITS_MEMBER(rtl
)
193 IPC_STRUCT_TRAITS_MEMBER(has_directional_override
)
194 IPC_STRUCT_TRAITS_MEMBER(enabled
)
195 IPC_STRUCT_TRAITS_MEMBER(checked
)
196 IPC_STRUCT_TRAITS_MEMBER(submenu
)
197 IPC_STRUCT_TRAITS_END()
199 IPC_STRUCT_TRAITS_BEGIN(content::DateTimeSuggestion
)
200 IPC_STRUCT_TRAITS_MEMBER(value
)
201 IPC_STRUCT_TRAITS_MEMBER(localized_value
)
202 IPC_STRUCT_TRAITS_MEMBER(label
)
203 IPC_STRUCT_TRAITS_END()
205 IPC_STRUCT_TRAITS_BEGIN(content::FaviconURL
)
206 IPC_STRUCT_TRAITS_MEMBER(icon_url
)
207 IPC_STRUCT_TRAITS_MEMBER(icon_type
)
208 IPC_STRUCT_TRAITS_MEMBER(icon_sizes
)
209 IPC_STRUCT_TRAITS_END()
211 IPC_STRUCT_TRAITS_BEGIN(content::FileChooserFileInfo
)
212 IPC_STRUCT_TRAITS_MEMBER(file_path
)
213 IPC_STRUCT_TRAITS_MEMBER(display_name
)
214 IPC_STRUCT_TRAITS_MEMBER(file_system_url
)
215 IPC_STRUCT_TRAITS_MEMBER(modification_time
)
216 IPC_STRUCT_TRAITS_MEMBER(length
)
217 IPC_STRUCT_TRAITS_MEMBER(is_directory
)
218 IPC_STRUCT_TRAITS_END()
220 IPC_STRUCT_TRAITS_BEGIN(content::FileChooserParams
)
221 IPC_STRUCT_TRAITS_MEMBER(mode
)
222 IPC_STRUCT_TRAITS_MEMBER(title
)
223 IPC_STRUCT_TRAITS_MEMBER(default_file_name
)
224 IPC_STRUCT_TRAITS_MEMBER(accept_types
)
225 IPC_STRUCT_TRAITS_MEMBER(need_local_path
)
226 #if defined(OS_ANDROID)
227 IPC_STRUCT_TRAITS_MEMBER(capture
)
229 IPC_STRUCT_TRAITS_END()
231 #if defined(ENABLE_PLUGINS)
232 IPC_STRUCT_TRAITS_BEGIN(content::PepperRendererInstanceData
)
233 IPC_STRUCT_TRAITS_MEMBER(render_process_id
)
234 IPC_STRUCT_TRAITS_MEMBER(render_frame_id
)
235 IPC_STRUCT_TRAITS_MEMBER(document_url
)
236 IPC_STRUCT_TRAITS_MEMBER(plugin_url
)
237 IPC_STRUCT_TRAITS_MEMBER(is_potentially_secure_plugin_context
)
238 IPC_STRUCT_TRAITS_END()
241 IPC_STRUCT_TRAITS_BEGIN(content::RendererPreferences
)
242 IPC_STRUCT_TRAITS_MEMBER(can_accept_load_drops
)
243 IPC_STRUCT_TRAITS_MEMBER(should_antialias_text
)
244 IPC_STRUCT_TRAITS_MEMBER(hinting
)
245 IPC_STRUCT_TRAITS_MEMBER(use_autohinter
)
246 IPC_STRUCT_TRAITS_MEMBER(use_bitmaps
)
247 IPC_STRUCT_TRAITS_MEMBER(subpixel_rendering
)
248 IPC_STRUCT_TRAITS_MEMBER(use_subpixel_positioning
)
249 IPC_STRUCT_TRAITS_MEMBER(focus_ring_color
)
250 IPC_STRUCT_TRAITS_MEMBER(thumb_active_color
)
251 IPC_STRUCT_TRAITS_MEMBER(thumb_inactive_color
)
252 IPC_STRUCT_TRAITS_MEMBER(track_color
)
253 IPC_STRUCT_TRAITS_MEMBER(active_selection_bg_color
)
254 IPC_STRUCT_TRAITS_MEMBER(active_selection_fg_color
)
255 IPC_STRUCT_TRAITS_MEMBER(inactive_selection_bg_color
)
256 IPC_STRUCT_TRAITS_MEMBER(inactive_selection_fg_color
)
257 IPC_STRUCT_TRAITS_MEMBER(browser_handles_non_local_top_level_requests
)
258 IPC_STRUCT_TRAITS_MEMBER(browser_handles_all_top_level_requests
)
259 IPC_STRUCT_TRAITS_MEMBER(caret_blink_interval
)
260 IPC_STRUCT_TRAITS_MEMBER(use_custom_colors
)
261 IPC_STRUCT_TRAITS_MEMBER(enable_referrers
)
262 IPC_STRUCT_TRAITS_MEMBER(enable_do_not_track
)
263 IPC_STRUCT_TRAITS_MEMBER(enable_webrtc_multiple_routes
)
264 IPC_STRUCT_TRAITS_MEMBER(default_zoom_level
)
265 IPC_STRUCT_TRAITS_MEMBER(user_agent_override
)
266 IPC_STRUCT_TRAITS_MEMBER(accept_languages
)
267 IPC_STRUCT_TRAITS_MEMBER(report_frame_name_changes
)
268 IPC_STRUCT_TRAITS_MEMBER(tap_multiple_targets_strategy
)
269 IPC_STRUCT_TRAITS_MEMBER(disable_client_blocked_error_page
)
270 IPC_STRUCT_TRAITS_MEMBER(plugin_fullscreen_allowed
)
271 IPC_STRUCT_TRAITS_MEMBER(use_video_overlay_for_embedded_encrypted_video
)
272 IPC_STRUCT_TRAITS_MEMBER(use_view_overlay_for_all_video
)
273 IPC_STRUCT_TRAITS_MEMBER(network_contry_iso
)
275 IPC_STRUCT_TRAITS_MEMBER(caption_font_family_name
)
276 IPC_STRUCT_TRAITS_MEMBER(caption_font_height
)
277 IPC_STRUCT_TRAITS_MEMBER(small_caption_font_family_name
)
278 IPC_STRUCT_TRAITS_MEMBER(small_caption_font_height
)
279 IPC_STRUCT_TRAITS_MEMBER(menu_font_family_name
)
280 IPC_STRUCT_TRAITS_MEMBER(menu_font_height
)
281 IPC_STRUCT_TRAITS_MEMBER(status_font_family_name
)
282 IPC_STRUCT_TRAITS_MEMBER(status_font_height
)
283 IPC_STRUCT_TRAITS_MEMBER(message_font_family_name
)
284 IPC_STRUCT_TRAITS_MEMBER(message_font_height
)
285 IPC_STRUCT_TRAITS_MEMBER(vertical_scroll_bar_width_in_dips
)
286 IPC_STRUCT_TRAITS_MEMBER(horizontal_scroll_bar_height_in_dips
)
287 IPC_STRUCT_TRAITS_MEMBER(arrow_bitmap_height_vertical_scroll_bar_in_dips
)
288 IPC_STRUCT_TRAITS_MEMBER(arrow_bitmap_width_horizontal_scroll_bar_in_dips
)
290 IPC_STRUCT_TRAITS_END()
292 IPC_STRUCT_TRAITS_BEGIN(content::WebPluginGeometry
)
293 IPC_STRUCT_TRAITS_MEMBER(window
)
294 IPC_STRUCT_TRAITS_MEMBER(window_rect
)
295 IPC_STRUCT_TRAITS_MEMBER(clip_rect
)
296 IPC_STRUCT_TRAITS_MEMBER(cutout_rects
)
297 IPC_STRUCT_TRAITS_MEMBER(rects_valid
)
298 IPC_STRUCT_TRAITS_MEMBER(visible
)
299 IPC_STRUCT_TRAITS_END()
301 IPC_STRUCT_TRAITS_BEGIN(media::MediaLogEvent
)
302 IPC_STRUCT_TRAITS_MEMBER(id
)
303 IPC_STRUCT_TRAITS_MEMBER(type
)
304 IPC_STRUCT_TRAITS_MEMBER(params
)
305 IPC_STRUCT_TRAITS_MEMBER(time
)
306 IPC_STRUCT_TRAITS_END()
308 IPC_STRUCT_BEGIN(ViewHostMsg_CreateWindow_Params
)
309 // Routing ID of the view initiating the open.
310 IPC_STRUCT_MEMBER(int, opener_id
)
312 // True if this open request came in the context of a user gesture.
313 IPC_STRUCT_MEMBER(bool, user_gesture
)
315 // Type of window requested.
316 IPC_STRUCT_MEMBER(WindowContainerType
, window_container_type
)
318 // The session storage namespace ID this view should use.
319 IPC_STRUCT_MEMBER(int64
, session_storage_namespace_id
)
321 // The name of the resulting frame that should be created (empty if none
322 // has been specified). UTF8 encoded string.
323 IPC_STRUCT_MEMBER(std::string
, frame_name
)
325 // The routing id of the frame initiating the open.
326 IPC_STRUCT_MEMBER(int, opener_render_frame_id
)
328 // The URL of the frame initiating the open.
329 IPC_STRUCT_MEMBER(GURL
, opener_url
)
331 // The URL of the top frame containing the opener.
332 IPC_STRUCT_MEMBER(GURL
, opener_top_level_frame_url
)
334 // The security origin of the frame initiating the open.
335 IPC_STRUCT_MEMBER(GURL
, opener_security_origin
)
337 // Whether the opener will be suppressed in the new window, in which case
338 // scripting the new window is not allowed.
339 IPC_STRUCT_MEMBER(bool, opener_suppressed
)
341 // Whether the window should be opened in the foreground, background, etc.
342 IPC_STRUCT_MEMBER(WindowOpenDisposition
, disposition
)
344 // The URL that will be loaded in the new window (empty if none has been
346 IPC_STRUCT_MEMBER(GURL
, target_url
)
348 // The referrer that will be used to load |target_url| (empty if none has
350 IPC_STRUCT_MEMBER(content::Referrer
, referrer
)
352 // The window features to use for the new view.
353 IPC_STRUCT_MEMBER(blink::WebWindowFeatures
, features
)
355 // The additional window features to use for the new view. We pass these
356 // separately from |features| above because we cannot serialize WebStrings
358 IPC_STRUCT_MEMBER(std::vector
<base::string16
>, additional_features
)
361 IPC_STRUCT_BEGIN(ViewHostMsg_CreateWorker_Params
)
362 // URL for the worker script.
363 IPC_STRUCT_MEMBER(GURL
, url
)
365 // Name for a SharedWorker, otherwise empty string.
366 IPC_STRUCT_MEMBER(base::string16
, name
)
368 // Security policy used in the worker.
369 IPC_STRUCT_MEMBER(base::string16
, content_security_policy
)
371 // Security policy type used in the worker.
372 IPC_STRUCT_MEMBER(blink::WebContentSecurityPolicyType
, security_policy_type
)
374 // The ID of the parent document (unique within parent renderer).
375 IPC_STRUCT_MEMBER(unsigned long long, document_id
)
377 // RenderFrame routing id used to send messages back to the parent.
378 IPC_STRUCT_MEMBER(int, render_frame_route_id
)
381 IPC_STRUCT_BEGIN(ViewHostMsg_DateTimeDialogValue_Params
)
382 IPC_STRUCT_MEMBER(ui::TextInputType
, dialog_type
)
383 IPC_STRUCT_MEMBER(double, dialog_value
)
384 IPC_STRUCT_MEMBER(double, minimum
)
385 IPC_STRUCT_MEMBER(double, maximum
)
386 IPC_STRUCT_MEMBER(double, step
)
387 IPC_STRUCT_MEMBER(std::vector
<content::DateTimeSuggestion
>, suggestions
)
390 IPC_STRUCT_BEGIN(ViewHostMsg_SelectionBounds_Params
)
391 IPC_STRUCT_MEMBER(gfx::Rect
, anchor_rect
)
392 IPC_STRUCT_MEMBER(blink::WebTextDirection
, anchor_dir
)
393 IPC_STRUCT_MEMBER(gfx::Rect
, focus_rect
)
394 IPC_STRUCT_MEMBER(blink::WebTextDirection
, focus_dir
)
395 IPC_STRUCT_MEMBER(bool, is_anchor_first
)
398 IPC_STRUCT_BEGIN(ViewHostMsg_TextInputState_Params
)
399 // The type of input field
400 IPC_STRUCT_MEMBER(ui::TextInputType
, type
)
402 // The mode of input field
403 IPC_STRUCT_MEMBER(ui::TextInputMode
, mode
)
405 // The flags of the input field (autocorrect, autocomplete, etc.)
406 IPC_STRUCT_MEMBER(int, flags
)
408 // The value of the input field
409 IPC_STRUCT_MEMBER(std::string
, value
)
411 // The cursor position of the current selection start, or the caret position
412 // if nothing is selected
413 IPC_STRUCT_MEMBER(int, selection_start
)
415 // The cursor position of the current selection end, or the caret position
416 // if nothing is selected
417 IPC_STRUCT_MEMBER(int, selection_end
)
419 // The start position of the current composition, or -1 if there is none
420 IPC_STRUCT_MEMBER(int, composition_start
)
422 // The end position of the current composition, or -1 if there is none
423 IPC_STRUCT_MEMBER(int, composition_end
)
425 // Whether or not inline composition can be performed for the current input.
426 IPC_STRUCT_MEMBER(bool, can_compose_inline
)
428 // Whether or not the IME should be shown as a result of this update. Even if
429 // true, the IME will only be shown if the type is appropriate (e.g. not
430 // TEXT_INPUT_TYPE_NONE).
431 IPC_STRUCT_MEMBER(bool, show_ime_if_needed
)
433 // Whether this change is originated from non-IME (e.g. Javascript, Autofill).
434 IPC_STRUCT_MEMBER(bool, is_non_ime_change
)
437 IPC_STRUCT_BEGIN(ViewHostMsg_UpdateRect_Params
)
438 // The size of the RenderView when this message was generated. This is
439 // included so the host knows how large the view is from the perspective of
440 // the renderer process. This is necessary in case a resize operation is in
441 // progress. If auto-resize is enabled, this should update the corresponding
443 IPC_STRUCT_MEMBER(gfx::Size
, view_size
)
445 // New window locations for plugin child windows.
446 IPC_STRUCT_MEMBER(std::vector
<content::WebPluginGeometry
>,
449 // The following describes the various bits that may be set in flags:
451 // ViewHostMsg_UpdateRect_Flags::IS_RESIZE_ACK
452 // Indicates that this is a response to a ViewMsg_Resize message.
454 // ViewHostMsg_UpdateRect_Flags::IS_REPAINT_ACK
455 // Indicates that this is a response to a ViewMsg_Repaint message.
457 // If flags is zero, then this message corresponds to an unsolicited paint
458 // request by the render view. Any of the above bits may be set in flags,
459 // which would indicate that this paint message is an ACK for multiple
461 IPC_STRUCT_MEMBER(int, flags
)
464 IPC_STRUCT_BEGIN(ViewMsg_Resize_Params
)
465 // Information about the screen (dpi, depth, etc..).
466 IPC_STRUCT_MEMBER(blink::WebScreenInfo
, screen_info
)
467 // The size of the renderer.
468 IPC_STRUCT_MEMBER(gfx::Size
, new_size
)
469 // The size of the view's backing surface in non-DPI-adjusted pixels.
470 IPC_STRUCT_MEMBER(gfx::Size
, physical_backing_size
)
471 // Whether or not Blink's viewport size should be shrunk by the height of the
472 // URL-bar (always false on platforms where URL-bar hiding isn't supported).
473 IPC_STRUCT_MEMBER(bool, top_controls_shrink_blink_size
)
474 // The height of the top controls (always 0 on platforms where URL-bar hiding
476 IPC_STRUCT_MEMBER(float, top_controls_height
)
477 // The size of the visible viewport, which may be smaller than the view if the
478 // view is partially occluded (e.g. by a virtual keyboard). The size is in
479 // DPI-adjusted pixels.
480 IPC_STRUCT_MEMBER(gfx::Size
, visible_viewport_size
)
482 IPC_STRUCT_MEMBER(gfx::Rect
, resizer_rect
)
483 // Indicates whether tab-initiated fullscreen was granted.
484 IPC_STRUCT_MEMBER(bool, is_fullscreen_granted
)
486 IPC_STRUCT_MEMBER(blink::WebDisplayMode
, display_mode
)
487 // If set, requests the renderer to reply with a ViewHostMsg_UpdateRect
488 // with the ViewHostMsg_UpdateRect_Flags::IS_RESIZE_ACK bit set in flags.
489 IPC_STRUCT_MEMBER(bool, needs_resize_ack
)
492 IPC_STRUCT_BEGIN(ViewMsg_New_Params
)
493 // Renderer-wide preferences.
494 IPC_STRUCT_MEMBER(content::RendererPreferences
, renderer_preferences
)
496 // Preferences for this view.
497 IPC_STRUCT_MEMBER(content::WebPreferences
, web_preferences
)
499 // The ID of the view to be created.
500 IPC_STRUCT_MEMBER(int32
, view_id
)
502 // The ID of the main frame hosted in the view.
503 IPC_STRUCT_MEMBER(int32
, main_frame_routing_id
)
505 // The ID of the rendering surface.
506 IPC_STRUCT_MEMBER(int32
, surface_id
)
508 // The session storage namespace ID this view should use.
509 IPC_STRUCT_MEMBER(int64
, session_storage_namespace_id
)
511 // The route ID of the opener RenderFrame or RenderFrameProxy, if we need to
512 // set one (MSG_ROUTING_NONE otherwise).
513 IPC_STRUCT_MEMBER(int, opener_frame_route_id
)
515 // Whether the RenderView should initially be swapped out.
516 IPC_STRUCT_MEMBER(bool, swapped_out
)
518 // Carries replicated information, such as frame name and sandbox flags, for
519 // this view's main frame, which will be a proxy in |swapped_out|
520 // views when in --site-per-process mode, or a RenderFrame in all other
522 IPC_STRUCT_MEMBER(content::FrameReplicationState
, replicated_frame_state
)
524 // The ID of the proxy object for the main frame in this view. It is only
525 // used if |swapped_out| is true.
526 IPC_STRUCT_MEMBER(int32
, proxy_routing_id
)
528 // Whether the RenderView should initially be hidden.
529 IPC_STRUCT_MEMBER(bool, hidden
)
531 // Whether the RenderView will never be visible.
532 IPC_STRUCT_MEMBER(bool, never_visible
)
534 // Whether the window associated with this view was created with an opener.
535 IPC_STRUCT_MEMBER(bool, window_was_created_with_opener
)
537 // The initial page ID to use for this view, which must be larger than any
538 // existing navigation that might be loaded in the view. Page IDs are unique
539 // to a view and are only updated by the renderer after this initial value.
540 IPC_STRUCT_MEMBER(int32
, next_page_id
)
542 // The initial renderer size.
543 IPC_STRUCT_MEMBER(ViewMsg_Resize_Params
, initial_size
)
545 // Whether to enable auto-resize.
546 IPC_STRUCT_MEMBER(bool, enable_auto_resize
)
548 // The minimum size to layout the page if auto-resize is enabled.
549 IPC_STRUCT_MEMBER(gfx::Size
, min_size
)
551 // The maximum size to layout the page if auto-resize is enabled.
552 IPC_STRUCT_MEMBER(gfx::Size
, max_size
)
555 #if defined(OS_MACOSX)
556 IPC_STRUCT_BEGIN(ViewMsg_UpdateScrollbarTheme_Params
)
557 IPC_STRUCT_MEMBER(float, initial_button_delay
)
558 IPC_STRUCT_MEMBER(float, autoscroll_button_delay
)
559 IPC_STRUCT_MEMBER(bool, jump_on_track_click
)
560 IPC_STRUCT_MEMBER(blink::ScrollerStyle
, preferred_scroller_style
)
561 IPC_STRUCT_MEMBER(bool, redraw
)
562 IPC_STRUCT_MEMBER(bool, scroll_animation_enabled
)
563 IPC_STRUCT_MEMBER(blink::ScrollbarButtonsPlacement
, button_placement
)
567 // Messages sent from the browser to the renderer.
569 #if defined(OS_ANDROID)
570 // Tells the renderer to cancel an opened date/time dialog.
571 IPC_MESSAGE_ROUTED0(ViewMsg_CancelDateTimeDialog
)
573 // Replaces a date time input field.
574 IPC_MESSAGE_ROUTED1(ViewMsg_ReplaceDateTime
,
575 double /* dialog_value */)
579 // Get all savable resource links from current webpage, include main
580 // frame and sub-frame.
581 IPC_MESSAGE_ROUTED1(ViewMsg_GetAllSavableResourceLinksForCurrentPage
,
582 GURL
/* url of page which is needed to save */)
584 // Get html data by serializing all frames of current page with lists
585 // which contain all resource links that have local copy.
586 IPC_MESSAGE_ROUTED3(ViewMsg_GetSerializedHtmlDataForCurrentPageWithLocalLinks
,
587 std::vector
<GURL
> /* urls that have local copy */,
588 std::vector
<base::FilePath
> /* paths of local copy */,
589 base::FilePath
/* local directory path */)
591 // Tells the render side that a ViewHostMsg_LockMouse message has been
592 // processed. |succeeded| indicates whether the mouse has been successfully
594 IPC_MESSAGE_ROUTED1(ViewMsg_LockMouse_ACK
,
595 bool /* succeeded */)
596 // Tells the render side that the mouse has been unlocked.
597 IPC_MESSAGE_ROUTED0(ViewMsg_MouseLockLost
)
599 // Sent by the browser when the parameters for vsync alignment have changed.
600 IPC_MESSAGE_ROUTED2(ViewMsg_UpdateVSyncParameters
,
601 base::TimeTicks
/* timebase */,
602 base::TimeDelta
/* interval */)
604 // Sent when the history is altered outside of navigation. The history list was
605 // reset to |history_length| length, and the offset was reset to be
607 IPC_MESSAGE_ROUTED2(ViewMsg_SetHistoryOffsetAndLength
,
608 int /* history_offset */,
609 int /* history_length */)
611 // Tells the renderer to create a new view.
612 // This message is slightly different, the view it takes (via
613 // ViewMsg_New_Params) is the view to create, the message itself is sent as a
614 // non-view control message.
615 IPC_MESSAGE_CONTROL1(ViewMsg_New
,
618 // Reply in response to ViewHostMsg_ShowView or ViewHostMsg_ShowWidget.
619 // similar to the new command, but used when the renderer created a view
620 // first, and we need to update it.
621 IPC_MESSAGE_ROUTED0(ViewMsg_CreatingNew_ACK
)
623 // Sends updated preferences to the renderer.
624 IPC_MESSAGE_ROUTED1(ViewMsg_SetRendererPrefs
,
625 content::RendererPreferences
)
627 // This passes a set of webkit preferences down to the renderer.
628 IPC_MESSAGE_ROUTED1(ViewMsg_UpdateWebPreferences
,
629 content::WebPreferences
)
631 // Informs the renderer that the timezone has changed along with a new
633 IPC_MESSAGE_CONTROL1(ViewMsg_TimezoneChange
, std::string
)
635 // Tells the render view to close.
636 // Expects a Close_ACK message when finished.
637 IPC_MESSAGE_ROUTED0(ViewMsg_Close
)
639 // Tells the render view to change its size. A ViewHostMsg_UpdateRect message
640 // is generated in response provided new_size is not empty and not equal to
641 // the view's current size. The generated ViewHostMsg_UpdateRect message will
642 // have the IS_RESIZE_ACK flag set. It also receives the resizer rect so that
643 // we don't have to fetch it every time WebKit asks for it.
644 IPC_MESSAGE_ROUTED1(ViewMsg_Resize
,
645 ViewMsg_Resize_Params
/* params */)
647 // Enables device emulation. See WebDeviceEmulationParams for description.
648 IPC_MESSAGE_ROUTED1(ViewMsg_EnableDeviceEmulation
,
649 blink::WebDeviceEmulationParams
/* params */)
651 // Disables device emulation, enabled previously by EnableDeviceEmulation.
652 IPC_MESSAGE_ROUTED0(ViewMsg_DisableDeviceEmulation
)
654 // Sent to inform the renderer of its screen device color profile. An empty
655 // profile tells the renderer use the default sRGB color profile.
656 IPC_MESSAGE_ROUTED1(ViewMsg_ColorProfile
,
657 std::vector
<char> /* color profile */)
659 // Tells the render view that the resize rect has changed.
660 IPC_MESSAGE_ROUTED1(ViewMsg_ChangeResizeRect
,
661 gfx::Rect
/* resizer_rect */)
663 // Sent to inform the view that it was hidden. This allows it to reduce its
664 // resource utilization.
665 IPC_MESSAGE_ROUTED0(ViewMsg_WasHidden
)
667 // Tells the render view that it is no longer hidden (see WasHidden), and the
668 // render view is expected to respond with a full repaint if needs_repainting
669 // is true. If needs_repainting is false, then this message does not trigger a
670 // message in response.
671 IPC_MESSAGE_ROUTED2(ViewMsg_WasShown
,
672 bool /* needs_repainting */,
673 ui::LatencyInfo
/* latency_info */)
675 // Tells the renderer to focus the first (last if reverse is true) focusable
677 IPC_MESSAGE_ROUTED1(ViewMsg_SetInitialFocus
,
680 // Sent to inform the renderer to invoke a context menu.
681 // The parameter specifies the location in the render view's coordinates.
682 IPC_MESSAGE_ROUTED2(ViewMsg_ShowContextMenu
,
684 gfx::Point
/* location where menu should be shown */)
686 // Sent when the user wants to search for a word on the page (find in page).
687 IPC_MESSAGE_ROUTED3(ViewMsg_Find
,
688 int /* request_id */,
689 base::string16
/* search_text */,
690 blink::WebFindOptions
)
692 // This message notifies the renderer that the user has closed the FindInPage
693 // window (and what action to take regarding the selection).
694 IPC_MESSAGE_ROUTED1(ViewMsg_StopFinding
,
695 content::StopFindAction
/* action */)
697 // Copies the image at location x, y to the clipboard (if there indeed is an
698 // image at that location).
699 IPC_MESSAGE_ROUTED2(ViewMsg_CopyImageAt
,
703 // Saves the image at location x, y to the disk (if there indeed is an
704 // image at that location).
705 IPC_MESSAGE_ROUTED2(ViewMsg_SaveImageAt
,
709 // Tells the renderer to perform the given action on the media player
710 // located at the given point.
711 IPC_MESSAGE_ROUTED2(ViewMsg_MediaPlayerActionAt
,
712 gfx::Point
, /* location */
713 blink::WebMediaPlayerAction
)
715 // Tells the renderer to perform the given action on the plugin located at
717 IPC_MESSAGE_ROUTED2(ViewMsg_PluginActionAt
,
718 gfx::Point
, /* location */
719 blink::WebPluginAction
)
721 // Resets the page scale for the current main frame to the default page scale.
722 IPC_MESSAGE_ROUTED0(ViewMsg_ResetPageScale
)
724 // Change the zoom level for the current main frame. If the level actually
725 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser
726 // telling it what url got zoomed and what its current zoom level is.
727 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom
,
728 content::PageZoom
/* function */)
730 // Set the zoom level for a particular url that the renderer is in the
731 // process of loading. This will be stored, to be used if the load commits
732 // and ignored otherwise.
733 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForLoadingURL
,
735 double /* zoom_level */)
737 // Set the zoom level for a particular url, so all render views
738 // displaying this url can update their zoom levels to match.
739 // If scheme is empty, then only host is used for matching.
740 IPC_MESSAGE_CONTROL3(ViewMsg_SetZoomLevelForCurrentURL
,
741 std::string
/* scheme */,
742 std::string
/* host */,
743 double /* zoom_level */)
745 // Set the zoom level for a particular render view.
746 IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForView
,
747 bool /* uses_temporary_zoom_level */,
748 double /* zoom_level */)
750 // Change encoding of page in the renderer.
751 IPC_MESSAGE_ROUTED1(ViewMsg_SetPageEncoding
,
752 std::string
/*new encoding name*/)
754 // Reset encoding of page in the renderer back to default.
755 IPC_MESSAGE_ROUTED0(ViewMsg_ResetPageEncodingToDefault
)
757 // Used to tell a render view whether it should expose various bindings
758 // that allow JS content extended privileges. See BindingsPolicy for valid
760 IPC_MESSAGE_ROUTED1(ViewMsg_AllowBindings
,
761 int /* enabled_bindings_flags */)
763 // Tell the renderer to add a property to the WebUI binding object. This
764 // only works if we allowed WebUI bindings.
765 IPC_MESSAGE_ROUTED2(ViewMsg_SetWebUIProperty
,
766 std::string
/* property_name */,
767 std::string
/* property_value_json */)
769 // Used to notify the render-view that we have received a target URL. Used
770 // to prevent target URLs spamming the browser.
771 IPC_MESSAGE_ROUTED0(ViewMsg_UpdateTargetURL_ACK
)
773 IPC_MESSAGE_ROUTED1(ViewMsg_RunFileChooserResponse
,
774 std::vector
<content::FileChooserFileInfo
>)
776 // Provides the results of directory enumeration.
777 IPC_MESSAGE_ROUTED2(ViewMsg_EnumerateDirectoryResponse
,
778 int /* request_id */,
779 std::vector
<base::FilePath
> /* files_in_directory */)
781 // Tells the renderer to suppress any further modal dialogs until it receives a
782 // corresponding ViewMsg_SwapOut message. This ensures that no
783 // PageGroupLoadDeferrer is on the stack for SwapOut.
784 IPC_MESSAGE_ROUTED0(ViewMsg_SuppressDialogsUntilSwapOut
)
786 // Instructs the renderer to close the current page, including running the
787 // onunload event handler.
789 // Expects a ClosePage_ACK message when finished.
790 IPC_MESSAGE_ROUTED0(ViewMsg_ClosePage
)
792 // Notifies the renderer about ui theme changes
793 IPC_MESSAGE_ROUTED0(ViewMsg_ThemeChanged
)
795 // Notifies the renderer that a paint is to be generated for the rectangle
797 IPC_MESSAGE_ROUTED1(ViewMsg_Repaint
,
798 gfx::Size
/* The view size to be repainted */)
800 // Notification that a move or resize renderer's containing window has
802 IPC_MESSAGE_ROUTED0(ViewMsg_MoveOrResizeStarted
)
804 IPC_MESSAGE_ROUTED2(ViewMsg_UpdateScreenRects
,
805 gfx::Rect
/* view_screen_rect */,
806 gfx::Rect
/* window_screen_rect */)
808 // Reply to ViewHostMsg_RequestMove, ViewHostMsg_ShowView, and
809 // ViewHostMsg_ShowWidget to inform the renderer that the browser has
810 // processed the move. The browser may have ignored the move, but it finished
811 // processing. This is used because the renderer keeps a temporary cache of
812 // the widget position while these asynchronous operations are in progress.
813 IPC_MESSAGE_ROUTED0(ViewMsg_Move_ACK
)
815 // Used to instruct the RenderView to send back updates to the preferred size.
816 IPC_MESSAGE_ROUTED0(ViewMsg_EnablePreferredSizeChangedMode
)
818 // Used to instruct the RenderView to automatically resize and send back
819 // updates for the new size.
820 IPC_MESSAGE_ROUTED2(ViewMsg_EnableAutoResize
,
821 gfx::Size
/* min_size */,
822 gfx::Size
/* max_size */)
824 // Used to instruct the RenderView to disalbe automatically resize.
825 IPC_MESSAGE_ROUTED1(ViewMsg_DisableAutoResize
,
826 gfx::Size
/* new_size */)
828 // Changes the text direction of the currently selected input field (if any).
829 IPC_MESSAGE_ROUTED1(ViewMsg_SetTextDirection
,
830 blink::WebTextDirection
/* direction */)
832 // Tells the renderer to clear the focused element (if any).
833 IPC_MESSAGE_ROUTED0(ViewMsg_ClearFocusedElement
)
835 // Make the RenderView background transparent or opaque.
836 IPC_MESSAGE_ROUTED1(ViewMsg_SetBackgroundOpaque
, bool /* opaque */)
838 // Used to tell the renderer not to add scrollbars with height and
839 // width below a threshold.
840 IPC_MESSAGE_ROUTED1(ViewMsg_DisableScrollbarsForSmallWindows
,
841 gfx::Size
/* disable_scrollbar_size_limit */)
843 // Activate/deactivate the RenderView (i.e., set its controls' tint
844 // accordingly, etc.).
845 IPC_MESSAGE_ROUTED1(ViewMsg_SetActive
,
848 // Response message to ViewHostMsg_CreateWorker.
849 // Sent when the worker has started.
850 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerCreated
)
852 // Sent when the worker failed to load the worker script.
853 // In normal cases, this message is sent after ViewMsg_WorkerCreated is sent.
854 // But if the shared worker of the same URL already exists and it has failed
855 // to load the script, when the renderer send ViewHostMsg_CreateWorker before
856 // the shared worker is killed only ViewMsg_WorkerScriptLoadFailed is sent.
857 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerScriptLoadFailed
)
859 // Sent when the worker has connected.
860 // This message is sent only if the worker successfully loaded the script.
861 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerConnected
)
863 // Tells the renderer that the network type has changed so that navigator.onLine
864 // and navigator.connection can be updated.
865 IPC_MESSAGE_CONTROL1(ViewMsg_NetworkTypeChanged
,
866 net::NetworkChangeNotifier::ConnectionType
/* type */)
868 #if defined(ENABLE_PLUGINS)
869 // Reply to ViewHostMsg_OpenChannelToPpapiBroker
870 // Tells the renderer that the channel to the broker has been created.
871 IPC_MESSAGE_ROUTED2(ViewMsg_PpapiBrokerChannelCreated
,
872 base::ProcessId
/* broker_pid */,
873 IPC::ChannelHandle
/* handle */)
875 // Reply to ViewHostMsg_RequestPpapiBrokerPermission.
876 // Tells the renderer whether permission to access to PPAPI broker was granted
878 IPC_MESSAGE_ROUTED1(ViewMsg_PpapiBrokerPermissionResult
,
881 // Tells the renderer to empty its plugin list cache, optional reloading
882 // pages containing plugins.
883 IPC_MESSAGE_CONTROL1(ViewMsg_PurgePluginListCache
,
884 bool /* reload_pages */)
887 // Used to instruct the RenderView to go into "view source" mode.
888 IPC_MESSAGE_ROUTED0(ViewMsg_EnableViewSourceMode
)
890 // Instructs the renderer to save the current page to MHTML.
891 IPC_MESSAGE_ROUTED2(ViewMsg_SavePageAsMHTML
,
893 IPC::PlatformFileForTransit
/* file handle */)
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 // Notification of a change in scrollbar appearance and/or behavior.
905 IPC_MESSAGE_CONTROL1(ViewMsg_UpdateScrollbarTheme
,
906 ViewMsg_UpdateScrollbarTheme_Params
/* params */)
909 #if defined(OS_ANDROID)
910 // Tells the renderer to suspend/resume the webkit timers.
911 IPC_MESSAGE_CONTROL1(ViewMsg_SetWebKitSharedTimersSuspended
,
914 // Sent when the browser wants the bounding boxes of the current find matches.
916 // If match rects are already cached on the browser side, |current_version|
917 // should be the version number from the ViewHostMsg_FindMatchRects_Reply
918 // they came in, so the renderer can tell if it needs to send updated rects.
919 // Otherwise just pass -1 to always receive the list of rects.
921 // There must be an active search string (it is probably most useful to call
922 // this immediately after a ViewHostMsg_Find_Reply message arrives with
923 // final_update set to true).
924 IPC_MESSAGE_ROUTED1(ViewMsg_FindMatchRects
,
925 int /* current_version */)
927 // Notifies the renderer whether hiding/showing the top controls is enabled
928 // and whether or not to animate to the proper state.
929 IPC_MESSAGE_ROUTED3(ViewMsg_UpdateTopControlsState
,
930 bool /* enable_hiding */,
931 bool /* enable_showing */,
934 IPC_MESSAGE_ROUTED0(ViewMsg_ShowImeIfNeeded
)
936 // Sent by the browser when an IME update that requires acknowledgement has been
937 // processed on the browser side.
938 IPC_MESSAGE_ROUTED0(ViewMsg_ImeEventAck
)
940 // Extracts the data at the given rect, returning it through the
941 // ViewHostMsg_SmartClipDataExtracted IPC.
942 IPC_MESSAGE_ROUTED1(ViewMsg_ExtractSmartClipData
,
943 gfx::Rect
/* rect */)
945 #elif defined(OS_MACOSX)
946 // Let the RenderView know its window has changed visibility.
947 IPC_MESSAGE_ROUTED1(ViewMsg_SetWindowVisibility
,
950 // Let the RenderView know its window's frame has changed.
951 IPC_MESSAGE_ROUTED2(ViewMsg_WindowFrameChanged
,
952 gfx::Rect
/* window frame */,
953 gfx::Rect
/* content view frame */)
955 // Message sent from the browser to the renderer when the user starts or stops
956 // resizing the view.
957 IPC_MESSAGE_ROUTED1(ViewMsg_SetInLiveResize
,
960 // Tell the renderer that plugin IME has completed.
961 IPC_MESSAGE_ROUTED2(ViewMsg_PluginImeCompositionCompleted
,
962 base::string16
/* text */,
966 // Sent by the browser as a reply to ViewHostMsg_SwapCompositorFrame.
967 IPC_MESSAGE_ROUTED2(ViewMsg_SwapCompositorFrameAck
,
968 uint32
/* output_surface_id */,
969 cc::CompositorFrameAck
/* ack */)
971 // Sent by browser to tell renderer compositor that some resources that were
972 // given to the browser in a swap are not being used anymore.
973 IPC_MESSAGE_ROUTED2(ViewMsg_ReclaimCompositorResources
,
974 uint32
/* output_surface_id */,
975 cc::CompositorFrameAck
/* ack */)
977 // Sent by browser to give renderer compositor a new namespace ID for any
978 // SurfaceSequences it has to create.
979 IPC_MESSAGE_ROUTED1(ViewMsg_SetSurfaceIdNamespace
,
980 uint32_t /* surface_id_namespace */)
982 IPC_MESSAGE_ROUTED0(ViewMsg_SelectWordAroundCaret
)
984 // Sent by the browser to ask the renderer to redraw.
985 // If |request_id| is not zero, it is added to the forced frame's latency info
986 // as ui::WINDOW_SNAPSHOT_FRAME_NUMBER_COMPONENT.
987 IPC_MESSAGE_ROUTED1(ViewMsg_ForceRedraw
,
988 int /* request_id */)
990 // Sent by the browser when the renderer should generate a new frame.
991 IPC_MESSAGE_ROUTED1(ViewMsg_BeginFrame
,
992 cc::BeginFrameArgs
/* args */)
994 // -----------------------------------------------------------------------------
995 // Messages sent from the renderer to the browser.
997 // Sent by renderer to request a ViewMsg_BeginFrame message for upcoming
998 // display events. If |enabled| is true, the BeginFrame message will continue
999 // to be be delivered until the notification is disabled.
1000 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrames
,
1003 // Sent by the renderer when it is creating a new window. The browser creates
1004 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is
1005 // MSG_ROUTING_NONE, the view couldn't be created.
1006 IPC_SYNC_MESSAGE_CONTROL1_4(ViewHostMsg_CreateWindow
,
1007 ViewHostMsg_CreateWindow_Params
,
1009 int /* main_frame_route_id */,
1010 int32
/* surface_id */,
1011 int64
/* cloned_session_storage_namespace_id */)
1013 // Similar to ViewHostMsg_CreateWindow, except used for sub-widgets, like
1014 // <select> dropdowns. This message is sent to the WebContentsImpl that
1015 // contains the widget being created.
1016 IPC_SYNC_MESSAGE_CONTROL2_2(ViewHostMsg_CreateWidget
,
1017 int /* opener_id */,
1018 blink::WebPopupType
/* popup type */,
1020 int32
/* surface_id */)
1022 // Similar to ViewHostMsg_CreateWidget except the widget is a full screen
1024 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_CreateFullscreenWidget
,
1025 int /* opener_id */,
1027 int32
/* surface_id */)
1029 // Asks the browser for a unique routing ID.
1030 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GenerateRoutingID
,
1031 int /* routing_id */)
1033 // Asks the browser for the default audio hardware configuration.
1034 IPC_SYNC_MESSAGE_CONTROL0_2(ViewHostMsg_GetAudioHardwareConfig
,
1035 media::AudioParameters
/* input parameters */,
1036 media::AudioParameters
/* output parameters */)
1038 // Asks the browser for the renderer process memory size stats.
1039 IPC_SYNC_MESSAGE_CONTROL0_2(ViewHostMsg_GetProcessMemorySizes
,
1040 size_t /* private_bytes */,
1041 size_t /* shared_bytes */)
1043 // These three messages are sent to the parent RenderViewHost to display the
1044 // page/widget that was created by
1045 // CreateWindow/CreateWidget/CreateFullscreenWidget. routing_id
1046 // refers to the id that was returned from the Create message above.
1047 // The initial_rect parameter is in screen coordinates.
1049 // FUTURE: there will probably be flags here to control if the result is
1051 IPC_MESSAGE_ROUTED4(ViewHostMsg_ShowView
,
1053 WindowOpenDisposition
/* disposition */,
1054 gfx::Rect
/* initial_rect */,
1055 bool /* opened_by_user_gesture */)
1057 IPC_MESSAGE_ROUTED2(ViewHostMsg_ShowWidget
,
1059 gfx::Rect
/* initial_rect */)
1061 // Message to show a full screen widget.
1062 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowFullscreenWidget
,
1065 // Indicates the renderer is ready in response to a ViewMsg_New or
1066 // a ViewMsg_CreatingNew_ACK.
1067 IPC_MESSAGE_ROUTED0(ViewHostMsg_RenderViewReady
)
1069 // Sent by the renderer process to request that the browser close the view.
1070 // This corresponds to the window.close() API, and the browser may ignore
1071 // this message. Otherwise, the browser will generates a ViewMsg_Close
1072 // message to close the view.
1073 IPC_MESSAGE_ROUTED0(ViewHostMsg_Close
)
1075 // Send in response to a ViewMsg_UpdateScreenRects so that the renderer can
1076 // throttle these messages.
1077 IPC_MESSAGE_ROUTED0(ViewHostMsg_UpdateScreenRects_ACK
)
1079 // Sent by the renderer process to request that the browser move the view.
1080 // This corresponds to the window.resizeTo() and window.moveTo() APIs, and
1081 // the browser may ignore this message.
1082 IPC_MESSAGE_ROUTED1(ViewHostMsg_RequestMove
,
1083 gfx::Rect
/* position */)
1085 // Result of string search in the page.
1086 // Response to ViewMsg_Find with the results of the requested find-in-page
1087 // search, the number of matches found and the selection rect (in screen
1088 // coordinates) for the string found. If |final_update| is false, it signals
1089 // that this is not the last Find_Reply message - more will be sent as the
1090 // scoping effort continues.
1091 IPC_MESSAGE_ROUTED5(ViewHostMsg_Find_Reply
,
1092 int /* request_id */,
1093 int /* number of matches */,
1094 gfx::Rect
/* selection_rect */,
1095 int /* active_match_ordinal */,
1096 bool /* final_update */)
1098 // Indicates that the render view has been closed in respose to a
1100 IPC_MESSAGE_CONTROL1(ViewHostMsg_Close_ACK
,
1101 int /* old_route_id */)
1103 // Indicates that the current page has been closed, after a ClosePage
1105 IPC_MESSAGE_ROUTED0(ViewHostMsg_ClosePage_ACK
)
1107 // Notifies the browser that we have session history information.
1108 // page_id: unique ID that allows us to distinguish between history entries.
1109 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateState
,
1110 int32
/* page_id */,
1111 content::PageState
/* state */)
1113 // Notifies the browser that we want to show a destination url for a potential
1114 // action (e.g. when the user is hovering over a link).
1115 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateTargetURL
,
1118 // Sent when the document element is available for the top-level frame. This
1119 // happens after the page starts loading, but before all resources are
1121 IPC_MESSAGE_ROUTED1(ViewHostMsg_DocumentAvailableInMainFrame
,
1122 bool /* uses_temporary_zoom_level */)
1124 // Sent when the renderer loads a resource from its memory cache.
1125 // The security info is non empty if the resource was originally loaded over
1126 // a secure connection.
1127 // Note: May only be sent once per URL per frame per committed load.
1128 IPC_MESSAGE_ROUTED5(ViewHostMsg_DidLoadResourceFromMemoryCache
,
1130 std::string
/* security info */,
1131 std::string
/* http method */,
1132 std::string
/* mime type */,
1133 content::ResourceType
/* resource type */)
1135 // Sent when the renderer displays insecure content in a secure page.
1136 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidDisplayInsecureContent
)
1138 // Sent when the renderer runs insecure content in a secure origin.
1139 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidRunInsecureContent
,
1140 std::string
/* security_origin */,
1141 GURL
/* target URL */)
1143 // Sent to update part of the view. In response to this message, the host
1144 // generates a ViewMsg_UpdateRect_ACK message.
1145 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateRect
,
1146 ViewHostMsg_UpdateRect_Params
)
1148 IPC_MESSAGE_ROUTED0(ViewHostMsg_Focus
)
1149 IPC_MESSAGE_ROUTED0(ViewHostMsg_Blur
)
1151 // Message sent from renderer to the browser when focus changes inside the
1152 // webpage. The first parameter says whether the newly focused element needs
1153 // keyboard input (true for textfields, text areas and content editable divs).
1154 // The second parameter is the node bounds relative to RenderWidgetHostView.
1155 IPC_MESSAGE_ROUTED2(ViewHostMsg_FocusedNodeChanged
,
1156 bool /* is_editable_node */,
1157 gfx::Rect
/* node_bounds */)
1159 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetCursor
, content::WebCursor
)
1161 // Used to get the list of plugins
1162 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetPlugins
,
1164 std::vector
<content::WebPluginInfo
> /* plugins */)
1167 IPC_MESSAGE_ROUTED1(ViewHostMsg_WindowlessPluginDummyWindowCreated
,
1168 gfx::NativeViewId
/* dummy_activation_window */)
1170 IPC_MESSAGE_ROUTED1(ViewHostMsg_WindowlessPluginDummyWindowDestroyed
,
1171 gfx::NativeViewId
/* dummy_activation_window */)
1173 // Asks the browser for the user's monitor profile.
1174 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetMonitorColorProfile
,
1175 std::vector
<char> /* profile */)
1178 // Get the list of proxies to use for |url|, as a semicolon delimited list
1179 // of "<TYPE> <HOST>:<PORT>" | "DIRECT".
1180 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_ResolveProxy
,
1183 std::string
/* proxy list */)
1185 // A renderer sends this to the browser process when it wants to create a
1186 // worker. The browser will create the worker process if necessary, and
1187 // will return the route id on success. On error returns MSG_ROUTING_NONE.
1188 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_CreateWorker
,
1189 ViewHostMsg_CreateWorker_Params
,
1192 // A renderer sends this to the browser process when a document has been
1193 // detached. The browser will use this to constrain the lifecycle of worker
1194 // processes (SharedWorkers are shut down when their last associated document
1196 IPC_MESSAGE_CONTROL1(ViewHostMsg_DocumentDetached
,
1197 uint64
/* document_id */)
1199 // Wraps an IPC message that's destined to the worker on the renderer->browser
1201 IPC_MESSAGE_CONTROL1(ViewHostMsg_ForwardToWorker
,
1202 IPC::Message
/* message */)
1204 // Tells the browser that a specific Appcache manifest in the current page
1206 IPC_MESSAGE_ROUTED2(ViewHostMsg_AppCacheAccessed
,
1207 GURL
/* manifest url */,
1208 bool /* blocked by policy */)
1210 // Initiates a download based on user actions like 'ALT+click'.
1211 IPC_MESSAGE_CONTROL4(ViewHostMsg_DownloadUrl
,
1212 int /* render_view_id */,
1214 content::Referrer
/* referrer */,
1215 base::string16
/* suggested_name */)
1217 // Used to go to the session history entry at the given offset (ie, -1 will
1218 // return the "back" item).
1219 IPC_MESSAGE_ROUTED1(ViewHostMsg_GoToEntryAtOffset
,
1220 int /* offset (from current) of history item to get */)
1222 // Sent from an inactive renderer for the browser to route to the active
1223 // renderer, instructing it to close.
1224 IPC_MESSAGE_ROUTED0(ViewHostMsg_RouteCloseEvent
)
1226 // Notifies that the preferred size of the content changed.
1227 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidContentsPreferredSizeChange
,
1228 gfx::Size
/* pref_size */)
1230 // Notifies whether there are JavaScript touch event handlers or not.
1231 IPC_MESSAGE_ROUTED1(ViewHostMsg_HasTouchEventHandlers
,
1232 bool /* has_handlers */)
1234 // A message from HTML-based UI. When (trusted) Javascript calls
1235 // send(message, args), this message is sent to the browser.
1236 IPC_MESSAGE_ROUTED3(ViewHostMsg_WebUISend
,
1237 GURL
/* source_url */,
1238 std::string
/* message */,
1239 base::ListValue
/* args */)
1241 #if defined(ENABLE_PLUGINS)
1242 // A renderer sends this to the browser process when it wants to create a ppapi
1243 // plugin. The browser will create the plugin process if necessary, and will
1244 // return a handle to the channel on success.
1246 // The plugin_child_id is the ChildProcessHost ID assigned in the browser
1247 // process. This ID is valid only in the context of the browser process and is
1248 // used to identify the proper process when the renderer notifies it that the
1251 // On error an empty string and null handles are returned.
1252 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_OpenChannelToPepperPlugin
,
1253 base::FilePath
/* path */,
1254 IPC::ChannelHandle
/* handle to channel */,
1255 base::ProcessId
/* plugin_pid */,
1256 int /* plugin_child_id */)
1258 // Notification that a plugin has created a new plugin instance. The parameters
1260 // -The plugin process ID that we're creating the instance for.
1261 // -The instance ID of the instance being created.
1262 // -A PepperRendererInstanceData struct which contains properties from the
1263 // renderer which are associated with the plugin instance. This includes the
1264 // routing ID of the associated render view and the URL of plugin.
1265 // -Whether the plugin we're creating an instance for is external or internal.
1267 // This message must be sync even though it returns no parameters to avoid
1268 // a race condition with the plugin process. The plugin process sends messages
1269 // to the browser that assume the browser knows about the instance. We need to
1270 // make sure that the browser actually knows about the instance before we tell
1271 // the plugin to run.
1272 IPC_SYNC_MESSAGE_CONTROL4_0(
1273 ViewHostMsg_DidCreateOutOfProcessPepperInstance
,
1274 int /* plugin_child_id */,
1275 int32
/* pp_instance */,
1276 content::PepperRendererInstanceData
/* creation_data */,
1277 bool /* is_external */)
1279 // Notification that a plugin has destroyed an instance. This is the opposite of
1280 // the "DidCreate" message above.
1281 IPC_MESSAGE_CONTROL3(ViewHostMsg_DidDeleteOutOfProcessPepperInstance
,
1282 int /* plugin_child_id */,
1283 int32
/* pp_instance */,
1284 bool /* is_external */)
1286 // Message from the renderer to the browser indicating the in-process instance
1287 // has been created.
1288 IPC_MESSAGE_CONTROL2(ViewHostMsg_DidCreateInProcessInstance
,
1289 int32
/* instance */,
1290 content::PepperRendererInstanceData
/* instance_data */)
1292 // Message from the renderer to the browser indicating the in-process instance
1293 // has been destroyed.
1294 IPC_MESSAGE_CONTROL1(ViewHostMsg_DidDeleteInProcessInstance
,
1295 int32
/* instance */)
1297 // A renderer sends this to the browser process when it wants to
1298 // create a ppapi broker. The browser will create the broker process
1299 // if necessary, and will return a handle to the channel on success.
1300 // On error an empty string is returned.
1301 // The browser will respond with ViewMsg_PpapiBrokerChannelCreated.
1302 IPC_MESSAGE_CONTROL2(ViewHostMsg_OpenChannelToPpapiBroker
,
1303 int /* routing_id */,
1304 base::FilePath
/* path */)
1306 // A renderer sends this to the browser process when it wants to access a PPAPI
1307 // broker. In contrast to ViewHostMsg_OpenChannelToPpapiBroker, this is called
1308 // for every connection.
1309 // The browser will respond with ViewMsg_PpapiBrokerPermissionResult.
1310 IPC_MESSAGE_ROUTED3(ViewHostMsg_RequestPpapiBrokerPermission
,
1311 int /* routing_id */,
1312 GURL
/* document_url */,
1313 base::FilePath
/* plugin_path */)
1315 // A renderer sends this to the browser process when it throttles or unthrottles
1316 // a plugin instance for the Plugin Power Saver feature.
1317 IPC_MESSAGE_CONTROL3(ViewHostMsg_PluginInstanceThrottleStateChange
,
1318 int /* plugin_child_id */,
1319 int32
/* pp_instance */,
1320 bool /* is_throttled */)
1321 #endif // defined(ENABLE_PLUGINS)
1323 // Send the tooltip text for the current mouse position to the browser.
1324 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetTooltipText
,
1325 base::string16
/* tooltip text string */,
1326 blink::WebTextDirection
/* text direction hint */)
1328 // Notification that the text selection has changed.
1329 // Note: The secound parameter is the character based offset of the
1331 // text in the document.
1332 IPC_MESSAGE_ROUTED3(ViewHostMsg_SelectionChanged
,
1333 base::string16
/* text covers the selection range */,
1334 size_t /* the offset of the text in the document */,
1335 gfx::Range
/* selection range in the document */)
1337 // Notification that the selection bounds have changed.
1338 IPC_MESSAGE_ROUTED1(ViewHostMsg_SelectionBoundsChanged
,
1339 ViewHostMsg_SelectionBounds_Params
)
1341 // Asks the browser to display the file chooser. The result is returned in a
1342 // ViewMsg_RunFileChooserResponse message.
1343 IPC_MESSAGE_ROUTED1(ViewHostMsg_RunFileChooser
,
1344 content::FileChooserParams
)
1346 // Asks the browser to enumerate a directory. This is equivalent to running
1347 // the file chooser in directory-enumeration mode and having the user select
1348 // the given directory. The result is returned in a
1349 // ViewMsg_EnumerateDirectoryResponse message.
1350 IPC_MESSAGE_ROUTED2(ViewHostMsg_EnumerateDirectory
,
1351 int /* request_id */,
1352 base::FilePath
/* file_path */)
1354 // Asks the browser to save a image (for <canvas> or <img>) from a data URL.
1355 // Note: |data_url| is the contents of a data:URL, and that it's represented as
1356 // a string only to work around size limitations for GURLs in IPC messages.
1357 IPC_MESSAGE_CONTROL2(ViewHostMsg_SaveImageFromDataURL
,
1358 int /* render_view_id */,
1359 std::string
/* data_url */)
1361 // Tells the browser to move the focus to the next (previous if reverse is
1362 // true) focusable element.
1363 IPC_MESSAGE_ROUTED1(ViewHostMsg_TakeFocus
,
1366 // Required for opening a date/time dialog
1367 IPC_MESSAGE_ROUTED1(ViewHostMsg_OpenDateTimeDialog
,
1368 ViewHostMsg_DateTimeDialogValue_Params
/* value */)
1370 // Required for updating text input state.
1371 IPC_MESSAGE_ROUTED1(ViewHostMsg_TextInputStateChanged
,
1372 ViewHostMsg_TextInputState_Params
/* input state params */)
1374 // Sent when the renderer changes the zoom level for a particular url, so the
1375 // browser can update its records. If the view is a plugin doc, then url is
1376 // used to update the zoom level for all pages in that site. Otherwise, the
1377 // render view's id is used so that only the menu is updated.
1378 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidZoomURL
,
1379 double /* zoom_level */,
1382 // Sent when the renderer changes its page scale factor and whether or not the
1383 // page scale factor is one changes.
1384 IPC_MESSAGE_ROUTED1(ViewHostMsg_PageScaleFactorIsOneChanged
, bool /* is_one */)
1386 // Updates the minimum/maximum allowed zoom percent for this tab from the
1387 // default values. If |remember| is true, then the zoom setting is applied to
1388 // other pages in the site and is saved, otherwise it only applies to this
1390 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateZoomLimits
,
1391 int /* minimum_percent */,
1392 int /* maximum_percent */)
1394 // Notify the browser that this render process can or can't be suddenly
1396 IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged
,
1399 IPC_MESSAGE_ROUTED3(
1400 ViewHostMsg_SwapCompositorFrame
,
1401 uint32
/* output_surface_id */,
1402 cc::CompositorFrame
/* frame */,
1403 std::vector
<IPC::Message
> /* messages_to_deliver_with_frame */)
1405 //---------------------------------------------------------------------------
1406 // Request for cryptographic operation messages:
1407 // These are messages from the renderer to the browser to perform a
1408 // cryptographic operation.
1410 // Asks the browser process to generate a keypair for grabbing a client
1411 // certificate from a CA (<keygen> tag), and returns the signed public
1412 // key and challenge string.
1413 IPC_SYNC_MESSAGE_CONTROL3_1(ViewHostMsg_Keygen
,
1414 uint32
/* key size index */,
1415 std::string
/* challenge string */,
1416 GURL
/* URL of requestor */,
1417 std::string
/* signed public key and challenge */)
1419 // Message sent from the renderer to the browser to request that the browser
1420 // cache |data| associated with |url| and |expected_response_time|.
1421 IPC_MESSAGE_CONTROL3(ViewHostMsg_DidGenerateCacheableMetadata
,
1423 base::Time
/* expected_response_time */,
1424 std::vector
<char> /* data */)
1426 // Send back a string to be recorded by UserMetrics.
1427 IPC_MESSAGE_CONTROL1(ViewHostMsg_UserMetricsRecordAction
,
1428 std::string
/* action */)
1430 // Notifies the browser that the page was or was not saved as MHTML.
1431 IPC_MESSAGE_CONTROL2(ViewHostMsg_SavedPageAsMHTML
,
1433 int64
/* size of the MHTML file, -1 if error */)
1435 IPC_MESSAGE_ROUTED3(ViewHostMsg_SendCurrentPageAllSavableResourceLinks
,
1436 std::vector
<GURL
> /* all savable resource links */,
1437 std::vector
<content::Referrer
> /* all referrers */,
1438 std::vector
<GURL
> /* all frame links */)
1440 IPC_MESSAGE_ROUTED3(ViewHostMsg_SendSerializedHtmlData
,
1441 GURL
/* frame's url */,
1442 std::string
/* data buffer */,
1443 int32
/* complete status */)
1445 // Notifies the browser of an event occurring in the media pipeline.
1446 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvents
,
1447 std::vector
<media::MediaLogEvent
> /* events */)
1449 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message
1451 // |privileged| is used by Pepper Flash. If this flag is set to true, we won't
1452 // pop up a bubble to ask for user permission or take mouse lock content into
1454 IPC_MESSAGE_ROUTED3(ViewHostMsg_LockMouse
,
1455 bool /* user_gesture */,
1456 bool /* last_unlocked_by_target */,
1457 bool /* privileged */)
1459 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent
1460 // whenever the mouse is unlocked (which may or may not be caused by
1461 // ViewHostMsg_UnlockMouse).
1462 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse
)
1464 // Notifies that multiple touch targets may have been pressed, and to show
1465 // the disambiguation popup.
1466 IPC_MESSAGE_ROUTED3(ViewHostMsg_ShowDisambiguationPopup
,
1467 gfx::Rect
, /* Border of touched targets */
1468 gfx::Size
, /* Size of zoomed image */
1469 cc::SharedBitmapId
/* id */)
1471 // Sent by the renderer process to check whether client 3D APIs
1472 // (Pepper 3D, WebGL) are explicitly blocked.
1473 IPC_SYNC_MESSAGE_CONTROL3_1(ViewHostMsg_Are3DAPIsBlocked
,
1474 int /* render_view_id */,
1475 GURL
/* top_origin_url */,
1476 content::ThreeDAPIType
/* requester */,
1479 // Sent by the renderer process to indicate that a context was lost by
1480 // client 3D content (Pepper 3D, WebGL) running on the page at the
1482 IPC_MESSAGE_CONTROL3(ViewHostMsg_DidLose3DContext
,
1483 GURL
/* top_origin_url */,
1484 content::ThreeDAPIType
/* context_type */,
1485 int /* arb_robustness_status_code */)
1487 // Notifies the browser that document has parsed the body. This is used by the
1488 // ResourceScheduler as an indication that bandwidth contention won't block
1490 IPC_MESSAGE_ROUTED0(ViewHostMsg_WillInsertBody
)
1492 // Notification that the urls for the favicon of a site has been determined.
1493 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateFaviconURL
,
1494 std::vector
<content::FaviconURL
> /* candidates */)
1496 // Message sent from renderer to the browser when the element that is focused
1497 // has been touched. A bool is passed in this message which indicates if the
1498 // node is editable.
1499 IPC_MESSAGE_ROUTED1(ViewHostMsg_FocusedNodeTouched
,
1500 bool /* editable */)
1502 // Message sent from the renderer to the browser when an HTML form has failed
1503 // validation constraints.
1504 IPC_MESSAGE_ROUTED3(ViewHostMsg_ShowValidationMessage
,
1505 gfx::Rect
/* anchor rectangle in root view coordinate */,
1506 base::string16
/* validation message */,
1507 base::string16
/* supplemental text */)
1509 // Message sent from the renderer to the browser when a HTML form validation
1510 // message should be hidden from view.
1511 IPC_MESSAGE_ROUTED0(ViewHostMsg_HideValidationMessage
)
1513 // Message sent from the renderer to the browser when the suggested co-ordinates
1514 // of the anchor for a HTML form validation message have changed.
1515 IPC_MESSAGE_ROUTED1(ViewHostMsg_MoveValidationMessage
,
1516 gfx::Rect
/* anchor rectangle in root view coordinate */)
1518 #if defined(OS_ANDROID)
1519 // Response to ViewMsg_FindMatchRects.
1521 // |version| will contain the current version number of the renderer's find
1522 // match list (incremented whenever they change), which should be passed in the
1523 // next call to ViewMsg_FindMatchRects.
1525 // |rects| will either contain a list of the enclosing rects of all matches
1526 // found by the most recent Find operation, or will be empty if |version| is not
1527 // greater than the |current_version| passed to ViewMsg_FindMatchRects (hence
1528 // your locally cached rects should still be valid). The rect coords will be
1529 // custom normalized fractions of the document size. The rects will be sorted by
1530 // frame traversal order starting in the main frame, then by dom order.
1532 // |active_rect| will contain the bounding box of the active find-in-page match
1533 // marker, in similarly normalized coords (or an empty rect if there isn't one).
1534 IPC_MESSAGE_ROUTED3(ViewHostMsg_FindMatchRects_Reply
,
1536 std::vector
<gfx::RectF
> /* rects */,
1537 gfx::RectF
/* active_rect */)
1539 // Start an android intent with the given URI.
1540 IPC_MESSAGE_ROUTED1(ViewHostMsg_StartContentIntent
,
1541 GURL
/* content_url */)
1543 // Message sent when the renderer changed the background color for the view.
1544 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidChangeBodyBackgroundColor
,
1545 uint32
/* bg_color */)
1547 // This message runs the MediaCodec for decoding audio for webaudio.
1548 IPC_MESSAGE_CONTROL3(ViewHostMsg_RunWebAudioMediaCodec
,
1549 base::SharedMemoryHandle
/* encoded_data_handle */,
1550 base::FileDescriptor
/* pcm_output */,
1551 uint32_t /* data_size*/)
1553 // Reply to the ViewMsg_ExtractSmartClipData message.
1554 IPC_MESSAGE_ROUTED3(ViewHostMsg_SmartClipDataExtracted
,
1555 base::string16
/* text */,
1556 base::string16
/* html */,
1557 gfx::Rect
/* rect */)
1559 // Notifies that an unhandled tap has occurred at the specified x,y position
1560 // and that the UI may need to be triggered.
1561 IPC_MESSAGE_ROUTED2(ViewHostMsg_ShowUnhandledTapUIIfNeeded
,
1565 #elif defined(OS_MACOSX)
1566 // Request that the browser load a font into shared memory for us.
1567 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LoadFont
,
1568 FontDescriptor
/* font to load */,
1569 uint32
/* buffer size */,
1570 base::SharedMemoryHandle
/* font data */,
1571 uint32
/* font id */)
1573 // Informs the browser that a plugin has gained or lost focus.
1574 IPC_MESSAGE_ROUTED2(ViewHostMsg_PluginFocusChanged
,
1576 int /* plugin_id */)
1578 // Instructs the browser to start plugin IME.
1579 IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme
)
1581 // Receives content of a web page as plain text.
1582 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted
, std::string
);
1584 #elif defined(OS_WIN)
1585 // Request that the given font characters be loaded by the browser so it's
1586 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters
1588 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters
,
1589 LOGFONT
/* font_data */,
1590 base::string16
/* characters */)
1593 // Adding a new message? Stick to the sort order above: first platform
1594 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
1595 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.