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