Add a mojo channel for frame messages.
These messages are currently disabled since all input messages
need to be moved over to use mojo. But this enables a set of them
via the command line --mojo-input-messages
BUG=722928
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation
Review-Url: https://codereview.chromium.org/2884243003
Cr-Commit-Position: refs/heads/master@{#475079}
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
index f2449e2..169b4ba 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -734,6 +734,12 @@
bool ScheduleFileChooser(const FileChooserParams& params,
blink::WebFileChooserCompletion* completion);
+ bool handling_select_range() const { return handling_select_range_; }
+
+ void set_is_pasting(bool value) { is_pasting_ = value; }
+
+ void set_handling_select_range(bool value) { handling_select_range_ = value; }
+
// Plugin-related functions --------------------------------------------------
#if BUILDFLAG(ENABLE_PLUGINS)
@@ -763,6 +769,16 @@
void OnSetPepperVolume(int32_t pp_instance, double volume);
#endif // ENABLE_PLUGINS
+#if defined(OS_MACOSX)
+ void OnCopyToFindPboard();
+#endif
+
+ // Dispatches the current state of selection on the webpage to the browser if
+ // it has changed.
+ // TODO(varunjain): delete this method once we figure out how to keep
+ // selection handles in sync with the webpage.
+ void SyncSelectionIfRequired();
+
protected:
explicit RenderFrameImpl(const CreateParams& params);
@@ -959,10 +975,6 @@
#endif
#endif
-#if defined(OS_MACOSX)
- void OnCopyToFindPboard();
-#endif
-
// Callback scheduled from OnSerializeAsMHTML for when writing serialized
// MHTML to file has been completed in the file thread.
void OnWriteMHTMLToDiskComplete(
@@ -1015,12 +1027,6 @@
void UpdateEncoding(blink::WebFrame* frame,
const std::string& encoding_name);
- // Dispatches the current state of selection on the webpage to the browser if
- // it has changed.
- // TODO(varunjain): delete this method once we figure out how to keep
- // selection handles in sync with the webpage.
- void SyncSelectionIfRequired();
-
bool RunJavaScriptDialog(JavaScriptDialogType type,
const base::string16& message,
const base::string16& default_value,