Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Unified Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 183923030: Almost finish moving context_menu_node_ from RenderViewImpl to RenderFrameImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/frame_host/render_frame_host_impl.cc
===================================================================
--- content/browser/frame_host/render_frame_host_impl.cc (revision 254898)
+++ content/browser/frame_host/render_frame_host_impl.cc (working copy)
@@ -16,6 +16,7 @@
#include "content/browser/frame_host/render_frame_host_delegate.h"
#include "content/browser/renderer_host/render_view_host_impl.h"
#include "content/common/frame_messages.h"
+#include "content/common/input_messages.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/content_browser_client.h"
#include "content/public/browser/render_process_host.h"
@@ -131,6 +132,21 @@
Send(new FrameMsg_CustomContextMenuAction(routing_id_, context, action));
}
+void RenderFrameHostImpl::Cut() {
+ Send(new InputMsg_Cut(GetRoutingID()));
nasko 2014/03/05 21:50:47 nit: routing_id_ here and in ::Paste, to be consis
jam 2014/03/06 00:59:37 Done.
+ RecordAction(base::UserMetricsAction("Cut"));
+}
+
+void RenderFrameHostImpl::Copy() {
+ Send(new InputMsg_Copy(routing_id_));
+ RecordAction(base::UserMetricsAction("Copy"));
+}
+
+void RenderFrameHostImpl::Paste() {
+ Send(new InputMsg_Paste(GetRoutingID()));
+ RecordAction(base::UserMetricsAction("Paste"));
+}
+
RenderViewHost* RenderFrameHostImpl::GetRenderViewHost() {
return render_view_host_;
}
@@ -424,7 +440,7 @@
// completing a RVH swap or unload handler.
render_view_host_->SetState(RenderViewHostImpl::STATE_DEFAULT);
- Send(new FrameMsg_Navigate(GetRoutingID(), params));
+ Send(new FrameMsg_Navigate(routing_id_, params));
}
// Force the throbber to start. We do this because Blink's "started

Powered by Google App Engine
This is Rietveld 408576698