Index: content/browser/frame_host/interstitial_page_impl.cc |
diff --git a/content/browser/frame_host/interstitial_page_impl.cc b/content/browser/frame_host/interstitial_page_impl.cc |
index d3a20e0a0b3baeb49450c83b11d5f21516b4fbef..6ea83771aa928314a77e5f4267cadedf1073d5fc 100644 |
--- a/content/browser/frame_host/interstitial_page_impl.cc |
+++ b/content/browser/frame_host/interstitial_page_impl.cc |
@@ -29,6 +29,7 @@ |
#include "content/browser/web_contents/web_contents_impl.h" |
#include "content/browser/web_contents/web_contents_view.h" |
#include "content/common/frame_messages.h" |
+#include "content/common/input_messages.h" |
#include "content/common/view_messages.h" |
#include "content/public/browser/browser_context.h" |
#include "content/public/browser/browser_thread.h" |
@@ -426,6 +427,39 @@ AccessibilityMode InterstitialPageImpl::GetAccessibilityMode() const { |
return AccessibilityModeOff; |
} |
+void InterstitialPageImpl::Cut() { |
+ FrameTreeNode* focused_node = frame_tree_.GetFocusedFrame(); |
+ RenderFrameHostImpl* focused_frame = |
+ focused_node ? focused_node->current_frame_host() : nullptr; |
+ if (!focused_frame) |
+ return; |
+ |
+ focused_frame->Send(new InputMsg_Cut(focused_frame->GetRoutingID())); |
+ RecordAction(base::UserMetricsAction("Cut")); |
+} |
+ |
+void InterstitialPageImpl::Copy() { |
+ FrameTreeNode* focused_node = frame_tree_.GetFocusedFrame(); |
+ RenderFrameHostImpl* focused_frame = |
+ focused_node ? focused_node->current_frame_host() : nullptr; |
+ if (!focused_frame) |
+ return; |
+ |
+ focused_frame->Send(new InputMsg_Copy(focused_frame->GetRoutingID())); |
+ RecordAction(base::UserMetricsAction("Copy")); |
+} |
+ |
+void InterstitialPageImpl::Paste() { |
+ FrameTreeNode* focused_node = frame_tree_.GetFocusedFrame(); |
+ RenderFrameHostImpl* focused_frame = |
+ focused_node ? focused_node->current_frame_host() : nullptr; |
+ if (!focused_frame) |
+ return; |
+ |
+ focused_frame->Send(new InputMsg_Paste(focused_frame->GetRoutingID())); |
+ RecordAction(base::UserMetricsAction("Paste")); |
+} |
+ |
RenderViewHostDelegateView* InterstitialPageImpl::GetDelegateView() { |
return rvh_delegate_view_.get(); |
} |