| 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 1152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1163 Send(new ViewMsg_EnableAutoResize(GetRoutingID(), min_size, max_size)); | 1163 Send(new ViewMsg_EnableAutoResize(GetRoutingID(), min_size, max_size)); |
| 1164 } | 1164 } |
| 1165 | 1165 |
| 1166 void RenderViewHostImpl::DisableAutoResize(const gfx::Size& new_size) { | 1166 void RenderViewHostImpl::DisableAutoResize(const gfx::Size& new_size) { |
| 1167 GetWidget()->SetAutoResize(false, gfx::Size(), gfx::Size()); | 1167 GetWidget()->SetAutoResize(false, gfx::Size(), gfx::Size()); |
| 1168 Send(new ViewMsg_DisableAutoResize(GetRoutingID(), new_size)); | 1168 Send(new ViewMsg_DisableAutoResize(GetRoutingID(), new_size)); |
| 1169 if (!new_size.IsEmpty()) | 1169 if (!new_size.IsEmpty()) |
| 1170 GetWidget()->GetView()->SetSize(new_size); | 1170 GetWidget()->GetView()->SetSize(new_size); |
| 1171 } | 1171 } |
| 1172 | 1172 |
| 1173 void RenderViewHostImpl::CopyImageAt(int x, int y) { | |
| 1174 Send(new ViewMsg_CopyImageAt(GetRoutingID(), x, y)); | |
| 1175 } | |
| 1176 | |
| 1177 void RenderViewHostImpl::SaveImageAt(int x, int y) { | |
| 1178 Send(new ViewMsg_SaveImageAt(GetRoutingID(), x, y)); | |
| 1179 } | |
| 1180 | |
| 1181 void RenderViewHostImpl::ExecuteMediaPlayerActionAtLocation( | 1173 void RenderViewHostImpl::ExecuteMediaPlayerActionAtLocation( |
| 1182 const gfx::Point& location, const blink::WebMediaPlayerAction& action) { | 1174 const gfx::Point& location, const blink::WebMediaPlayerAction& action) { |
| 1183 Send(new ViewMsg_MediaPlayerActionAt(GetRoutingID(), location, action)); | 1175 Send(new ViewMsg_MediaPlayerActionAt(GetRoutingID(), location, action)); |
| 1184 } | 1176 } |
| 1185 | 1177 |
| 1186 void RenderViewHostImpl::ExecutePluginActionAtLocation( | 1178 void RenderViewHostImpl::ExecutePluginActionAtLocation( |
| 1187 const gfx::Point& location, const blink::WebPluginAction& action) { | 1179 const gfx::Point& location, const blink::WebPluginAction& action) { |
| 1188 Send(new ViewMsg_PluginActionAt(GetRoutingID(), location, action)); | 1180 Send(new ViewMsg_PluginActionAt(GetRoutingID(), location, action)); |
| 1189 } | 1181 } |
| 1190 | 1182 |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1344 // Note: We are using the origin URL provided by the sender here. It may be | 1336 // Note: We are using the origin URL provided by the sender here. It may be |
| 1345 // different from the receiver's. | 1337 // different from the receiver's. |
| 1346 file_system_file.url = | 1338 file_system_file.url = |
| 1347 GURL(storage::GetIsolatedFileSystemRootURIString( | 1339 GURL(storage::GetIsolatedFileSystemRootURIString( |
| 1348 file_system_url.origin(), filesystem_id, std::string()) | 1340 file_system_url.origin(), filesystem_id, std::string()) |
| 1349 .append(register_name)); | 1341 .append(register_name)); |
| 1350 } | 1342 } |
| 1351 } | 1343 } |
| 1352 | 1344 |
| 1353 } // namespace content | 1345 } // namespace content |
| OLD | NEW |