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

Unified Diff: content/common/frame_messages.h

Issue 2370393002: Extracting placeholder information from Webkit to Blimp (Closed)
Patch Set: Switched from ViewMsg_* to FrameMsg_* 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/frame_messages.h
diff --git a/content/common/frame_messages.h b/content/common/frame_messages.h
index e43fc70c48c76c0c6fb987f2cbe6186e7e47f6b3..c8594ffa81f8d31a2d0197f23e276acb0db1e258 100644
--- a/content/common/frame_messages.h
+++ b/content/common/frame_messages.h
@@ -31,6 +31,7 @@
#include "content/public/common/context_menu_params.h"
#include "content/public/common/file_chooser_file_info.h"
#include "content/public/common/file_chooser_params.h"
+#include "content/public/common/form_field_data.h"
#include "content/public/common/frame_navigate_params.h"
#include "content/public/common/javascript_message_type.h"
#include "content/public/common/page_importance_signals.h"
@@ -515,6 +516,12 @@ IPC_STRUCT_TRAITS_BEGIN(content::ContentSecurityPolicyHeader)
IPC_STRUCT_TRAITS_MEMBER(source)
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::FileChooserFileInfo)
IPC_STRUCT_TRAITS_MEMBER(file_path)
IPC_STRUCT_TRAITS_MEMBER(display_name)
@@ -719,6 +726,10 @@ IPC_MESSAGE_ROUTED0(FrameMsg_DeleteProxy)
IPC_MESSAGE_ROUTED1(FrameMsg_TextSurroundingSelectionRequest,
uint32_t /* max_length */)
+// Requests the renderer for information about currently focused text input
+// element.
+IPC_MESSAGE_ROUTED1(FrameMsg_FocusedFormFieldDataRequest, int)
+
// Tells the renderer to insert a link to the specified stylesheet. This is
// needed to support navigation transitions.
IPC_MESSAGE_ROUTED1(FrameMsg_AddStyleSheetByURL, std::string)
@@ -1351,6 +1362,12 @@ IPC_MESSAGE_ROUTED3(FrameHostMsg_TextSurroundingSelectionResponse,
uint32_t, /* startOffset */
uint32_t/* endOffset */)
+// Response for FrameMsg_FocusedFormFieldDataRequest. Sends info about the
+// currently focused form field.
+IPC_MESSAGE_ROUTED2(FrameHostMsg_FocusedFormFieldDataResponse,
+ int,
+ content::FormFieldData)
+
// Register a new handler for URL requests with the given scheme.
IPC_MESSAGE_ROUTED4(FrameHostMsg_RegisterProtocolHandler,
std::string /* scheme */,

Powered by Google App Engine
This is Rietveld 408576698