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

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

Issue 2884243003: Add a mojo channel for frame messages. (Closed)
Patch Set: Fix presubmit warning I ignored Created 3 years, 7 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/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 d890e64f44973d7163083f85db7c569be1b2f0f6..465086c739b551fb249e520f33be7a3aceb68384 100644
--- a/content/browser/frame_host/interstitial_page_impl.cc
+++ b/content/browser/frame_host/interstitial_page_impl.cc
@@ -438,8 +438,7 @@ void InterstitialPageImpl::Cut() {
if (!focused_node)
return;
- focused_node->current_frame_host()->Send(
- new InputMsg_Cut(focused_node->current_frame_host()->GetRoutingID()));
+ focused_node->current_frame_host()->GetFrameInputHandler()->Cut();
RecordAction(base::UserMetricsAction("Cut"));
}
@@ -448,8 +447,7 @@ void InterstitialPageImpl::Copy() {
if (!focused_node)
return;
- focused_node->current_frame_host()->Send(
- new InputMsg_Copy(focused_node->current_frame_host()->GetRoutingID()));
+ focused_node->current_frame_host()->GetFrameInputHandler()->Copy();
RecordAction(base::UserMetricsAction("Copy"));
}
@@ -458,8 +456,7 @@ void InterstitialPageImpl::Paste() {
if (!focused_node)
return;
- focused_node->current_frame_host()->Send(
- new InputMsg_Paste(focused_node->current_frame_host()->GetRoutingID()));
+ focused_node->current_frame_host()->GetFrameInputHandler()->Paste();
RecordAction(base::UserMetricsAction("Paste"));
}
@@ -468,8 +465,7 @@ void InterstitialPageImpl::SelectAll() {
if (!focused_node)
return;
- focused_node->current_frame_host()->Send(new InputMsg_SelectAll(
- focused_node->current_frame_host()->GetRoutingID()));
+ focused_node->current_frame_host()->GetFrameInputHandler()->SelectAll();
RecordAction(base::UserMetricsAction("SelectAll"));
}

Powered by Google App Engine
This is Rietveld 408576698