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

Unified Diff: content/browser/renderer_host/render_view_host.cc

Issue 7972006: Removed sending of the content IPC messages from chrome and replaced them with corresponding APIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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/renderer_host/render_view_host.cc
===================================================================
--- content/browser/renderer_host/render_view_host.cc (revision 101850)
+++ content/browser/renderer_host/render_view_host.cc (working copy)
@@ -481,49 +481,6 @@
return next_id++;
}
-void RenderViewHost::Undo() {
- Send(new ViewMsg_Undo(routing_id()));
- UserMetrics::RecordAction(UserMetricsAction("Undo"));
-}
-
-void RenderViewHost::Redo() {
- Send(new ViewMsg_Redo(routing_id()));
- UserMetrics::RecordAction(UserMetricsAction("Redo"));
-}
-
-void RenderViewHost::Cut() {
- Send(new ViewMsg_Cut(routing_id()));
- UserMetrics::RecordAction(UserMetricsAction("Cut"));
-}
-
-void RenderViewHost::Copy() {
- Send(new ViewMsg_Copy(routing_id()));
- UserMetrics::RecordAction(UserMetricsAction("Copy"));
-}
-
-void RenderViewHost::CopyToFindPboard() {
-#if defined(OS_MACOSX)
- // Windows/Linux don't have the concept of a find pasteboard.
- Send(new ViewMsg_CopyToFindPboard(routing_id()));
- UserMetrics::RecordAction(UserMetricsAction("CopyToFindPboard"));
-#endif
-}
-
-void RenderViewHost::Paste() {
- Send(new ViewMsg_Paste(routing_id()));
- UserMetrics::RecordAction(UserMetricsAction("Paste"));
-}
-
-void RenderViewHost::Delete() {
- Send(new ViewMsg_Delete(routing_id()));
- UserMetrics::RecordAction(UserMetricsAction("DeleteSelection"));
-}
-
-void RenderViewHost::SelectAll() {
- Send(new ViewMsg_SelectAll(routing_id()));
- UserMetrics::RecordAction(UserMetricsAction("SelectAll"));
-}
-
void RenderViewHost::JavaScriptDialogClosed(IPC::Message* reply_msg,
bool success,
const string16& user_input) {
@@ -1261,6 +1218,22 @@
}
}
+void RenderViewHost::SetAltErrorPageURL(const GURL& url) {
+ Send(new ViewMsg_SetAltErrorPageURL(routing_id(), url));
+}
+
+void RenderViewHost::ExitFullscreen() {
+ Send(new ViewMsg_ExitFullscreen(routing_id()));
+}
+
+void RenderViewHost::UpdateWebkitPreferences(const WebPreferences& prefs) {
+ Send(new ViewMsg_UpdateWebPreferences(routing_id(), prefs));
+}
+
+void RenderViewHost::ClearFocusedNode() {
+ Send(new ViewMsg_ClearFocusedNode(routing_id()));
+}
+
void RenderViewHost::OnAccessibilityNotifications(
const std::vector<ViewHostMsg_AccessibilityNotification_Params>& params) {
if (view() && !is_swapped_out_)

Powered by Google App Engine
This is Rietveld 408576698