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

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 438843002: Delete code for inspector preferences. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged. Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/renderer_host/render_view_host_impl.h" 5 #include "content/browser/renderer_host/render_view_host_impl.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 930 matching lines...) Expand 10 before | Expand all | Expand 10 after
941 IPC_BEGIN_MESSAGE_MAP(RenderViewHostImpl, msg) 941 IPC_BEGIN_MESSAGE_MAP(RenderViewHostImpl, msg)
942 IPC_MESSAGE_HANDLER(ViewHostMsg_ShowView, OnShowView) 942 IPC_MESSAGE_HANDLER(ViewHostMsg_ShowView, OnShowView)
943 IPC_MESSAGE_HANDLER(ViewHostMsg_ShowWidget, OnShowWidget) 943 IPC_MESSAGE_HANDLER(ViewHostMsg_ShowWidget, OnShowWidget)
944 IPC_MESSAGE_HANDLER(ViewHostMsg_ShowFullscreenWidget, 944 IPC_MESSAGE_HANDLER(ViewHostMsg_ShowFullscreenWidget,
945 OnShowFullscreenWidget) 945 OnShowFullscreenWidget)
946 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_RunModal, OnRunModal) 946 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_RunModal, OnRunModal)
947 IPC_MESSAGE_HANDLER(ViewHostMsg_RenderViewReady, OnRenderViewReady) 947 IPC_MESSAGE_HANDLER(ViewHostMsg_RenderViewReady, OnRenderViewReady)
948 IPC_MESSAGE_HANDLER(ViewHostMsg_RenderProcessGone, OnRenderProcessGone) 948 IPC_MESSAGE_HANDLER(ViewHostMsg_RenderProcessGone, OnRenderProcessGone)
949 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateState, OnUpdateState) 949 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateState, OnUpdateState)
950 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateTargetURL, OnUpdateTargetURL) 950 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateTargetURL, OnUpdateTargetURL)
951 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateInspectorSetting,
952 OnUpdateInspectorSetting)
953 IPC_MESSAGE_HANDLER(ViewHostMsg_Close, OnClose) 951 IPC_MESSAGE_HANDLER(ViewHostMsg_Close, OnClose)
954 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestMove, OnRequestMove) 952 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestMove, OnRequestMove)
955 IPC_MESSAGE_HANDLER(ViewHostMsg_DocumentAvailableInMainFrame, 953 IPC_MESSAGE_HANDLER(ViewHostMsg_DocumentAvailableInMainFrame,
956 OnDocumentAvailableInMainFrame) 954 OnDocumentAvailableInMainFrame)
957 IPC_MESSAGE_HANDLER(ViewHostMsg_ToggleFullscreen, OnToggleFullscreen) 955 IPC_MESSAGE_HANDLER(ViewHostMsg_ToggleFullscreen, OnToggleFullscreen)
958 IPC_MESSAGE_HANDLER(ViewHostMsg_DidContentsPreferredSizeChange, 956 IPC_MESSAGE_HANDLER(ViewHostMsg_DidContentsPreferredSizeChange,
959 OnDidContentsPreferredSizeChange) 957 OnDidContentsPreferredSizeChange)
960 IPC_MESSAGE_HANDLER(ViewHostMsg_DidChangeScrollOffset, 958 IPC_MESSAGE_HANDLER(ViewHostMsg_DidChangeScrollOffset,
961 OnDidChangeScrollOffset) 959 OnDidChangeScrollOffset)
962 IPC_MESSAGE_HANDLER(ViewHostMsg_RouteCloseEvent, 960 IPC_MESSAGE_HANDLER(ViewHostMsg_RouteCloseEvent,
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
1128 void RenderViewHostImpl::OnUpdateTargetURL(int32 page_id, const GURL& url) { 1126 void RenderViewHostImpl::OnUpdateTargetURL(int32 page_id, const GURL& url) {
1129 CHECK_EQ(page_id_, page_id); 1127 CHECK_EQ(page_id_, page_id);
1130 if (IsRVHStateActive(rvh_state_)) 1128 if (IsRVHStateActive(rvh_state_))
1131 delegate_->UpdateTargetURL(page_id_, url); 1129 delegate_->UpdateTargetURL(page_id_, url);
1132 1130
1133 // Send a notification back to the renderer that we are ready to 1131 // Send a notification back to the renderer that we are ready to
1134 // receive more target urls. 1132 // receive more target urls.
1135 Send(new ViewMsg_UpdateTargetURL_ACK(GetRoutingID())); 1133 Send(new ViewMsg_UpdateTargetURL_ACK(GetRoutingID()));
1136 } 1134 }
1137 1135
1138 void RenderViewHostImpl::OnUpdateInspectorSetting(
1139 const std::string& key, const std::string& value) {
1140 GetContentClient()->browser()->UpdateInspectorSetting(
1141 this, key, value);
1142 }
1143
1144 void RenderViewHostImpl::OnClose() { 1136 void RenderViewHostImpl::OnClose() {
1145 // If the renderer is telling us to close, it has already run the unload 1137 // If the renderer is telling us to close, it has already run the unload
1146 // events, and we can take the fast path. 1138 // events, and we can take the fast path.
1147 ClosePageIgnoringUnloadEvents(); 1139 ClosePageIgnoringUnloadEvents();
1148 } 1140 }
1149 1141
1150 void RenderViewHostImpl::OnRequestMove(const gfx::Rect& pos) { 1142 void RenderViewHostImpl::OnRequestMove(const gfx::Rect& pos) {
1151 if (IsRVHStateActive(rvh_state_)) 1143 if (IsRVHStateActive(rvh_state_))
1152 delegate_->RequestMove(pos); 1144 delegate_->RequestMove(pos);
1153 Send(new ViewMsg_Move_ACK(GetRoutingID())); 1145 Send(new ViewMsg_Move_ACK(GetRoutingID()));
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
1587 FrameTree* frame_tree = delegate_->GetFrameTree(); 1579 FrameTree* frame_tree = delegate_->GetFrameTree();
1588 1580
1589 frame_tree->ResetForMainFrameSwap(); 1581 frame_tree->ResetForMainFrameSwap();
1590 } 1582 }
1591 1583
1592 void RenderViewHostImpl::SelectWordAroundCaret() { 1584 void RenderViewHostImpl::SelectWordAroundCaret() {
1593 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); 1585 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID()));
1594 } 1586 }
1595 1587
1596 } // namespace content 1588 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698