Almost finish moving context_menu_node_ from RenderViewImpl to RenderFrameImpl.
The remaining uses of context_menu_node_ are easy to convert, but I've left them to a future cl so as to not make this cl any bigger. The main part of this cl is to move the Copy edit command from RenderViewHost to RenderFrameHost. To do that, I also had to convert Cut and Paste at the same time because of BrowserView.
BUG=304341
[email protected]
Review URL: https://codereview.chromium.org/183923030
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@255735 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
index 4813d13..313f192 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -201,6 +201,7 @@
const blink::WebString& name);
virtual void didDisownOpener(blink::WebFrame* frame);
virtual void frameDetached(blink::WebFrame* frame);
+ virtual void frameFocused();
virtual void willClose(blink::WebFrame* frame);
virtual void didChangeName(blink::WebFrame* frame,
const blink::WebString& name);
@@ -350,6 +351,10 @@
void UpdateURL(blink::WebFrame* frame);
+ // Gets the focused element. If no such element exists then the element will
+ // be NULL.
+ blink::WebElement GetFocusedElement();
+
// IPC message handlers ------------------------------------------------------
//
// The documentation for these functions should be in
@@ -362,7 +367,11 @@
void OnContextMenuClosed(const CustomContextMenuContext& custom_context);
void OnCustomContextMenuAction(const CustomContextMenuContext& custom_context,
unsigned action);
+ void OnCut();
+ void OnCopy();
+ void OnPaste();
void OnCSSInsertRequest(const std::string& css);
+
// Virtual since overridden by WebTestProxy for layout tests.
virtual blink::WebNavigationPolicy DecidePolicyForNavigation(
RenderFrame* render_frame,