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

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

Issue 2157793002: Remove ContentViewCore::RequestTextSurroundingSelection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months 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 fe6afddd09d44dde202d18b06ab1d68ebf5ac1f2..b97f8c911b790b3c767ea8591186a04d0f99edbb 100644
--- a/content/browser/frame_host/render_frame_host_impl.h
+++ b/content/browser/frame_host/render_frame_host_impl.h
@@ -204,6 +204,11 @@ class CONTENT_EXPORT RenderFrameHostImpl
// SiteInstanceImpl::Observer
void RenderProcessGone(SiteInstanceImpl* site_instance) override;
+ void SendTextSurroundingSelectionRequest(
+ const TextSurroundingSelectionCallback& callback,
+ int max_length) override;
+ bool HasTextSurroundingSelectionCallback() override;
+
// Creates a RenderFrame in the renderer process.
bool CreateRenderFrame(int proxy_routing_id,
int opener_routing_id,
@@ -1039,6 +1044,10 @@ class CONTENT_EXPORT RenderFrameHostImpl
mojo::Binding<mojom::FrameHost> frame_host_binding_;
mojom::FramePtr frame_;
+ // Callback for responding when
+ // |FrameHostMsg_TextSurroundingSelectionResponse| message comes.
+ TextSurroundingSelectionCallback text_surrounding_selection_callback_;
+
// NOTE: This must be the last member.
base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;

Powered by Google App Engine
This is Rietveld 408576698