Chromium Code Reviews| 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 |