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

Unified Diff: content/common/view_messages.h

Issue 2370393002: Extracting placeholder information from Webkit to Blimp (Closed)
Patch Set: Bypassing the typical text entry path 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..882d90f48f9f4c1ee614bb1679c7033073aec4f5 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_GetFormTextInputInfo. Sends info about the
+// currently focused form field.
+IPC_MESSAGE_ROUTED2(ViewHostMsg_SetFocusedFormFieldData,
David Trainor- moved to gerrit 2016/11/03 04:25:49 Should this have the word "Reply" in the message?
+ 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