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