| Index: content/renderer/render_frame_impl.h
|
| diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
|
| index 404f6a93801c71b3729f14407664e710553b1349..57a3b49248694d9cd3eed3f5bb026645dbef16d4 100644
|
| --- a/content/renderer/render_frame_impl.h
|
| +++ b/content/renderer/render_frame_impl.h
|
| @@ -342,6 +342,12 @@ class CONTENT_EXPORT RenderFrameImpl
|
| // Called when the widget receives a mouse event.
|
| void RenderWidgetWillHandleMouseEvent();
|
|
|
| + // Notifies the browser of text selection changes made.
|
| + void SetSelectedText(const base::string16& selection_text,
|
| + size_t offset,
|
| + const gfx::Range& range,
|
| + bool user_initiated);
|
| +
|
| #if BUILDFLAG(ENABLE_PLUGINS)
|
| // Get/set the plugin which will be used to handle document find requests.
|
| void set_plugin_find_handler(PepperPluginInstanceImpl* plugin) {
|
| @@ -467,9 +473,6 @@ class CONTENT_EXPORT RenderFrameImpl
|
| bool IsFTPDirectoryListing() override;
|
| void AttachGuest(int element_instance_id) override;
|
| void DetachGuest(int element_instance_id) override;
|
| - void SetSelectedText(const base::string16& selection_text,
|
| - size_t offset,
|
| - const gfx::Range& range) override;
|
| void EnsureMojoBuiltinsAreAvailable(v8::Isolate* isolate,
|
| v8::Local<v8::Context> context) override;
|
| void AddMessageToConsole(ConsoleMessageLevel level,
|
| @@ -1020,7 +1023,7 @@ class CONTENT_EXPORT RenderFrameImpl
|
| // it has changed.
|
| // TODO(varunjain): delete this method once we figure out how to keep
|
| // selection handles in sync with the webpage.
|
| - void SyncSelectionIfRequired();
|
| + void SyncSelectionIfRequired(bool user_initiated);
|
|
|
| bool RunJavaScriptDialog(JavaScriptDialogType type,
|
| const base::string16& message,
|
|
|