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 1174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1185 Send(new ViewMsg_EnableAutoResize(GetRoutingID(), min_size, max_size)); | 1185 Send(new ViewMsg_EnableAutoResize(GetRoutingID(), min_size, max_size)); |
1186 } | 1186 } |
1187 | 1187 |
1188 void RenderViewHostImpl::DisableAutoResize(const gfx::Size& new_size) { | 1188 void RenderViewHostImpl::DisableAutoResize(const gfx::Size& new_size) { |
1189 GetWidget()->SetAutoResize(false, gfx::Size(), gfx::Size()); | 1189 GetWidget()->SetAutoResize(false, gfx::Size(), gfx::Size()); |
1190 Send(new ViewMsg_DisableAutoResize(GetRoutingID(), new_size)); | 1190 Send(new ViewMsg_DisableAutoResize(GetRoutingID(), new_size)); |
1191 if (!new_size.IsEmpty()) | 1191 if (!new_size.IsEmpty()) |
1192 GetWidget()->GetView()->SetSize(new_size); | 1192 GetWidget()->GetView()->SetSize(new_size); |
1193 } | 1193 } |
1194 | 1194 |
1195 void RenderViewHostImpl::CopyImageAt(int x, int y) { | |
1196 Send(new ViewMsg_CopyImageAt(GetRoutingID(), x, y)); | |
1197 } | |
1198 | |
1199 void RenderViewHostImpl::SaveImageAt(int x, int y) { | |
1200 Send(new ViewMsg_SaveImageAt(GetRoutingID(), x, y)); | |
1201 } | |
1202 | |
1203 void RenderViewHostImpl::ExecuteMediaPlayerActionAtLocation( | 1195 void RenderViewHostImpl::ExecuteMediaPlayerActionAtLocation( |
1204 const gfx::Point& location, const blink::WebMediaPlayerAction& action) { | 1196 const gfx::Point& location, const blink::WebMediaPlayerAction& action) { |
1205 Send(new ViewMsg_MediaPlayerActionAt(GetRoutingID(), location, action)); | 1197 Send(new ViewMsg_MediaPlayerActionAt(GetRoutingID(), location, action)); |
1206 } | 1198 } |
1207 | 1199 |
1208 void RenderViewHostImpl::ExecutePluginActionAtLocation( | 1200 void RenderViewHostImpl::ExecutePluginActionAtLocation( |
1209 const gfx::Point& location, const blink::WebPluginAction& action) { | 1201 const gfx::Point& location, const blink::WebPluginAction& action) { |
1210 Send(new ViewMsg_PluginActionAt(GetRoutingID(), location, action)); | 1202 Send(new ViewMsg_PluginActionAt(GetRoutingID(), location, action)); |
1211 } | 1203 } |
1212 | 1204 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1282 } else { | 1274 } else { |
1283 render_view_ready_on_process_launch_ = true; | 1275 render_view_ready_on_process_launch_ = true; |
1284 } | 1276 } |
1285 } | 1277 } |
1286 | 1278 |
1287 void RenderViewHostImpl::RenderViewReady() { | 1279 void RenderViewHostImpl::RenderViewReady() { |
1288 delegate_->RenderViewReady(this); | 1280 delegate_->RenderViewReady(this); |
1289 } | 1281 } |
1290 | 1282 |
1291 } // namespace content | 1283 } // namespace content |
OLD | NEW |