OLD | NEW |
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 1200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1211 Send(new ViewMsg_EnableAutoResize(GetRoutingID(), min_size, max_size)); | 1211 Send(new ViewMsg_EnableAutoResize(GetRoutingID(), min_size, max_size)); |
1212 } | 1212 } |
1213 | 1213 |
1214 void RenderViewHostImpl::DisableAutoResize(const gfx::Size& new_size) { | 1214 void RenderViewHostImpl::DisableAutoResize(const gfx::Size& new_size) { |
1215 GetWidget()->SetAutoResize(false, gfx::Size(), gfx::Size()); | 1215 GetWidget()->SetAutoResize(false, gfx::Size(), gfx::Size()); |
1216 Send(new ViewMsg_DisableAutoResize(GetRoutingID(), new_size)); | 1216 Send(new ViewMsg_DisableAutoResize(GetRoutingID(), new_size)); |
1217 if (!new_size.IsEmpty()) | 1217 if (!new_size.IsEmpty()) |
1218 GetWidget()->GetView()->SetSize(new_size); | 1218 GetWidget()->GetView()->SetSize(new_size); |
1219 } | 1219 } |
1220 | 1220 |
1221 void RenderViewHostImpl::CopyImageAt(int x, int y) { | |
1222 Send(new ViewMsg_CopyImageAt(GetRoutingID(), x, y)); | |
1223 } | |
1224 | |
1225 void RenderViewHostImpl::SaveImageAt(int x, int y) { | |
1226 Send(new ViewMsg_SaveImageAt(GetRoutingID(), x, y)); | |
1227 } | |
1228 | |
1229 void RenderViewHostImpl::ExecuteMediaPlayerActionAtLocation( | 1221 void RenderViewHostImpl::ExecuteMediaPlayerActionAtLocation( |
1230 const gfx::Point& location, const blink::WebMediaPlayerAction& action) { | 1222 const gfx::Point& location, const blink::WebMediaPlayerAction& action) { |
1231 Send(new ViewMsg_MediaPlayerActionAt(GetRoutingID(), location, action)); | 1223 Send(new ViewMsg_MediaPlayerActionAt(GetRoutingID(), location, action)); |
1232 } | 1224 } |
1233 | 1225 |
1234 void RenderViewHostImpl::ExecutePluginActionAtLocation( | 1226 void RenderViewHostImpl::ExecutePluginActionAtLocation( |
1235 const gfx::Point& location, const blink::WebPluginAction& action) { | 1227 const gfx::Point& location, const blink::WebPluginAction& action) { |
1236 Send(new ViewMsg_PluginActionAt(GetRoutingID(), location, action)); | 1228 Send(new ViewMsg_PluginActionAt(GetRoutingID(), location, action)); |
1237 } | 1229 } |
1238 | 1230 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1321 } else { | 1313 } else { |
1322 render_view_ready_on_process_launch_ = true; | 1314 render_view_ready_on_process_launch_ = true; |
1323 } | 1315 } |
1324 } | 1316 } |
1325 | 1317 |
1326 void RenderViewHostImpl::RenderViewReady() { | 1318 void RenderViewHostImpl::RenderViewReady() { |
1327 delegate_->RenderViewReady(this); | 1319 delegate_->RenderViewReady(this); |
1328 } | 1320 } |
1329 | 1321 |
1330 } // namespace content | 1322 } // namespace content |
OLD | NEW |