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

Unified Diff: content/public/browser/render_frame_host.h

Issue 2157793002: Remove ContentViewCore::RequestTextSurroundingSelection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed the review comments. 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
« no previous file with comments | « content/public/browser/android/content_view_core.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/render_frame_host.h
diff --git a/content/public/browser/render_frame_host.h b/content/public/browser/render_frame_host.h
index 2fcb9cf15140032fcea2101bb9787b5248542fac..a3a88636f2c87e8dda41c233d5f9090288b23c4d 100644
--- a/content/public/browser/render_frame_host.h
+++ b/content/public/browser/render_frame_host.h
@@ -210,6 +210,14 @@ class CONTENT_EXPORT RenderFrameHost : public IPC::Listener,
const std::vector<content::FileChooserFileInfo>& files,
FileChooserParams::Mode permissions) = 0;
+ // Text surrounding selection.
+ typedef base::Callback<
+ void(const base::string16& content, int start_offset, int end_offset)>
+ TextSurroundingSelectionCallback;
+ virtual void RequestTextSurroundingSelection(
+ const TextSurroundingSelectionCallback& callback,
+ int max_length) = 0;
+
private:
// This interface should only be implemented inside content.
friend class RenderFrameHostImpl;
« no previous file with comments | « content/public/browser/android/content_view_core.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698