Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1651)

Unified Diff: content/common/view_messages.h

Issue 2370393002: Extracting placeholder information from Webkit to Blimp (Closed)
Patch Set: Addressed some comments Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/common/view_messages.h
diff --git a/content/common/view_messages.h b/content/common/view_messages.h
index ffa017ce8363800440233c2c8eabb85fe7007855..d3b252f373effd778a0ddfe5b0ffc194de8dbd49 100644
--- a/content/common/view_messages.h
+++ b/content/common/view_messages.h
@@ -26,6 +26,7 @@
#include "content/common/view_message_enums.h"
#include "content/public/common/common_param_traits.h"
#include "content/public/common/favicon_url.h"
+#include "content/public/common/form_field_data.h"
#include "content/public/common/menu_item.h"
#include "content/public/common/page_state.h"
#include "content/public/common/page_zoom.h"
@@ -200,6 +201,12 @@ IPC_STRUCT_TRAITS_BEGIN(content::MenuItem)
IPC_STRUCT_TRAITS_MEMBER(submenu)
IPC_STRUCT_TRAITS_END()
+IPC_STRUCT_TRAITS_BEGIN(content::FormFieldData)
+ IPC_STRUCT_TRAITS_MEMBER(text)
+ IPC_STRUCT_TRAITS_MEMBER(placeholder)
+ IPC_STRUCT_TRAITS_MEMBER(text_input_type)
+IPC_STRUCT_TRAITS_END()
+
IPC_STRUCT_TRAITS_BEGIN(content::DateTimeSuggestion)
IPC_STRUCT_TRAITS_MEMBER(value)
IPC_STRUCT_TRAITS_MEMBER(localized_value)
@@ -579,6 +586,10 @@ IPC_MESSAGE_ROUTED1(ViewMsg_ReleaseDisambiguationPopupBitmap,
// Fetches complete rendered content of a web page as plain text.
IPC_MESSAGE_ROUTED0(ViewMsg_GetRenderedText)
+// Requests the renderer for information about currently focused text input
+// element.
+IPC_MESSAGE_ROUTED1(ViewMsg_GetFocusedFormFieldData, int)
+
#if defined(OS_ANDROID)
// Notifies the renderer whether hiding/showing the top controls is enabled
// and whether or not to animate to the proper state.
@@ -795,6 +806,12 @@ IPC_MESSAGE_ROUTED3(ViewHostMsg_RequestPpapiBrokerPermission,
base::FilePath /* plugin_path */)
#endif // defined(ENABLE_PLUGINS)
+// Reply message for ViewMsg_GetFocusedFormFieldData. Sends info about the
+// currently focused form field.
+IPC_MESSAGE_ROUTED2(ViewHostMsg_SetFocusedFormFieldDataReply,
+ int,
+ content::FormFieldData)
+
// Send the tooltip text for the current mouse position to the browser.
IPC_MESSAGE_ROUTED2(ViewHostMsg_SetTooltipText,
base::string16 /* tooltip text string */,

Powered by Google App Engine
This is Rietveld 408576698