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

Unified Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 2370393002: Extracting placeholder information from Webkit to Blimp (Closed)
Patch Set: Added test 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/browser/frame_host/render_frame_host_impl.h
diff --git a/content/browser/frame_host/render_frame_host_impl.h b/content/browser/frame_host/render_frame_host_impl.h
index e6efd6a475eb71b13b686a26204c9480b1419190..71d44abf77cf6180a7f98f90c3e3ea0b2e295083 100644
--- a/content/browser/frame_host/render_frame_host_impl.h
+++ b/content/browser/frame_host/render_frame_host_impl.h
@@ -165,6 +165,7 @@ class CONTENT_EXPORT RenderFrameHostImpl
void RequestTextSurroundingSelection(
const TextSurroundingSelectionCallback& callback,
int max_length) override;
+ void RequestFocusedFormFieldData(FormFieldDataCallback& callback) override;
// mojom::FrameHost
void GetInterfaceProvider(
@@ -505,6 +506,10 @@ class CONTENT_EXPORT RenderFrameHostImpl
#endif
#endif
+ // This method contains response for the focused field info request.
+ void OnFocusedFormFieldDataResponse(int request_id,
Charlie Reis 2016/11/11 22:20:46 nit: This should be declared with the other IPC ha
shaktisahu 2016/11/15 05:44:54 Done.
+ const FormFieldData& field_data);
+
// PlzNavigate: Indicates that a navigation is ready to commit and can be
// handled by this RenderFrame.
void CommitNavigation(ResourceResponse* response,
@@ -875,6 +880,9 @@ class CONTENT_EXPORT RenderFrameHostImpl
std::map<int, JavaScriptResultCallback> javascript_callbacks_;
std::map<uint64_t, VisualStateCallback> visual_state_callbacks_;
+ // Callbacks for getting text input info.
+ std::map<int, FormFieldDataCallback> form_field_data_callbacks_;
Charlie Reis 2016/11/11 22:20:46 As dtrainor@ noted, there's a risk that these will
shaktisahu 2016/11/15 05:44:54 Done.
+
// RenderFrameHosts that need management of the rendering and input events
// for their frame subtrees require RenderWidgetHosts. This typically
// means frames that are rendered in different processes from their parent

Powered by Google App Engine
This is Rietveld 408576698