summaryrefslogtreecommitdiffstats
path: root/content/renderer/render_view_impl.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-08 02:56:07 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-08 02:56:07 +0000
commit9c9343bd7960182b0c7d21e25d6ad69c348facc3 (patch)
tree0dfe865a5d70dc01fcd856b3dcef37a10d15b0d5 /content/renderer/render_view_impl.cc
parent9f2cc0c6d7142a150d7fd538eb9476c0ec84b886 (diff)
downloadchromium_src-9c9343bd7960182b0c7d21e25d6ad69c348facc3.zip
chromium_src-9c9343bd7960182b0c7d21e25d6ad69c348facc3.tar.gz
chromium_src-9c9343bd7960182b0c7d21e25d6ad69c348facc3.tar.bz2
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 R=nasko@chromium.org Review URL: https://codereview.chromium.org/183923030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@255735 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/render_view_impl.cc')
-rw-r--r--content/renderer/render_view_impl.cc32
1 files changed, 0 insertions, 32 deletions
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 552224a..296fce9 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -1084,12 +1084,9 @@ bool RenderViewImpl::OnMessageReceived(const IPC::Message& message) {
bool handled = true;
bool msg_is_ok = true;
IPC_BEGIN_MESSAGE_MAP_EX(RenderViewImpl, message, msg_is_ok)
- IPC_MESSAGE_HANDLER(InputMsg_Copy, OnCopy)
- IPC_MESSAGE_HANDLER(InputMsg_Cut, OnCut)
IPC_MESSAGE_HANDLER(InputMsg_Delete, OnDelete)
IPC_MESSAGE_HANDLER(InputMsg_ExecuteEditCommand, OnExecuteEditCommand)
IPC_MESSAGE_HANDLER(InputMsg_MoveCaret, OnMoveCaret)
- IPC_MESSAGE_HANDLER(InputMsg_Paste, OnPaste)
IPC_MESSAGE_HANDLER(InputMsg_PasteAndMatchStyle, OnPasteAndMatchStyle)
IPC_MESSAGE_HANDLER(InputMsg_Redo, OnRedo)
IPC_MESSAGE_HANDLER(InputMsg_Replace, OnReplace)
@@ -1287,26 +1284,6 @@ void RenderViewImpl::OnUpdateTargetURLAck() {
target_url_status_ = TARGET_NONE;
}
-void RenderViewImpl::OnCopy() {
- if (!webview())
- return;
-
- base::AutoReset<bool> handling_select_range(&handling_select_range_, true);
- WebNode current_node = context_menu_node_.isNull() ?
- GetFocusedElement() : context_menu_node_;
- webview()->focusedFrame()->executeCommand(WebString::fromUTF8("Copy"),
- current_node);
-}
-
-void RenderViewImpl::OnCut() {
- if (!webview())
- return;
-
- base::AutoReset<bool> handling_select_range(&handling_select_range_, true);
- webview()->focusedFrame()->executeCommand(WebString::fromUTF8("Cut"),
- GetFocusedElement());
-}
-
void RenderViewImpl::OnDelete() {
if (!webview())
return;
@@ -1333,15 +1310,6 @@ void RenderViewImpl::OnMoveCaret(const gfx::Point& point) {
webview()->focusedFrame()->moveCaretSelection(point);
}
-void RenderViewImpl::OnPaste() {
- if (!webview())
- return;
-
- base::AutoReset<bool> handling_select_range(&handling_select_range_, true);
- webview()->focusedFrame()->executeCommand(WebString::fromUTF8("Paste"),
- GetFocusedElement());
-}
-
void RenderViewImpl::OnPasteAndMatchStyle() {
if (!webview())
return;