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

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

Issue 1836973003: Move download messages from Renderer to Frame filter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
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 1234 matching lines...) Expand 10 before | Expand all | Expand 10 after
1245 Send(new ViewMsg_EnableAutoResize(GetRoutingID(), min_size, max_size)); 1245 Send(new ViewMsg_EnableAutoResize(GetRoutingID(), min_size, max_size));
1246 } 1246 }
1247 1247
1248 void RenderViewHostImpl::DisableAutoResize(const gfx::Size& new_size) { 1248 void RenderViewHostImpl::DisableAutoResize(const gfx::Size& new_size) {
1249 GetWidget()->SetAutoResize(false, gfx::Size(), gfx::Size()); 1249 GetWidget()->SetAutoResize(false, gfx::Size(), gfx::Size());
1250 Send(new ViewMsg_DisableAutoResize(GetRoutingID(), new_size)); 1250 Send(new ViewMsg_DisableAutoResize(GetRoutingID(), new_size));
1251 if (!new_size.IsEmpty()) 1251 if (!new_size.IsEmpty())
1252 GetWidget()->GetView()->SetSize(new_size); 1252 GetWidget()->GetView()->SetSize(new_size);
1253 } 1253 }
1254 1254
1255 void RenderViewHostImpl::CopyImageAt(int x, int y) {
1256 Send(new ViewMsg_CopyImageAt(GetRoutingID(), x, y));
1257 }
1258
1259 void RenderViewHostImpl::SaveImageAt(int x, int y) {
1260 Send(new ViewMsg_SaveImageAt(GetRoutingID(), x, y));
1261 }
1262
1263 void RenderViewHostImpl::ExecuteMediaPlayerActionAtLocation( 1255 void RenderViewHostImpl::ExecuteMediaPlayerActionAtLocation(
1264 const gfx::Point& location, const blink::WebMediaPlayerAction& action) { 1256 const gfx::Point& location, const blink::WebMediaPlayerAction& action) {
1265 Send(new ViewMsg_MediaPlayerActionAt(GetRoutingID(), location, action)); 1257 Send(new ViewMsg_MediaPlayerActionAt(GetRoutingID(), location, action));
1266 } 1258 }
1267 1259
1268 void RenderViewHostImpl::ExecutePluginActionAtLocation( 1260 void RenderViewHostImpl::ExecutePluginActionAtLocation(
1269 const gfx::Point& location, const blink::WebPluginAction& action) { 1261 const gfx::Point& location, const blink::WebPluginAction& action) {
1270 Send(new ViewMsg_PluginActionAt(GetRoutingID(), location, action)); 1262 Send(new ViewMsg_PluginActionAt(GetRoutingID(), location, action));
1271 } 1263 }
1272 1264
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
1349 } else { 1341 } else {
1350 render_view_ready_on_process_launch_ = true; 1342 render_view_ready_on_process_launch_ = true;
1351 } 1343 }
1352 } 1344 }
1353 1345
1354 void RenderViewHostImpl::RenderViewReady() { 1346 void RenderViewHostImpl::RenderViewReady() {
1355 delegate_->RenderViewReady(this); 1347 delegate_->RenderViewReady(this);
1356 } 1348 }
1357 1349
1358 } // namespace content 1350 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698