summaryrefslogtreecommitdiffstats
path: root/chromium/content/common/view_messages.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/content/common/view_messages.h')
-rw-r--r--chromium/content/common/view_messages.h897
1 files changed, 128 insertions, 769 deletions
diff --git a/chromium/content/common/view_messages.h b/chromium/content/common/view_messages.h
index 554c8a1af8e..3815910e727 100644
--- a/chromium/content/common/view_messages.h
+++ b/chromium/content/common/view_messages.h
@@ -11,7 +11,6 @@
#include "cc/output/begin_frame_args.h"
#include "cc/output/compositor_frame.h"
#include "cc/output/compositor_frame_ack.h"
-#include "content/common/browser_rendering_stats.h"
#include "content/common/content_export.h"
#include "content/common/content_param_traits.h"
#include "content/common/cookie_data.h"
@@ -19,14 +18,9 @@
#include "content/common/pepper_renderer_instance_data.h"
#include "content/common/view_message_enums.h"
#include "content/common/webplugin_geometry.h"
-#include "content/port/common/input_event_ack_state.h"
-#include "content/public/common/color_suggestion.h"
#include "content/public/common/common_param_traits.h"
-#include "content/public/common/context_menu_params.h"
#include "content/public/common/favicon_url.h"
#include "content/public/common/file_chooser_params.h"
-#include "content/public/common/frame_navigate_params.h"
-#include "content/public/common/javascript_message_type.h"
#include "content/public/common/menu_item.h"
#include "content/public/common/page_state.h"
#include "content/public/common/page_zoom.h"
@@ -42,10 +36,10 @@
#include "media/audio/audio_parameters.h"
#include "media/base/channel_layout.h"
#include "media/base/media_log_event.h"
+#include "net/base/network_change_notifier.h"
#include "third_party/WebKit/public/platform/WebFloatPoint.h"
#include "third_party/WebKit/public/platform/WebFloatRect.h"
#include "third_party/WebKit/public/platform/WebScreenInfo.h"
-#include "third_party/WebKit/public/web/WebCompositionUnderline.h"
#include "third_party/WebKit/public/web/WebFindOptions.h"
#include "third_party/WebKit/public/web/WebMediaPlayerAction.h"
#include "third_party/WebKit/public/web/WebPluginAction.h"
@@ -65,6 +59,7 @@
#if defined(OS_MACOSX)
#include "content/common/mac/font_descriptor.h"
+#include "third_party/WebKit/public/web/mac/WebScrollbarTheme.h"
#endif
#undef IPC_MESSAGE_EXPORT
@@ -73,8 +68,6 @@
#define IPC_MESSAGE_START ViewMsgStart
IPC_ENUM_TRAITS(AccessibilityMode)
-IPC_ENUM_TRAITS(ViewMsg_Navigate_Type::Value)
-IPC_ENUM_TRAITS(blink::WebContextMenuData::MediaType)
IPC_ENUM_TRAITS(blink::WebMediaPlayerAction::Type)
IPC_ENUM_TRAITS(blink::WebPluginAction::Type)
IPC_ENUM_TRAITS(blink::WebPopupType)
@@ -82,7 +75,6 @@ IPC_ENUM_TRAITS(blink::WebTextDirection)
IPC_ENUM_TRAITS(WindowContainerType)
IPC_ENUM_TRAITS(content::FaviconURL::IconType)
IPC_ENUM_TRAITS(content::FileChooserParams::Mode)
-IPC_ENUM_TRAITS(content::JavaScriptMessageType)
IPC_ENUM_TRAITS(content::MenuItem::Type)
IPC_ENUM_TRAITS(content::NavigationGesture)
IPC_ENUM_TRAITS(content::PageZoom)
@@ -94,7 +86,6 @@ IPC_ENUM_TRAITS(content::StopFindAction)
IPC_ENUM_TRAITS(content::ThreeDAPIType)
IPC_ENUM_TRAITS(media::ChannelLayout)
IPC_ENUM_TRAITS(media::MediaLogEvent::Type)
-IPC_ENUM_TRAITS(ui::MenuSourceType)
IPC_ENUM_TRAITS_MAX_VALUE(ui::TextInputMode, ui::TEXT_INPUT_MODE_MAX)
IPC_ENUM_TRAITS(ui::TextInputType)
@@ -105,13 +96,6 @@ IPC_STRUCT_TRAITS_BEGIN(FontDescriptor)
IPC_STRUCT_TRAITS_END()
#endif
-IPC_STRUCT_TRAITS_BEGIN(blink::WebCompositionUnderline)
- IPC_STRUCT_TRAITS_MEMBER(startOffset)
- IPC_STRUCT_TRAITS_MEMBER(endOffset)
- IPC_STRUCT_TRAITS_MEMBER(color)
- IPC_STRUCT_TRAITS_MEMBER(thick)
-IPC_STRUCT_TRAITS_END()
-
IPC_STRUCT_TRAITS_BEGIN(blink::WebFindOptions)
IPC_STRUCT_TRAITS_MEMBER(forward)
IPC_STRUCT_TRAITS_MEMBER(matchCase)
@@ -147,6 +131,8 @@ IPC_STRUCT_TRAITS_BEGIN(blink::WebScreenInfo)
IPC_STRUCT_TRAITS_MEMBER(isMonochrome)
IPC_STRUCT_TRAITS_MEMBER(rect)
IPC_STRUCT_TRAITS_MEMBER(availableRect)
+ IPC_STRUCT_TRAITS_MEMBER(orientationType)
+ IPC_STRUCT_TRAITS_MEMBER(orientationAngle)
IPC_STRUCT_TRAITS_END()
IPC_STRUCT_TRAITS_BEGIN(content::MenuItem)
@@ -161,63 +147,16 @@ IPC_STRUCT_TRAITS_BEGIN(content::MenuItem)
IPC_STRUCT_TRAITS_MEMBER(submenu)
IPC_STRUCT_TRAITS_END()
-IPC_STRUCT_TRAITS_BEGIN(content::ColorSuggestion)
- IPC_STRUCT_TRAITS_MEMBER(color)
- IPC_STRUCT_TRAITS_MEMBER(label)
-IPC_STRUCT_TRAITS_END()
-
IPC_STRUCT_TRAITS_BEGIN(content::DateTimeSuggestion)
IPC_STRUCT_TRAITS_MEMBER(value)
IPC_STRUCT_TRAITS_MEMBER(localized_value)
IPC_STRUCT_TRAITS_MEMBER(label)
IPC_STRUCT_TRAITS_END()
-IPC_STRUCT_TRAITS_BEGIN(content::ContextMenuParams)
- IPC_STRUCT_TRAITS_MEMBER(media_type)
- IPC_STRUCT_TRAITS_MEMBER(x)
- IPC_STRUCT_TRAITS_MEMBER(y)
- IPC_STRUCT_TRAITS_MEMBER(link_url)
- IPC_STRUCT_TRAITS_MEMBER(link_text)
- IPC_STRUCT_TRAITS_MEMBER(unfiltered_link_url)
- IPC_STRUCT_TRAITS_MEMBER(src_url)
- IPC_STRUCT_TRAITS_MEMBER(has_image_contents)
- IPC_STRUCT_TRAITS_MEMBER(page_url)
- IPC_STRUCT_TRAITS_MEMBER(keyword_url)
- IPC_STRUCT_TRAITS_MEMBER(frame_url)
- IPC_STRUCT_TRAITS_MEMBER(frame_page_state)
- IPC_STRUCT_TRAITS_MEMBER(media_flags)
- IPC_STRUCT_TRAITS_MEMBER(selection_text)
- IPC_STRUCT_TRAITS_MEMBER(misspelled_word)
- IPC_STRUCT_TRAITS_MEMBER(misspelling_hash)
- IPC_STRUCT_TRAITS_MEMBER(dictionary_suggestions)
- IPC_STRUCT_TRAITS_MEMBER(speech_input_enabled)
- IPC_STRUCT_TRAITS_MEMBER(spellcheck_enabled)
- IPC_STRUCT_TRAITS_MEMBER(is_editable)
- IPC_STRUCT_TRAITS_MEMBER(writing_direction_default)
- IPC_STRUCT_TRAITS_MEMBER(writing_direction_left_to_right)
- IPC_STRUCT_TRAITS_MEMBER(writing_direction_right_to_left)
- IPC_STRUCT_TRAITS_MEMBER(edit_flags)
- IPC_STRUCT_TRAITS_MEMBER(security_info)
- IPC_STRUCT_TRAITS_MEMBER(frame_charset)
- IPC_STRUCT_TRAITS_MEMBER(referrer_policy)
- IPC_STRUCT_TRAITS_MEMBER(custom_context)
- IPC_STRUCT_TRAITS_MEMBER(custom_items)
- IPC_STRUCT_TRAITS_MEMBER(source_type)
-#if defined(OS_ANDROID)
- IPC_STRUCT_TRAITS_MEMBER(selection_start)
- IPC_STRUCT_TRAITS_MEMBER(selection_end)
-#endif
-IPC_STRUCT_TRAITS_END()
-
-IPC_STRUCT_TRAITS_BEGIN(content::CustomContextMenuContext)
- IPC_STRUCT_TRAITS_MEMBER(is_pepper_menu)
- IPC_STRUCT_TRAITS_MEMBER(request_id)
- IPC_STRUCT_TRAITS_MEMBER(render_widget_id)
-IPC_STRUCT_TRAITS_END()
-
IPC_STRUCT_TRAITS_BEGIN(content::FaviconURL)
IPC_STRUCT_TRAITS_MEMBER(icon_url)
IPC_STRUCT_TRAITS_MEMBER(icon_type)
+ IPC_STRUCT_TRAITS_MEMBER(icon_sizes)
IPC_STRUCT_TRAITS_END()
IPC_STRUCT_TRAITS_BEGIN(content::FileChooserParams)
@@ -230,23 +169,9 @@ IPC_STRUCT_TRAITS_BEGIN(content::FileChooserParams)
#endif
IPC_STRUCT_TRAITS_END()
-IPC_STRUCT_TRAITS_BEGIN(content::FrameNavigateParams)
- IPC_STRUCT_TRAITS_MEMBER(page_id)
- IPC_STRUCT_TRAITS_MEMBER(url)
- IPC_STRUCT_TRAITS_MEMBER(base_url)
- IPC_STRUCT_TRAITS_MEMBER(referrer)
- IPC_STRUCT_TRAITS_MEMBER(transition)
- IPC_STRUCT_TRAITS_MEMBER(redirects)
- IPC_STRUCT_TRAITS_MEMBER(should_update_history)
- IPC_STRUCT_TRAITS_MEMBER(searchable_form_url)
- IPC_STRUCT_TRAITS_MEMBER(searchable_form_encoding)
- IPC_STRUCT_TRAITS_MEMBER(contents_mime_type)
- IPC_STRUCT_TRAITS_MEMBER(socket_address)
-IPC_STRUCT_TRAITS_END()
-
IPC_STRUCT_TRAITS_BEGIN(content::PepperRendererInstanceData)
IPC_STRUCT_TRAITS_MEMBER(render_process_id)
- IPC_STRUCT_TRAITS_MEMBER(render_view_id)
+ IPC_STRUCT_TRAITS_MEMBER(render_frame_id)
IPC_STRUCT_TRAITS_MEMBER(document_url)
IPC_STRUCT_TRAITS_MEMBER(plugin_url)
IPC_STRUCT_TRAITS_END()
@@ -269,7 +194,6 @@ IPC_STRUCT_TRAITS_BEGIN(content::RendererPreferences)
IPC_STRUCT_TRAITS_MEMBER(inactive_selection_fg_color)
IPC_STRUCT_TRAITS_MEMBER(browser_handles_non_local_top_level_requests)
IPC_STRUCT_TRAITS_MEMBER(browser_handles_all_top_level_requests)
- IPC_STRUCT_TRAITS_MEMBER(browser_handles_all_top_level_link_clicks)
IPC_STRUCT_TRAITS_MEMBER(caret_blink_interval)
IPC_STRUCT_TRAITS_MEMBER(use_custom_colors)
IPC_STRUCT_TRAITS_MEMBER(enable_referrers)
@@ -283,6 +207,7 @@ IPC_STRUCT_TRAITS_BEGIN(content::RendererPreferences)
IPC_STRUCT_TRAITS_MEMBER(tap_multiple_targets_strategy)
IPC_STRUCT_TRAITS_MEMBER(disable_client_blocked_error_page)
IPC_STRUCT_TRAITS_MEMBER(plugin_fullscreen_allowed)
+ IPC_STRUCT_TRAITS_MEMBER(use_video_overlay_for_embedded_encrypted_video)
IPC_STRUCT_TRAITS_END()
IPC_STRUCT_TRAITS_BEGIN(content::CookieData)
@@ -318,17 +243,6 @@ IPC_STRUCT_TRAITS_BEGIN(ui::SelectedFileInfo)
IPC_STRUCT_TRAITS_MEMBER(display_name)
IPC_STRUCT_TRAITS_END()
-IPC_STRUCT_TRAITS_BEGIN(content::BrowserRenderingStats)
- IPC_STRUCT_TRAITS_MEMBER(input_event_count)
- IPC_STRUCT_TRAITS_MEMBER(total_input_latency)
- IPC_STRUCT_TRAITS_MEMBER(touch_ui_count)
- IPC_STRUCT_TRAITS_MEMBER(total_touch_ui_latency)
- IPC_STRUCT_TRAITS_MEMBER(touch_acked_count)
- IPC_STRUCT_TRAITS_MEMBER(total_touch_acked_latency)
- IPC_STRUCT_TRAITS_MEMBER(scroll_update_count)
- IPC_STRUCT_TRAITS_MEMBER(total_scroll_update_latency)
-IPC_STRUCT_TRAITS_END()
-
IPC_STRUCT_BEGIN(ViewHostMsg_CreateWindow_Params)
// Routing ID of the view initiating the open.
IPC_STRUCT_MEMBER(int, opener_id)
@@ -346,8 +260,8 @@ IPC_STRUCT_BEGIN(ViewHostMsg_CreateWindow_Params)
// has been specified).
IPC_STRUCT_MEMBER(base::string16, frame_name)
- // The frame identifier of the frame initiating the open.
- IPC_STRUCT_MEMBER(int64, opener_frame_id)
+ // The routing id of the frame initiating the open.
+ IPC_STRUCT_MEMBER(int, opener_render_frame_id)
// The URL of the frame initiating the open.
IPC_STRUCT_MEMBER(GURL, opener_url)
@@ -389,19 +303,17 @@ IPC_STRUCT_BEGIN(ViewHostMsg_CreateWorker_Params)
// Name for a SharedWorker, otherwise empty string.
IPC_STRUCT_MEMBER(base::string16, name)
- // The ID of the parent document (unique within parent renderer).
- IPC_STRUCT_MEMBER(unsigned long long, document_id)
+ // Security policy used in the worker.
+ IPC_STRUCT_MEMBER(base::string16, content_security_policy)
- // RenderView routing id used to send messages back to the parent.
- IPC_STRUCT_MEMBER(int, render_view_route_id)
+ // Security policy type used in the worker.
+ IPC_STRUCT_MEMBER(blink::WebContentSecurityPolicyType, security_policy_type)
- // The route ID to associate with the worker. If MSG_ROUTING_NONE is passed,
- // a new unique ID is created and assigned to the worker.
- IPC_STRUCT_MEMBER(int, route_id)
+ // The ID of the parent document (unique within parent renderer).
+ IPC_STRUCT_MEMBER(unsigned long long, document_id)
- // The ID of the appcache the main shared worker script resource was loaded
- // from, only valid for shared workers.
- IPC_STRUCT_MEMBER(int64, script_resource_appcache_id)
+ // RenderFrame routing id used to send messages back to the parent.
+ IPC_STRUCT_MEMBER(int, render_frame_route_id)
IPC_STRUCT_END()
IPC_STRUCT_BEGIN(ViewHostMsg_DateTimeDialogValue_Params)
@@ -413,85 +325,6 @@ IPC_STRUCT_BEGIN(ViewHostMsg_DateTimeDialogValue_Params)
IPC_STRUCT_MEMBER(std::vector<content::DateTimeSuggestion>, suggestions)
IPC_STRUCT_END()
-IPC_STRUCT_BEGIN(ViewHostMsg_DidFailProvisionalLoadWithError_Params)
- // The frame ID for the failure report.
- IPC_STRUCT_MEMBER(int64, frame_id)
- // The WebFrame's uniqueName().
- IPC_STRUCT_MEMBER(base::string16, frame_unique_name)
- // True if this is the top-most frame.
- IPC_STRUCT_MEMBER(bool, is_main_frame)
- // Error code as reported in the DidFailProvisionalLoad callback.
- IPC_STRUCT_MEMBER(int, error_code)
- // An error message generated from the error_code. This can be an empty
- // string if we were unable to find a meaningful description.
- IPC_STRUCT_MEMBER(base::string16, error_description)
- // The URL that the error is reported for.
- IPC_STRUCT_MEMBER(GURL, url)
- // True if the failure is the result of navigating to a POST again
- // and we're going to show the POST interstitial.
- IPC_STRUCT_MEMBER(bool, showing_repost_interstitial)
-IPC_STRUCT_END()
-
-// Parameters structure for ViewHostMsg_FrameNavigate, which has too many data
-// parameters to be reasonably put in a predefined IPC message.
-IPC_STRUCT_BEGIN_WITH_PARENT(ViewHostMsg_FrameNavigate_Params,
- content::FrameNavigateParams)
- IPC_STRUCT_TRAITS_PARENT(content::FrameNavigateParams)
- // The frame ID for this navigation. The frame ID uniquely identifies the
- // frame the navigation happened in for a given renderer.
- IPC_STRUCT_MEMBER(int64, frame_id)
-
- // The WebFrame's uniqueName().
- IPC_STRUCT_MEMBER(base::string16, frame_unique_name)
-
- // Information regarding the security of the connection (empty if the
- // connection was not secure).
- IPC_STRUCT_MEMBER(std::string, security_info)
-
- // The gesture that initiated this navigation.
- IPC_STRUCT_MEMBER(content::NavigationGesture, gesture)
-
- // True if this was a post request.
- IPC_STRUCT_MEMBER(bool, is_post)
-
- // The POST body identifier. -1 if it doesn't exist.
- IPC_STRUCT_MEMBER(int64, post_id)
-
- // Whether the frame navigation resulted in no change to the documents within
- // the page. For example, the navigation may have just resulted in scrolling
- // to a named anchor.
- IPC_STRUCT_MEMBER(bool, was_within_same_page)
-
- // The status code of the HTTP request.
- IPC_STRUCT_MEMBER(int, http_status_code)
-
- // True if the connection was proxied. In this case, socket_address
- // will represent the address of the proxy, rather than the remote host.
- IPC_STRUCT_MEMBER(bool, was_fetched_via_proxy)
-
- // Serialized history item state to store in the navigation entry.
- IPC_STRUCT_MEMBER(content::PageState, page_state)
-
- // Original request's URL.
- IPC_STRUCT_MEMBER(GURL, original_request_url)
-
- // User agent override used to navigate.
- IPC_STRUCT_MEMBER(bool, is_overriding_user_agent)
-
- // Notifies the browser that for this navigation, the session history was
- // successfully cleared.
- IPC_STRUCT_MEMBER(bool, history_list_was_cleared)
-IPC_STRUCT_END()
-
-IPC_STRUCT_BEGIN(ViewHostMsg_OpenURL_Params)
- IPC_STRUCT_MEMBER(GURL, url)
- IPC_STRUCT_MEMBER(content::Referrer, referrer)
- IPC_STRUCT_MEMBER(WindowOpenDisposition, disposition)
- IPC_STRUCT_MEMBER(int64, frame_id)
- IPC_STRUCT_MEMBER(bool, should_replace_current_entry)
- IPC_STRUCT_MEMBER(bool, user_gesture)
-IPC_STRUCT_END()
-
IPC_STRUCT_BEGIN(ViewHostMsg_SelectionBounds_Params)
IPC_STRUCT_MEMBER(gfx::Rect, anchor_rect)
IPC_STRUCT_MEMBER(blink::WebTextDirection, anchor_dir)
@@ -530,6 +363,9 @@ IPC_STRUCT_BEGIN(ViewHostMsg_TextInputState_Params)
// The type of input field
IPC_STRUCT_MEMBER(ui::TextInputType, type)
+ // The mode of input field
+ IPC_STRUCT_MEMBER(ui::TextInputMode, mode)
+
// The value of the input field
IPC_STRUCT_MEMBER(std::string, value)
@@ -555,33 +391,14 @@ IPC_STRUCT_BEGIN(ViewHostMsg_TextInputState_Params)
// TEXT_INPUT_TYPE_NONE).
IPC_STRUCT_MEMBER(bool, show_ime_if_needed)
- // Whether an acknowledgement is required for this update.
- IPC_STRUCT_MEMBER(bool, require_ack)
+ // Whether this change is originated from non-IME (e.g. Javascript, Autofill).
+ IPC_STRUCT_MEMBER(bool, is_non_ime_change)
IPC_STRUCT_END()
IPC_STRUCT_BEGIN(ViewHostMsg_UpdateRect_Params)
- // The bitmap to be painted into the view at the locations specified by
- // update_rects.
- IPC_STRUCT_MEMBER(TransportDIB::Id, bitmap)
-
- // The position and size of the bitmap.
- IPC_STRUCT_MEMBER(gfx::Rect, bitmap_rect)
-
- // The scroll delta. Only one of the delta components can be non-zero, and if
- // they are both zero, then it means there is no scrolling and the scroll_rect
- // is ignored.
- IPC_STRUCT_MEMBER(gfx::Vector2d, scroll_delta)
-
- // The rectangular region to scroll.
- IPC_STRUCT_MEMBER(gfx::Rect, scroll_rect)
-
// The scroll offset of the render view.
IPC_STRUCT_MEMBER(gfx::Vector2d, scroll_offset)
- // The regions of the bitmap (in view coords) that contain updated pixels.
- // In the case of scrolling, this includes the scroll damage rect.
- IPC_STRUCT_MEMBER(std::vector<gfx::Rect>, copy_rects)
-
// The size of the RenderView when this message was generated. This is
// included so the host knows how large the view is from the perspective of
// the renderer process. This is necessary in case a resize operation is in
@@ -598,9 +415,6 @@ IPC_STRUCT_BEGIN(ViewHostMsg_UpdateRect_Params)
// ViewHostMsg_UpdateRect_Flags::IS_RESIZE_ACK
// Indicates that this is a response to a ViewMsg_Resize message.
//
- // ViewHostMsg_UpdateRect_Flags::IS_RESTORE_ACK
- // Indicates that this is a response to a ViewMsg_WasShown message.
- //
// ViewHostMsg_UpdateRect_Flags::IS_REPAINT_ACK
// Indicates that this is a response to a ViewMsg_Repaint message.
//
@@ -610,109 +424,9 @@ IPC_STRUCT_BEGIN(ViewHostMsg_UpdateRect_Params)
// request messages.
IPC_STRUCT_MEMBER(int, flags)
- // Whether or not the renderer expects a ViewMsg_UpdateRect_ACK for this
- // update. True for 2D painting, but false for accelerated compositing.
- IPC_STRUCT_MEMBER(bool, needs_ack)
-
// All the above coordinates are in DIP. This is the scale factor needed
// to convert them to pixels.
IPC_STRUCT_MEMBER(float, scale_factor)
-
- // The latency information for the frame. Only valid when accelerated
- // compositing is disabled.
- IPC_STRUCT_MEMBER(ui::LatencyInfo, latency_info)
-IPC_STRUCT_END()
-
-IPC_STRUCT_BEGIN(ViewMsg_Navigate_Params)
- // The page_id for this navigation, or -1 if it is a new navigation. Back,
- // Forward, and Reload navigations should have a valid page_id. If the load
- // succeeds, then this page_id will be reflected in the resultant
- // ViewHostMsg_FrameNavigate message.
- IPC_STRUCT_MEMBER(int32, page_id)
-
- // If page_id is -1, then pending_history_list_offset will also be -1.
- // Otherwise, it contains the offset into the history list corresponding to
- // the current navigation.
- IPC_STRUCT_MEMBER(int, pending_history_list_offset)
-
- // Informs the RenderView of where its current page contents reside in
- // session history and the total size of the session history list.
- IPC_STRUCT_MEMBER(int, current_history_list_offset)
- IPC_STRUCT_MEMBER(int, current_history_list_length)
-
- // Informs the RenderView the session history should be cleared. In that
- // case, the RenderView needs to notify the browser that the clearing was
- // succesful when the navigation commits.
- IPC_STRUCT_MEMBER(bool, should_clear_history_list)
-
- // The URL to load.
- IPC_STRUCT_MEMBER(GURL, url)
-
- // Base URL for use in WebKit's SubstituteData.
- // Is only used with data: URLs.
- IPC_STRUCT_MEMBER(GURL, base_url_for_data_url)
-
- // History URL for use in WebKit's SubstituteData.
- // Is only used with data: URLs.
- IPC_STRUCT_MEMBER(GURL, history_url_for_data_url)
-
- // The URL to send in the "Referer" header field. Can be empty if there is
- // no referrer.
- IPC_STRUCT_MEMBER(content::Referrer, referrer)
-
- // Any redirect URLs that occurred before |url|. Useful for cross-process
- // navigations; defaults to empty.
- IPC_STRUCT_MEMBER(std::vector<GURL>, redirects)
-
- // The type of transition.
- IPC_STRUCT_MEMBER(content::PageTransition, transition)
-
- // Informs the RenderView the pending navigation should replace the current
- // history entry when it commits. This is used for cross-process redirects so
- // the transferred navigation can recover the navigation state.
- IPC_STRUCT_MEMBER(bool, should_replace_current_entry)
-
- // Opaque history state (received by ViewHostMsg_UpdateState).
- IPC_STRUCT_MEMBER(content::PageState, page_state)
-
- // Type of navigation.
- IPC_STRUCT_MEMBER(ViewMsg_Navigate_Type::Value, navigation_type)
-
- // The time the request was created
- IPC_STRUCT_MEMBER(base::Time, request_time)
-
- // Extra headers (separated by \n) to send during the request.
- IPC_STRUCT_MEMBER(std::string, extra_headers)
-
- // The following two members identify a previous request that has been
- // created before this navigation is being transferred to a new render view.
- // This serves the purpose of recycling the old request.
- // Unless this refers to a transferred navigation, these values are -1 and -1.
- IPC_STRUCT_MEMBER(int, transferred_request_child_id)
- IPC_STRUCT_MEMBER(int, transferred_request_request_id)
-
- // Whether or not we should allow the url to download.
- IPC_STRUCT_MEMBER(bool, allow_download)
-
- // Whether or not the user agent override string should be used.
- IPC_STRUCT_MEMBER(bool, is_overriding_user_agent)
-
- // True if this was a post request.
- IPC_STRUCT_MEMBER(bool, is_post)
-
- // If is_post is true, holds the post_data information from browser. Empty
- // otherwise.
- IPC_STRUCT_MEMBER(std::vector<unsigned char>, browser_initiated_post_data)
-
- // Whether or not this url should be allowed to access local file://
- // resources.
- IPC_STRUCT_MEMBER(bool, can_load_local_resources)
-
- // If not empty, which frame to navigate.
- IPC_STRUCT_MEMBER(std::string, frame_to_navigate)
-
- // The navigationStart time to expose to JS for this navigation.
- IPC_STRUCT_MEMBER(base::TimeTicks, browser_navigation_start)
IPC_STRUCT_END()
IPC_STRUCT_BEGIN(ViewMsg_New_Params)
@@ -744,9 +458,19 @@ IPC_STRUCT_BEGIN(ViewMsg_New_Params)
// Whether the RenderView should initially be swapped out.
IPC_STRUCT_MEMBER(bool, swapped_out)
+ // The ID of the proxy object for the main frame in this view. It is only
+ // used if |swapped_out| is true.
+ IPC_STRUCT_MEMBER(int32, proxy_routing_id)
+
// Whether the RenderView should initially be hidden.
IPC_STRUCT_MEMBER(bool, hidden)
+ // Whether the RenderView will never be visible.
+ IPC_STRUCT_MEMBER(bool, never_visible)
+
+ // Whether the window associated with this view was created with an opener.
+ IPC_STRUCT_MEMBER(bool, window_was_created_with_opener)
+
// The initial page ID to use for this view, which must be larger than any
// existing navigation that might be loaded in the view. Page IDs are unique
// to a view and are only updated by the renderer after this initial value.
@@ -757,11 +481,6 @@ IPC_STRUCT_BEGIN(ViewMsg_New_Params)
// The accessibility mode of the renderer.
IPC_STRUCT_MEMBER(AccessibilityMode, accessibility_mode)
-
- // Specifies whether partially swapping composited buffers is
- // allowed for a renderer. Partial swaps will be used if they are both
- // allowed and supported.
- IPC_STRUCT_MEMBER(bool, allow_partial_swap)
IPC_STRUCT_END()
IPC_STRUCT_BEGIN(ViewMsg_PostMessage_Params)
@@ -809,19 +528,11 @@ IPC_MESSAGE_ROUTED1(ViewMsg_LockMouse_ACK,
// Tells the render side that the mouse has been unlocked.
IPC_MESSAGE_ROUTED0(ViewMsg_MouseLockLost)
-// Screen was rotated. Dispatched to the onorientationchange javascript API.
-IPC_MESSAGE_ROUTED1(ViewMsg_OrientationChangeEvent,
- int /* orientation */)
-
// Sent by the browser when the parameters for vsync alignment have changed.
IPC_MESSAGE_ROUTED2(ViewMsg_UpdateVSyncParameters,
base::TimeTicks /* timebase */,
base::TimeDelta /* interval */)
-// Set the top-level frame to the provided name.
-IPC_MESSAGE_ROUTED1(ViewMsg_SetName,
- std::string /* frame_name */)
-
// Sent to the RenderView when a new tab is swapped into an existing
// tab and the histories need to be merged. The existing tab has a history of
// |merged_history_length| which precedes the history of the new tab. All
@@ -835,11 +546,6 @@ IPC_MESSAGE_ROUTED2(ViewMsg_SetHistoryLengthAndPrune,
int, /* merge_history_length */
int32 /* minimum_page_id */)
-// Tells the renderer the browser's notion of its process ID.
-// Some subsystems, like LatencyInfo, require this to be known to the renderer.
-IPC_MESSAGE_CONTROL1(ViewMsg_SetRendererProcessID,
- base::ProcessId /* process_id */)
-
// Tells the renderer to create a new view.
// This message is slightly different, the view it takes (via
// ViewMsg_New_Params) is the view to create, the message itself is sent as a
@@ -861,9 +567,10 @@ IPC_MESSAGE_ROUTED1(ViewMsg_UpdateWebPreferences,
WebPreferences)
// Informs the renderer that the timezone has changed.
-IPC_MESSAGE_ROUTED0(ViewMsg_TimezoneChange)
+IPC_MESSAGE_CONTROL0(ViewMsg_TimezoneChange)
// Tells the render view to close.
+// Expects a Close_ACK message when finished.
IPC_MESSAGE_ROUTED0(ViewMsg_Close)
IPC_STRUCT_BEGIN(ViewMsg_Resize_Params)
@@ -871,6 +578,7 @@ IPC_STRUCT_BEGIN(ViewMsg_Resize_Params)
IPC_STRUCT_MEMBER(gfx::Size, new_size)
IPC_STRUCT_MEMBER(gfx::Size, physical_backing_size)
IPC_STRUCT_MEMBER(float, overdraw_bottom_height)
+ IPC_STRUCT_MEMBER(gfx::Size, visible_viewport_size)
IPC_STRUCT_MEMBER(gfx::Rect, resizer_rect)
IPC_STRUCT_MEMBER(bool, is_fullscreen)
IPC_STRUCT_END()
@@ -893,9 +601,8 @@ IPC_MESSAGE_ROUTED0(ViewMsg_WasHidden)
// Tells the render view that it is no longer hidden (see WasHidden), and the
// render view is expected to respond with a full repaint if needs_repainting
-// is true. In that case, the generated ViewHostMsg_UpdateRect message will
-// have the IS_RESTORE_ACK flag set. If needs_repainting is false, then this
-// message does not trigger a message in response.
+// is true. If needs_repainting is false, then this message does not trigger a
+// message in response.
IPC_MESSAGE_ROUTED1(ViewMsg_WasShown,
bool /* needs_repainting */)
@@ -903,61 +610,18 @@ IPC_MESSAGE_ROUTED1(ViewMsg_WasShown,
// exit if no other views are using it.
IPC_MESSAGE_ROUTED0(ViewMsg_WasSwappedOut)
-// Sent to render the view into the supplied transport DIB, resize
-// the web widget to match the |page_size|, scale it by the
-// appropriate scale to make it fit the |desired_size|, and return
-// it. In response to this message, the host generates a
-// ViewHostMsg_PaintAtSize_ACK message. Note that the DIB *must* be
-// the right size to receive an RGBA image at the |desired_size|.
-// |tag| is sent along with ViewHostMsg_PaintAtSize_ACK unmodified to
-// identify the PaintAtSize message the ACK belongs to.
-IPC_MESSAGE_ROUTED4(ViewMsg_PaintAtSize,
- TransportDIB::Handle /* dib_handle */,
- int /* tag */,
- gfx::Size /* page_size */,
- gfx::Size /* desired_size */)
-
-// Tells the render view that a ViewHostMsg_UpdateRect message was processed.
-// This signals the render view that it can send another UpdateRect message.
-IPC_MESSAGE_ROUTED0(ViewMsg_UpdateRect_ACK)
-
-// Tells the render view that a SwapBuffers was completed. Typically,
-// SwapBuffers requests go from renderer -> GPU process -> browser. Most
-// platforms still use the GfxCxt3D Echo for receiving the SwapBuffers Ack.
-// Using Echo routes the ack from browser -> GPU process -> renderer, while this
-// Ack goes directly from browser -> renderer. This is not used for the threaded
-// compositor path.
-IPC_MESSAGE_ROUTED0(ViewMsg_SwapBuffers_ACK)
-
// Tells the renderer to focus the first (last if reverse is true) focusable
// node.
IPC_MESSAGE_ROUTED1(ViewMsg_SetInitialFocus,
bool /* reverse */)
-// Executes custom context menu action that was provided from WebKit.
-IPC_MESSAGE_ROUTED2(ViewMsg_CustomContextMenuAction,
- content::CustomContextMenuContext /* custom_context */,
- unsigned /* action */)
-
-// Sent in response to a ViewHostMsg_ContextMenu to let the renderer know that
-// the menu has been closed.
-IPC_MESSAGE_ROUTED1(ViewMsg_ContextMenuClosed,
- content::CustomContextMenuContext /* custom_context */)
-
// Sent to inform the renderer to invoke a context menu.
// The parameter specifies the location in the render view's coordinates.
IPC_MESSAGE_ROUTED1(ViewMsg_ShowContextMenu,
gfx::Point /* location where menu should be shown */)
-// Tells the renderer to perform the specified navigation, interrupting any
-// existing navigation.
-IPC_MESSAGE_ROUTED1(ViewMsg_Navigate, ViewMsg_Navigate_Params)
-
IPC_MESSAGE_ROUTED0(ViewMsg_Stop)
-// Tells the renderer to reload the current focused frame
-IPC_MESSAGE_ROUTED0(ViewMsg_ReloadFrame)
-
// Sent when the user wants to search for a word on the page (find in page).
IPC_MESSAGE_ROUTED3(ViewMsg_Find,
int /* request_id */,
@@ -969,11 +633,6 @@ IPC_MESSAGE_ROUTED3(ViewMsg_Find,
IPC_MESSAGE_ROUTED1(ViewMsg_StopFinding,
content::StopFindAction /* action */)
-// Informs the renderer about various statistics the browser has (e.g.
-// latency) regarding the frames that have been displayed.
-IPC_MESSAGE_ROUTED1(ViewMsg_SetBrowserRenderingStats,
- content::BrowserRenderingStats /* stats */)
-
// Replaces a date time input field.
IPC_MESSAGE_ROUTED1(ViewMsg_ReplaceDateTime,
double /* dialog_value */)
@@ -984,6 +643,12 @@ IPC_MESSAGE_ROUTED2(ViewMsg_CopyImageAt,
int /* x */,
int /* y */)
+// Saves the image at location x, y to the disk (if there indeed is an
+// image at that location).
+IPC_MESSAGE_ROUTED2(ViewMsg_SaveImageAt,
+ int /* x */,
+ int /* y */)
+
// Tells the renderer to perform the given action on the media player
// located at the given point.
IPC_MESSAGE_ROUTED2(ViewMsg_MediaPlayerActionAt,
@@ -996,35 +661,6 @@ IPC_MESSAGE_ROUTED2(ViewMsg_PluginActionAt,
gfx::Point, /* location */
blink::WebPluginAction)
-// Request for the renderer to evaluate an xpath to a frame and execute a
-// javascript: url in that frame's context. The message is completely
-// asynchronous and no corresponding response message is sent back.
-//
-// frame_xpath contains the modified xpath notation to identify an inner
-// subframe (starting from the root frame). It is a concatenation of
-// number of smaller xpaths delimited by '\n'. Each chunk in the string can
-// be evaluated to a frame in its parent-frame's context.
-//
-// Example: /html/body/iframe/\n/html/body/div/iframe/\n/frameset/frame[0]
-// can be broken into 3 xpaths
-// /html/body/iframe evaluates to an iframe within the root frame
-// /html/body/div/iframe evaluates to an iframe within the level-1 iframe
-// /frameset/frame[0] evaluates to first frame within the level-2 iframe
-//
-// jscript_url is the string containing the javascript: url to be executed
-// in the target frame's context. The string should start with "javascript:"
-// and continue with a valid JS text.
-//
-// If the fourth parameter is true the result is sent back to the renderer
-// using the message ViewHostMsg_ScriptEvalResponse.
-// ViewHostMsg_ScriptEvalResponse is passed the ID parameter so that the
-// client can uniquely identify the request.
-IPC_MESSAGE_ROUTED4(ViewMsg_ScriptEvalRequest,
- base::string16, /* frame_xpath */
- base::string16, /* jscript_url */
- int, /* ID */
- bool /* If true, result is sent back. */)
-
// Posts a message from a frame in another process to the current renderer.
IPC_MESSAGE_ROUTED1(ViewMsg_PostMessageEvent,
ViewMsg_PostMessage_Params)
@@ -1032,31 +668,12 @@ IPC_MESSAGE_ROUTED1(ViewMsg_PostMessageEvent,
// Requests that the RenderView's main frame sets its opener to null.
IPC_MESSAGE_ROUTED0(ViewMsg_DisownOpener)
-// Request for the renderer to evaluate an xpath to a frame and insert css
-// into that frame's document. See ViewMsg_ScriptEvalRequest for details on
-// allowed xpath expressions.
-IPC_MESSAGE_ROUTED2(ViewMsg_CSSInsertRequest,
- base::string16, /* frame_xpath */
- std::string /* css string */)
-
// Change the zoom level for the current main frame. If the level actually
// changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser
// telling it what url got zoomed and what its current zoom level is.
IPC_MESSAGE_ROUTED1(ViewMsg_Zoom,
content::PageZoom /* function */)
-// Set the zoom level for the current main frame. If the level actually
-// changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser
-// telling it what url got zoomed and what its current zoom level is.
-IPC_MESSAGE_ROUTED1(ViewMsg_SetZoomLevel,
- double /* zoom_level */)
-
-// Zooms the page by the factor defined in the renderer.
-IPC_MESSAGE_ROUTED3(ViewMsg_ZoomFactor,
- content::PageZoom,
- int /* zoom center_x */,
- int /* zoom center_y */)
-
// Set the zoom level for a particular url that the renderer is in the
// process of loading. This will be stored, to be used if the load commits
// and ignored otherwise.
@@ -1072,6 +689,11 @@ IPC_MESSAGE_CONTROL3(ViewMsg_SetZoomLevelForCurrentURL,
std::string /* host */,
double /* zoom_level */)
+// Set the zoom level for a particular render view.
+IPC_MESSAGE_ROUTED2(ViewMsg_SetZoomLevelForView,
+ bool /* uses_temporary_zoom_level */,
+ double /* zoom_level */)
+
// Change encoding of page in the renderer.
IPC_MESSAGE_ROUTED1(ViewMsg_SetPageEncoding,
std::string /*new encoding name*/)
@@ -1124,40 +746,10 @@ IPC_MESSAGE_ROUTED3(ViewMsg_ImeConfirmComposition,
gfx::Range /* replacement_range */,
bool /* keep_selection */)
-// Sets the text composition to be between the given start and end offsets
-// in the currently focused editable field.
-IPC_MESSAGE_ROUTED3(ViewMsg_SetCompositionFromExistingText,
- int /* start */,
- int /* end */,
- std::vector<blink::WebCompositionUnderline> /* underlines */)
-
-// Selects between the given start and end offsets in the currently focused
-// editable field.
-IPC_MESSAGE_ROUTED2(ViewMsg_SetEditableSelectionOffsets,
- int /* start */,
- int /* end */)
-
-// Deletes the current selection plus the specified number of characters before
-// and after the selection or caret.
-IPC_MESSAGE_ROUTED2(ViewMsg_ExtendSelectionAndDelete,
- int /* before */,
- int /* after */)
-
// Used to notify the render-view that we have received a target URL. Used
// to prevent target URLs spamming the browser.
IPC_MESSAGE_ROUTED0(ViewMsg_UpdateTargetURL_ACK)
-
-// Sets the alternate error page URL (link doctor) for the renderer process.
-IPC_MESSAGE_ROUTED1(ViewMsg_SetAltErrorPageURL,
- GURL)
-
-// Notifies the color chooser client that the user selected a color.
-IPC_MESSAGE_ROUTED2(ViewMsg_DidChooseColorResponse, unsigned, SkColor)
-
-// Notifies the color chooser client that the color chooser has ended.
-IPC_MESSAGE_ROUTED1(ViewMsg_DidEndColorChooser, unsigned)
-
IPC_MESSAGE_ROUTED1(ViewMsg_RunFileChooserResponse,
std::vector<ui::SelectedFileInfo>)
@@ -1171,21 +763,11 @@ IPC_MESSAGE_ROUTED2(ViewMsg_EnumerateDirectoryResponse,
// the renderer.
IPC_MESSAGE_ROUTED0(ViewMsg_CantFocus)
-// Instructs the renderer to invoke the frame's shouldClose method, which
-// runs the onbeforeunload event handler. Expects the result to be returned
-// via ViewHostMsg_ShouldClose.
-IPC_MESSAGE_ROUTED0(ViewMsg_ShouldClose)
-
// Tells the renderer to suppress any further modal dialogs until it receives a
// corresponding ViewMsg_SwapOut message. This ensures that no
// PageGroupLoadDeferrer is on the stack for SwapOut.
IPC_MESSAGE_ROUTED0(ViewMsg_SuppressDialogsUntilSwapOut)
-// Instructs the renderer to swap out for a cross-site transition, including
-// running the unload event handler. Expects a SwapOut_ACK message when
-// finished.
-IPC_MESSAGE_ROUTED0(ViewMsg_SwapOut)
-
// Instructs the renderer to close the current page, including running the
// onunload event handler.
//
@@ -1232,13 +814,11 @@ IPC_MESSAGE_ROUTED1(ViewMsg_DisableAutoResize,
IPC_MESSAGE_ROUTED1(ViewMsg_SetTextDirection,
blink::WebTextDirection /* direction */)
-// Tells the renderer to clear the focused node (if any).
-IPC_MESSAGE_ROUTED0(ViewMsg_ClearFocusedNode)
+// Tells the renderer to clear the focused element (if any).
+IPC_MESSAGE_ROUTED0(ViewMsg_ClearFocusedElement)
-// Make the RenderView transparent and render it onto a custom background. The
-// background will be tiled in both directions if it is not large enough.
-IPC_MESSAGE_ROUTED1(ViewMsg_SetBackground,
- SkBitmap /* background */)
+// Make the RenderView background transparent or opaque.
+IPC_MESSAGE_ROUTED1(ViewMsg_SetBackgroundOpaque, bool /* opaque */)
// Used to tell the renderer not to add scrollbars with height and
// width below a threshold.
@@ -1250,14 +830,25 @@ IPC_MESSAGE_ROUTED1(ViewMsg_DisableScrollbarsForSmallWindows,
IPC_MESSAGE_ROUTED1(ViewMsg_SetActive,
bool /* active */)
-// Response message to ViewHostMsg_CreateShared/DedicatedWorker.
+// Response message to ViewHostMsg_CreateWorker.
// Sent when the worker has started.
IPC_MESSAGE_ROUTED0(ViewMsg_WorkerCreated)
-// Tells the renderer that the network state has changed and that
-// window.navigator.onLine should be updated for all WebViews.
-IPC_MESSAGE_CONTROL1(ViewMsg_NetworkStateChanged,
- bool /* online */)
+// Sent when the worker failed to load the worker script.
+// In normal cases, this message is sent after ViewMsg_WorkerCreated is sent.
+// But if the shared worker of the same URL already exists and it has failed
+// to load the script, when the renderer send ViewHostMsg_CreateWorker before
+// the shared worker is killed only ViewMsg_WorkerScriptLoadFailed is sent.
+IPC_MESSAGE_ROUTED0(ViewMsg_WorkerScriptLoadFailed)
+
+// Sent when the worker has connected.
+// This message is sent only if the worker successfully loaded the script.
+IPC_MESSAGE_ROUTED0(ViewMsg_WorkerConnected)
+
+// Tells the renderer that the network type has changed so that navigator.onLine
+// and navigator.connection can be updated.
+IPC_MESSAGE_CONTROL1(ViewMsg_NetworkTypeChanged,
+ net::NetworkChangeNotifier::ConnectionType /* type */)
// Reply to ViewHostMsg_OpenChannelToPpapiBroker
// Tells the renderer that the channel to the broker has been created.
@@ -1294,8 +885,8 @@ IPC_MESSAGE_ROUTED1(ViewMsg_SetAccessibilityMode,
// An acknowledge to ViewHostMsg_MultipleTargetsTouched to notify the renderer
// process to release the magnified image.
-IPC_MESSAGE_ROUTED1(ViewMsg_ReleaseDisambiguationPopupDIB,
- TransportDIB::Handle /* DIB handle */)
+IPC_MESSAGE_ROUTED1(ViewMsg_ReleaseDisambiguationPopupBitmap,
+ cc::SharedBitmapId /* id */)
// Notifies the renderer that a snapshot has been retrieved.
IPC_MESSAGE_ROUTED3(ViewMsg_WindowSnapshotCompleted,
@@ -1304,11 +895,14 @@ IPC_MESSAGE_ROUTED3(ViewMsg_WindowSnapshotCompleted,
std::vector<unsigned char> /* png */)
#if defined(OS_MACOSX)
+IPC_ENUM_TRAITS_MAX_VALUE(blink::ScrollerStyle, blink::ScrollerStyleOverlay);
+
// Notification of a change in scrollbar appearance and/or behavior.
-IPC_MESSAGE_CONTROL4(ViewMsg_UpdateScrollbarTheme,
+IPC_MESSAGE_CONTROL5(ViewMsg_UpdateScrollbarTheme,
float /* initial_button_delay */,
float /* autoscroll_button_delay */,
bool /* jump_on_track_click */,
+ blink::ScrollerStyle /* preferred_scroller_style */,
bool /* redraw */)
#endif
@@ -1335,10 +929,6 @@ IPC_MESSAGE_ROUTED2(ViewMsg_SelectPopupMenuItems,
bool /* user canceled the popup */,
std::vector<int> /* selected indices */)
-// Tells the renderer to try to revert to the zoom level we were at before
-// ViewMsg_ScrollFocusedEditableNodeIntoView was called.
-IPC_MESSAGE_ROUTED0(ViewMsg_UndoScrollFocusedEditableNodeIntoView)
-
// Notifies the renderer whether hiding/showing the top controls is enabled
// and whether or not to animate to the proper state.
IPC_MESSAGE_ROUTED3(ViewMsg_UpdateTopControlsState,
@@ -1356,9 +946,6 @@ IPC_MESSAGE_ROUTED1(ViewMsg_BeginFrame,
// processed on the browser side.
IPC_MESSAGE_ROUTED0(ViewMsg_ImeEventAck)
-// Sent by the browser when we should pause video playback.
-IPC_MESSAGE_ROUTED0(ViewMsg_PauseVideo);
-
// Extracts the data at the given rect, returning it through the
// ViewHostMsg_SmartClipDataExtracted IPC.
IPC_MESSAGE_ROUTED1(ViewMsg_ExtractSmartClipData,
@@ -1400,9 +987,7 @@ IPC_MESSAGE_ROUTED2(ViewMsg_ReclaimCompositorResources,
uint32 /* output_surface_id */,
cc::CompositorFrameAck /* ack */)
-// Sent by the browser to ask the renderer for a snapshot of the current view.
-IPC_MESSAGE_ROUTED1(ViewMsg_Snapshot,
- gfx::Rect /* src_subrect */)
+IPC_MESSAGE_ROUTED0(ViewMsg_SelectWordAroundCaret)
// -----------------------------------------------------------------------------
// Messages sent from the renderer to the browser.
@@ -1504,29 +1089,12 @@ IPC_MESSAGE_ROUTED0(ViewHostMsg_UpdateScreenRects_ACK)
IPC_MESSAGE_ROUTED1(ViewHostMsg_RequestMove,
gfx::Rect /* position */)
-// Notifies the browser that a frame in the view has changed. This message
-// has a lot of parameters and is packed/unpacked by functions defined in
-// render_messages.h.
-IPC_MESSAGE_ROUTED1(ViewHostMsg_FrameNavigate,
- ViewHostMsg_FrameNavigate_Params)
-
-// Used to tell the parent that the user right clicked on an area of the
-// content area, and a context menu should be shown for it. The params
-// object contains information about the node(s) that were selected when the
-// user right clicked.
-IPC_MESSAGE_ROUTED1(ViewHostMsg_ContextMenu, content::ContextMenuParams)
-
-// Message to show a popup menu using native cocoa controls (Mac only).
+#if defined(OS_MACOSX) || defined(OS_ANDROID)
+// Message to show/hide a popup menu using native controls.
IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowPopup,
ViewHostMsg_ShowPopup_Params)
-
-// Response from ViewMsg_ScriptEvalRequest. The ID is the parameter supplied
-// to ViewMsg_ScriptEvalRequest. The result has the value returned by the
-// script as its only element, one of Null, Boolean, Integer, Real, Date, or
-// String.
-IPC_MESSAGE_ROUTED2(ViewHostMsg_ScriptEvalResponse,
- int /* id */,
- base::ListValue /* result */)
+IPC_MESSAGE_ROUTED0(ViewHostMsg_HidePopup)
+#endif
// Result of string search in the page.
// Response to ViewMsg_Find with the results of the requested find-in-page
@@ -1541,90 +1109,32 @@ IPC_MESSAGE_ROUTED5(ViewHostMsg_Find_Reply,
int /* active_match_ordinal */,
bool /* final_update */)
-// Provides the result from running OnMsgShouldClose. |proceed| matches the
-// return value of the the frame's shouldClose method (which includes the
-// onbeforeunload handler): true if the user decided to proceed with leaving
-// the page.
-IPC_MESSAGE_ROUTED3(ViewHostMsg_ShouldClose_ACK,
- bool /* proceed */,
- base::TimeTicks /* before_unload_start_time */,
- base::TimeTicks /* before_unload_end_time */)
-
-// Indicates that the current renderer has swapped out, after a SwapOut
-// message.
-IPC_MESSAGE_ROUTED0(ViewHostMsg_SwapOut_ACK)
+// Indicates that the render view has been closed in respose to a
+// Close message.
+IPC_MESSAGE_CONTROL1(ViewHostMsg_Close_ACK,
+ int /* old_route_id */);
// Indicates that the current page has been closed, after a ClosePage
// message.
IPC_MESSAGE_ROUTED0(ViewHostMsg_ClosePage_ACK)
-// Notifies the browser that media has started/stopped playing.
-IPC_MESSAGE_ROUTED4(ViewHostMsg_MediaNotification,
- int64 /* player_cookie, distinguishes instances */,
- bool /* has_video */,
- bool /* has_audio */,
- bool /* is_playing */)
-
// Notifies the browser that we have session history information.
// page_id: unique ID that allows us to distinguish between history entries.
IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateState,
int32 /* page_id */,
content::PageState /* state */)
-// Notifies the browser that a document has been loaded in a frame.
-IPC_MESSAGE_ROUTED1(ViewHostMsg_DocumentLoadedInFrame,
- int64 /* frame_id */)
-
-// Notifies the browser that a frame finished loading.
-IPC_MESSAGE_ROUTED3(ViewHostMsg_DidFinishLoad,
- int64 /* frame_id */,
- GURL /* validated_url */,
- bool /* is_main_frame */)
-
-// Changes the title for the page in the UI when the page is navigated or the
-// title changes.
-IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateTitle,
- int32 /* page_id */,
- base::string16 /* title */,
- blink::WebTextDirection /* title direction */)
-
-// Change the encoding name of the page in UI when the page has detected
-// proper encoding name.
-IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateEncoding,
- std::string /* new encoding name */)
-
// Notifies the browser that we want to show a destination url for a potential
// action (e.g. when the user is hovering over a link).
IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateTargetURL,
int32,
GURL)
-// Sent when the renderer starts loading the page. This corresponds to
-// WebKit's notion of the throbber starting. Note that sometimes you may get
-// duplicates of these during a single load.
-IPC_MESSAGE_ROUTED0(ViewHostMsg_DidStartLoading)
-
-// Sent when the renderer is done loading a page. This corresponds to WebKit's
-// notion of the throbber stopping.
-IPC_MESSAGE_ROUTED0(ViewHostMsg_DidStopLoading)
-
-// Sent when the renderer main frame has made progress loading.
-IPC_MESSAGE_ROUTED1(ViewHostMsg_DidChangeLoadProgress,
- double /* load_progress */)
-
-// Sent when the renderer main frame sets its opener to null, disowning it for
-// the lifetime of the window.
-IPC_MESSAGE_ROUTED0(ViewHostMsg_DidDisownOpener)
-
// Sent when the document element is available for the top-level frame. This
// happens after the page starts loading, but before all resources are
// finished.
-IPC_MESSAGE_ROUTED0(ViewHostMsg_DocumentAvailableInMainFrame)
-
-// Sent when after the onload handler has been invoked for the document
-// in the top-level frame.
-IPC_MESSAGE_ROUTED1(ViewHostMsg_DocumentOnLoadCompletedInMainFrame,
- int32 /* page_id */)
+IPC_MESSAGE_ROUTED1(ViewHostMsg_DocumentAvailableInMainFrame,
+ bool /* uses_temporary_zoom_level */)
// Sent when the renderer loads a resource from its memory cache.
// The security info is non empty if the resource was originally loaded over
@@ -1645,38 +1155,11 @@ IPC_MESSAGE_ROUTED2(ViewHostMsg_DidRunInsecureContent,
std::string /* security_origin */,
GURL /* target URL */)
-IPC_MESSAGE_ROUTED5(ViewHostMsg_DidFailLoadWithError,
- int64 /* frame_id */,
- GURL /* validated_url */,
- bool /* is_main_frame */,
- int /* error_code */,
- base::string16 /* error_description */)
-
-// Sent when the renderer fails a provisional load with an error.
-IPC_MESSAGE_ROUTED1(ViewHostMsg_DidFailProvisionalLoadWithError,
- ViewHostMsg_DidFailProvisionalLoadWithError_Params)
-
-// Tells the render view that a ViewHostMsg_PaintAtSize message was
-// processed, and the DIB is ready for use. |tag| has the same value that
-// the tag sent along with ViewMsg_PaintAtSize.
-IPC_MESSAGE_ROUTED2(ViewHostMsg_PaintAtSize_ACK,
- int /* tag */,
- gfx::Size /* size */)
-
// Sent to update part of the view. In response to this message, the host
// generates a ViewMsg_UpdateRect_ACK message.
IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateRect,
ViewHostMsg_UpdateRect_Params)
-// Sent to unblock the browser's UI thread if it is waiting on an UpdateRect,
-// which may get delayed until the browser's UI unblocks.
-IPC_MESSAGE_ROUTED0(ViewHostMsg_UpdateIsDelayed)
-
-// Sent by the renderer when accelerated compositing is enabled or disabled to
-// notify the browser whether or not is should do painting.
-IPC_MESSAGE_ROUTED1(ViewHostMsg_DidActivateAcceleratedCompositing,
- bool /* true if the accelerated compositor is actve */)
-
IPC_MESSAGE_ROUTED0(ViewHostMsg_Focus)
IPC_MESSAGE_ROUTED0(ViewHostMsg_Blur)
@@ -1686,22 +1169,29 @@ IPC_MESSAGE_ROUTED0(ViewHostMsg_Blur)
IPC_MESSAGE_ROUTED1(ViewHostMsg_FocusedNodeChanged,
bool /* is_editable_node */)
-IPC_MESSAGE_ROUTED1(ViewHostMsg_SetCursor,
- WebCursor)
+IPC_MESSAGE_ROUTED1(ViewHostMsg_SetCursor, content::WebCursor)
+
+// Message sent from renderer requesting touch emulation using mouse.
+// Shift-scrolling should be converted to pinch, if |allow_pinch| is true.
+IPC_MESSAGE_ROUTED2(ViewHostMsg_SetTouchEventEmulationEnabled,
+ bool /* enabled */,
+ bool /* allow_pinch */)
// Used to set a cookie. The cookie is set asynchronously, but will be
// available to a subsequent ViewHostMsg_GetCookies request.
-IPC_MESSAGE_ROUTED3(ViewHostMsg_SetCookie,
- GURL /* url */,
- GURL /* first_party_for_cookies */,
- std::string /* cookie */)
+IPC_MESSAGE_CONTROL4(ViewHostMsg_SetCookie,
+ int /* render_frame_id */,
+ GURL /* url */,
+ GURL /* first_party_for_cookies */,
+ std::string /* cookie */)
// Used to get cookies for the given URL. This may block waiting for a
// previous SetCookie message to be processed.
-IPC_SYNC_MESSAGE_ROUTED2_1(ViewHostMsg_GetCookies,
- GURL /* url */,
- GURL /* first_party_for_cookies */,
- std::string /* cookies */)
+IPC_SYNC_MESSAGE_CONTROL3_1(ViewHostMsg_GetCookies,
+ int /* render_frame_id */,
+ GURL /* url */,
+ GURL /* first_party_for_cookies */,
+ std::string /* cookies */)
// Used to get raw cookie information for the given URL. This may block
// waiting for a previous SetCookie message to be processed.
@@ -1718,7 +1208,8 @@ IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_DeleteCookie,
// Used to check if cookies are enabled for the given URL. This may block
// waiting for a previous SetCookie message to be processed.
-IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_CookiesEnabled,
+IPC_SYNC_MESSAGE_CONTROL3_1(ViewHostMsg_CookiesEnabled,
+ int /* render_frame_id */,
GURL /* url */,
GURL /* first_party_for_cookies */,
bool /* cookies_enabled */)
@@ -1754,21 +1245,6 @@ IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_CreateWorker,
ViewHostMsg_CreateWorker_Params,
int /* route_id */)
-// This message is sent to the browser to see if an instance of this shared
-// worker already exists. If so, it returns exists == true. If a
-// non-empty name is passed, also validates that the url matches the url of
-// the existing worker. If a matching worker is found, the passed-in
-// document_id is associated with that worker, to ensure that the worker
-// stays alive until the document is detached.
-// The route_id returned can be used to forward messages to the worker via
-// ForwardToWorker if it exists, otherwise it should be passed in to any
-// future call to CreateWorker to avoid creating duplicate workers.
-IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LookupSharedWorker,
- ViewHostMsg_CreateWorker_Params,
- bool /* exists */,
- int /* route_id */,
- bool /* url_mismatch */)
-
// A renderer sends this to the browser process when a document has been
// detached. The browser will use this to constrain the lifecycle of worker
// processes (SharedWorkers are shut down when their last associated document
@@ -1788,10 +1264,12 @@ IPC_MESSAGE_ROUTED2(ViewHostMsg_AppCacheAccessed,
bool /* blocked by policy */)
// Initiates a download based on user actions like 'ALT+click'.
-IPC_MESSAGE_ROUTED3(ViewHostMsg_DownloadUrl,
- GURL /* url */,
- content::Referrer /* referrer */,
- base::string16 /* suggested_name */)
+IPC_MESSAGE_CONTROL5(ViewHostMsg_DownloadUrl,
+ int /* render_view_id */,
+ GURL /* url */,
+ content::Referrer /* referrer */,
+ base::string16 /* suggested_name */,
+ bool /* use prompt for save location */)
// Used to go to the session history entry at the given offset (ie, -1 will
// return the "back" item).
@@ -1807,17 +1285,6 @@ IPC_MESSAGE_ROUTED0(ViewHostMsg_RouteCloseEvent)
IPC_MESSAGE_ROUTED1(ViewHostMsg_RouteMessageEvent,
ViewMsg_PostMessage_Params)
-IPC_SYNC_MESSAGE_ROUTED4_2(ViewHostMsg_RunJavaScriptMessage,
- base::string16 /* in - alert message */,
- base::string16 /* in - default prompt */,
- GURL /* in - originating page URL */,
- content::JavaScriptMessageType /* in - type */,
- bool /* out - success */,
- base::string16 /* out - user_input field */)
-
-// Requests that the given URL be opened in the specified manner.
-IPC_MESSAGE_ROUTED1(ViewHostMsg_OpenURL, ViewHostMsg_OpenURL_Params)
-
// Notifies that the preferred size of the content changed.
IPC_MESSAGE_ROUTED1(ViewHostMsg_DidContentsPreferredSizeChange,
gfx::Size /* pref_size */)
@@ -1828,20 +1295,6 @@ IPC_MESSAGE_ROUTED1(ViewHostMsg_DidContentsPreferredSizeChange,
// ViewHostMsg_DidChangeScrollOffset works properly in this case.
IPC_MESSAGE_ROUTED0(ViewHostMsg_DidChangeScrollOffset)
-// Notifies that the pinned-to-side state of the content changed.
-IPC_MESSAGE_ROUTED2(ViewHostMsg_DidChangeScrollOffsetPinningForMainFrame,
- bool /* pinned_to_left */,
- bool /* pinned_to_right */)
-
-// Notifies that the scrollbars-visible state of the content changed.
-IPC_MESSAGE_ROUTED2(ViewHostMsg_DidChangeScrollbarsForMainFrame,
- bool /* has_horizontal_scrollbar */,
- bool /* has_vertical_scrollbar */)
-
-// Notifies that the number of JavaScript scroll handlers changed.
-IPC_MESSAGE_ROUTED1(ViewHostMsg_DidChangeNumWheelEvents,
- int /* count */)
-
// Notifies whether there are JavaScript touch event handlers or not.
IPC_MESSAGE_ROUTED1(ViewHostMsg_HasTouchEventHandlers,
bool /* has_handlers */)
@@ -1926,20 +1379,6 @@ IPC_MESSAGE_ROUTED3(ViewHostMsg_RequestPpapiBrokerPermission,
GURL /* document_url */,
base::FilePath /* plugin_path */)
-#if defined(USE_X11)
-// A renderer sends this when it needs a browser-side widget for
-// hosting a windowed plugin. id is the XID of the plugin window, for which
-// the container is created.
-IPC_SYNC_MESSAGE_ROUTED1_0(ViewHostMsg_CreatePluginContainer,
- gfx::PluginWindowHandle /* id */)
-
-// Destroy a plugin container previously created using CreatePluginContainer.
-// id is the XID of the plugin window corresponding to the container that is
-// to be destroyed.
-IPC_SYNC_MESSAGE_ROUTED1_0(ViewHostMsg_DestroyPluginContainer,
- gfx::PluginWindowHandle /* id */)
-#endif
-
// Send the tooltip text for the current mouse position to the browser.
IPC_MESSAGE_ROUTED2(ViewHostMsg_SetTooltipText,
base::string16 /* tooltip text string */,
@@ -1949,7 +1388,8 @@ IPC_MESSAGE_ROUTED0(ViewHostMsg_SelectRange_ACK)
IPC_MESSAGE_ROUTED0(ViewHostMsg_MoveCaret_ACK)
// Notification that the text selection has changed.
-// Note: The secound parameter is the character based offset of the string16
+// Note: The secound parameter is the character based offset of the
+// base::string16
// text in the document.
IPC_MESSAGE_ROUTED3(ViewHostMsg_SelectionChanged,
base::string16 /* text covers the selection range */,
@@ -1960,22 +1400,8 @@ IPC_MESSAGE_ROUTED3(ViewHostMsg_SelectionChanged,
IPC_MESSAGE_ROUTED1(ViewHostMsg_SelectionBoundsChanged,
ViewHostMsg_SelectionBounds_Params)
-// Asks the browser to open the color chooser.
-IPC_MESSAGE_ROUTED3(ViewHostMsg_OpenColorChooser,
- int /* id */,
- SkColor /* color */,
- std::vector<content::ColorSuggestion> /* suggestions */)
-
-// Asks the browser to end the color chooser.
-IPC_MESSAGE_ROUTED1(ViewHostMsg_EndColorChooser, int /* id */)
-
-// Change the selected color in the color chooser.
-IPC_MESSAGE_ROUTED2(ViewHostMsg_SetSelectedColorInColorChooser,
- int /* id */,
- SkColor /* color */)
-
// Asks the browser to display the file chooser. The result is returned in a
-// ViewHost_RunFileChooserResponse message.
+// ViewMsg_RunFileChooserResponse message.
IPC_MESSAGE_ROUTED1(ViewHostMsg_RunFileChooser,
content::FileChooserParams)
@@ -1996,11 +1422,6 @@ IPC_MESSAGE_ROUTED1(ViewHostMsg_TakeFocus,
IPC_MESSAGE_ROUTED1(ViewHostMsg_OpenDateTimeDialog,
ViewHostMsg_DateTimeDialogValue_Params /* value */)
-IPC_MESSAGE_ROUTED3(ViewHostMsg_TextInputTypeChanged,
- ui::TextInputType /* TextInputType of the focused node */,
- ui::TextInputMode /* TextInputMode of the focused node */,
- bool /* can_compose_inline in the focused node */)
-
// Required for updating text input state.
IPC_MESSAGE_ROUTED1(ViewHostMsg_TextInputStateChanged,
ViewHostMsg_TextInputState_Params /* input state params */)
@@ -2008,60 +1429,27 @@ IPC_MESSAGE_ROUTED1(ViewHostMsg_TextInputStateChanged,
// Required for cancelling an ongoing input method composition.
IPC_MESSAGE_ROUTED0(ViewHostMsg_ImeCancelComposition)
-// WebKit and JavaScript error messages to log to the console
-// or debugger UI.
-IPC_MESSAGE_ROUTED4(ViewHostMsg_AddMessageToConsole,
- int32, /* log level */
- base::string16, /* msg */
- int32, /* line number */
- base::string16 /* source id */ )
-
-// Displays a box to confirm that the user wants to navigate away from the
-// page. Replies true if yes, false otherwise, the reply string is ignored,
-// but is included so that we can use OnJavaScriptMessageBoxClosed.
-IPC_SYNC_MESSAGE_ROUTED3_2(ViewHostMsg_RunBeforeUnloadConfirm,
- GURL, /* in - originating frame URL */
- base::string16 /* in - alert message */,
- bool /* in - is a reload */,
- bool /* out - success */,
- base::string16 /* out - This is ignored.*/)
-
-// Sent when a provisional load on the main frame redirects.
-IPC_MESSAGE_ROUTED3(ViewHostMsg_DidRedirectProvisionalLoad,
- int /* page_id */,
- GURL /* last url */,
- GURL /* url redirected to */)
-
// Sent when the renderer changes the zoom level for a particular url, so the
-// browser can update its records. If remember is true, then url is used to
-// update the zoom level for all pages in that site. Otherwise, the render
-// view's id is used so that only the menu is updated.
-IPC_MESSAGE_ROUTED3(ViewHostMsg_DidZoomURL,
+// browser can update its records. If the view is a plugin doc, then url is
+// used to update the zoom level for all pages in that site. Otherwise, the
+// render view's id is used so that only the menu is updated.
+IPC_MESSAGE_ROUTED2(ViewHostMsg_DidZoomURL,
double /* zoom_level */,
- bool /* remember */,
GURL /* url */)
// Updates the minimum/maximum allowed zoom percent for this tab from the
// default values. If |remember| is true, then the zoom setting is applied to
// other pages in the site and is saved, otherwise it only applies to this
// tab.
-IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateZoomLimits,
+IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateZoomLimits,
int /* minimum_percent */,
- int /* maximum_percent */,
- bool /* remember */)
+ int /* maximum_percent */)
// Notify the browser that this render process can or can't be suddenly
// terminated.
IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged,
bool /* enabled */)
-// Informs the browser of updated frame names.
-IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateFrameName,
- int /* frame_id */,
- bool /* is_top_level */,
- std::string /* name */)
-
-
IPC_STRUCT_BEGIN(ViewHostMsg_CompositorSurfaceBuffersSwapped_Params)
IPC_STRUCT_MEMBER(int32, surface_id)
IPC_STRUCT_MEMBER(uint64, surface_handle)
@@ -2069,7 +1457,7 @@ IPC_STRUCT_BEGIN(ViewHostMsg_CompositorSurfaceBuffersSwapped_Params)
IPC_STRUCT_MEMBER(gfx::Size, size)
IPC_STRUCT_MEMBER(float, scale_factor)
IPC_STRUCT_MEMBER(int32, gpu_process_host_id)
- IPC_STRUCT_MEMBER(ui::LatencyInfo, latency_info)
+ IPC_STRUCT_MEMBER(std::vector<ui::LatencyInfo>, latency_info)
IPC_STRUCT_END()
// This message is synthesized by GpuProcessHost to pass through a swap message
@@ -2083,17 +1471,8 @@ IPC_MESSAGE_ROUTED2(ViewHostMsg_SwapCompositorFrame,
uint32 /* output_surface_id */,
cc::CompositorFrame /* frame */)
-// Sent by the compositor when input scroll events are dropped due to bounds
-// restricions on the root scroll offset.
-IPC_MESSAGE_ROUTED2(ViewHostMsg_DidOverscroll,
- gfx::Vector2dF /* accumulated_overscroll */,
- gfx::Vector2dF /* current_fling_velocity */)
-
-// Reply to a snapshot request containing whether snapshotting succeeded and the
-// SkBitmap if it succeeded.
-IPC_MESSAGE_ROUTED2(ViewHostMsg_Snapshot,
- bool, /* success */
- SkBitmap /* bitmap */)
+// Sent by the compositor when a flinging animation is stopped.
+IPC_MESSAGE_ROUTED0(ViewHostMsg_DidStopFlinging)
//---------------------------------------------------------------------------
// Request for cryptographic operation messages:
@@ -2116,9 +1495,6 @@ IPC_MESSAGE_CONTROL3(ViewHostMsg_DidGenerateCacheableMetadata,
double /* expected_response_time */,
std::vector<char> /* data */)
-// Displays a JavaScript out-of-memory message in the infobar.
-IPC_MESSAGE_ROUTED0(ViewHostMsg_JSOutOfMemory)
-
// Register a new handler for URL requests with the given scheme.
IPC_MESSAGE_ROUTED4(ViewHostMsg_RegisterProtocolHandler,
std::string /* scheme */,
@@ -2175,26 +1551,12 @@ IPC_MESSAGE_ROUTED3(ViewHostMsg_LockMouse,
// ViewHostMsg_UnlockMouse).
IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse)
-// Notifies that the initial empty document of a view has been accessed.
-// After this, it is no longer safe to show a pending navigation's URL without
-// making a URL spoof possible.
-IPC_MESSAGE_ROUTED0(ViewHostMsg_DidAccessInitialDocument)
-
-// Following message is used to communicate the values received by the
-// callback binding the JS to Cpp.
-// An instance of browser that has an automation host listening to it can
-// have a javascript send a native value (string, number, boolean) to the
-// listener in Cpp. (DomAutomationController)
-IPC_MESSAGE_ROUTED2(ViewHostMsg_DomOperationResponse,
- std::string /* json_string */,
- int /* automation_id */)
-
// Notifies that multiple touch targets may have been pressed, and to show
// the disambiguation popup.
IPC_MESSAGE_ROUTED3(ViewHostMsg_ShowDisambiguationPopup,
gfx::Rect, /* Border of touched targets */
gfx::Size, /* Size of zoomed image */
- TransportDIB::Id /* DIB of zoomed image */)
+ cc::SharedBitmapId /* id */)
// Sent by the renderer process to check whether client 3D APIs
// (Pepper 3D, WebGL) are explicitly blocked.
@@ -2218,14 +1580,12 @@ IPC_MESSAGE_CONTROL3(ViewHostMsg_DidLose3DContext,
IPC_MESSAGE_ROUTED0(ViewHostMsg_WillInsertBody)
// Notification that the urls for the favicon of a site has been determined.
-IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateFaviconURL,
- int32 /* page_id */,
+IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateFaviconURL,
std::vector<content::FaviconURL> /* candidates */)
// Sent once a paint happens after the first non empty layout. In other words
// after the page has painted something.
-IPC_MESSAGE_ROUTED1(ViewHostMsg_DidFirstVisuallyNonEmptyPaint,
- int /* page_id */)
+IPC_MESSAGE_ROUTED0(ViewHostMsg_DidFirstVisuallyNonEmptyPaint)
// Sent by the renderer to the browser to start a vibration with the given
// duration.
@@ -2304,8 +1664,7 @@ IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrame,
// instead of encoding the data as a string which is not allowed normally. Since
// ths is only used in Android WebView, it's allowed temporarily.
// http://crbug.com/330872
-IPC_MESSAGE_ROUTED1(ViewHostMsg_SmartClipDataExtracted,
- string16)
+IPC_MESSAGE_ROUTED1(ViewHostMsg_SmartClipDataExtracted, base::string16)
#elif defined(OS_MACOSX)
// Request that the browser load a font into shared memory for us.
@@ -2353,8 +1712,8 @@ IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB,
TransportDIB::Id /* DIB id */)
#endif
-#if defined(OS_MACOSX) || defined(OS_WIN) || defined(USE_AURA)
-// On MACOSX, WIN and AURA IME can request composition character bounds
+#if defined(OS_MACOSX) || defined(USE_AURA)
+// On Mac and Aura IME can request composition character bounds
// synchronously (see crbug.com/120597). This IPC message sends the character
// bounds after every composition change to always have correct bound info.
IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged,