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/browser_plugin/browser_plugin_embedder_helper.h" | 5 #include "content/browser/browser_plugin/browser_plugin_embedder_helper.h" |
6 | 6 |
7 #include "content/browser/browser_plugin/browser_plugin_embedder.h" | 7 #include "content/browser/browser_plugin/browser_plugin_embedder.h" |
8 #include "content/browser/renderer_host/render_view_host_impl.h" | 8 #include "content/browser/renderer_host/render_view_host_impl.h" |
9 #include "content/common/browser_plugin_messages.h" | 9 #include "content/common/browser_plugin_messages.h" |
10 #include "content/common/gpu/gpu_messages.h" | 10 #include "content/common/gpu/gpu_messages.h" |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 } | 91 } |
92 | 92 |
93 void BrowserPluginEmbedderHelper::OnNavigateGuest( | 93 void BrowserPluginEmbedderHelper::OnNavigateGuest( |
94 int instance_id, | 94 int instance_id, |
95 const std::string& src) { | 95 const std::string& src) { |
96 embedder_->NavigateGuest(render_view_host(), instance_id, src); | 96 embedder_->NavigateGuest(render_view_host(), instance_id, src); |
97 } | 97 } |
98 | 98 |
99 void BrowserPluginEmbedderHelper::OnUpdateRectACK( | 99 void BrowserPluginEmbedderHelper::OnUpdateRectACK( |
100 int instance_id, | 100 int instance_id, |
101 int message_id, | |
102 const BrowserPluginHostMsg_AutoSize_Params& auto_size_params, | 101 const BrowserPluginHostMsg_AutoSize_Params& auto_size_params, |
103 const BrowserPluginHostMsg_ResizeGuest_Params& resize_guest_params) { | 102 const BrowserPluginHostMsg_ResizeGuest_Params& resize_guest_params) { |
104 embedder_->UpdateRectACK(instance_id, | 103 embedder_->UpdateRectACK(instance_id, |
105 message_id, | |
106 auto_size_params, | 104 auto_size_params, |
107 resize_guest_params); | 105 resize_guest_params); |
108 } | 106 } |
109 | 107 |
110 void BrowserPluginEmbedderHelper::OnSwapBuffersACK(int route_id, | 108 void BrowserPluginEmbedderHelper::OnSwapBuffersACK(int route_id, |
111 int gpu_host_id, | 109 int gpu_host_id, |
112 uint64 surface_handle, | 110 uint64 surface_handle, |
113 uint32 sync_point) { | 111 uint32 sync_point) { |
114 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; | 112 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; |
115 ack_params.surface_handle = surface_handle; | 113 ack_params.surface_handle = surface_handle; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 } | 162 } |
165 | 163 |
166 void BrowserPluginEmbedderHelper::OnSetAutoSize( | 164 void BrowserPluginEmbedderHelper::OnSetAutoSize( |
167 int instance_id, | 165 int instance_id, |
168 const BrowserPluginHostMsg_AutoSize_Params& auto_size_params, | 166 const BrowserPluginHostMsg_AutoSize_Params& auto_size_params, |
169 const BrowserPluginHostMsg_ResizeGuest_Params& resize_guest_params) { | 167 const BrowserPluginHostMsg_ResizeGuest_Params& resize_guest_params) { |
170 embedder_->SetAutoSize(instance_id, auto_size_params, resize_guest_params); | 168 embedder_->SetAutoSize(instance_id, auto_size_params, resize_guest_params); |
171 } | 169 } |
172 | 170 |
173 } // namespace content | 171 } // namespace content |
OLD | NEW |