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 e5e6ce820e881e1469bda7a04b80a5eb9ee7cf00..3ad52fe107bc449a92e0ac00d9c0b4ba82cea201 100644 |
--- a/content/browser/frame_host/render_frame_host_impl.h |
+++ b/content/browser/frame_host/render_frame_host_impl.h |
@@ -163,6 +163,7 @@ class CONTENT_EXPORT RenderFrameHostImpl |
int GetProxyCount() override; |
void FilesSelectedInChooser(const std::vector<FileChooserFileInfo>& files, |
FileChooserParams::Mode permissions) override; |
+ bool HasSelection() override; |
void RequestTextSurroundingSelection( |
const TextSurroundingSelectionCallback& callback, |
int max_length) override; |
@@ -1036,6 +1037,9 @@ class CONTENT_EXPORT RenderFrameHostImpl |
// called (no pending instance should be set). |
bool should_reuse_web_ui_; |
+ // If true, then the RenderFrame has selected text. |
+ bool has_selection_; |
+ |
// PlzNavigate: The LoFi state of the last navigation. This is used during |
// history navigation of subframes to ensure that subframes navigate with the |
// same LoFi status as the top-level frame. |