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.h" | 5 #include "content/browser/browser_plugin/browser_plugin_embedder.h" |
6 | 6 |
7 #include "base/stl_util.h" | 7 #include "base/stl_util.h" |
8 #include "content/browser/browser_plugin/browser_plugin_guest.h" | 8 #include "content/browser/browser_plugin/browser_plugin_guest.h" |
9 #include "content/browser/browser_plugin/browser_plugin_host_factory.h" | 9 #include "content/browser/browser_plugin/browser_plugin_host_factory.h" |
10 #include "content/browser/renderer_host/render_view_host_impl.h" | 10 #include "content/browser/renderer_host/render_view_host_impl.h" |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 bool BrowserPluginEmbedder::ShouldForwardToBrowserPluginGuest( | 272 bool BrowserPluginEmbedder::ShouldForwardToBrowserPluginGuest( |
273 const IPC::Message& message) { | 273 const IPC::Message& message) { |
274 switch (message.type()) { | 274 switch (message.type()) { |
275 case BrowserPluginHostMsg_DragStatusUpdate::ID: | 275 case BrowserPluginHostMsg_DragStatusUpdate::ID: |
276 case BrowserPluginHostMsg_Go::ID: | 276 case BrowserPluginHostMsg_Go::ID: |
277 case BrowserPluginHostMsg_HandleInputEvent::ID: | 277 case BrowserPluginHostMsg_HandleInputEvent::ID: |
278 case BrowserPluginHostMsg_Reload::ID: | 278 case BrowserPluginHostMsg_Reload::ID: |
279 case BrowserPluginHostMsg_ResizeGuest::ID: | 279 case BrowserPluginHostMsg_ResizeGuest::ID: |
280 case BrowserPluginHostMsg_SetAutoSize::ID: | 280 case BrowserPluginHostMsg_SetAutoSize::ID: |
281 case BrowserPluginHostMsg_SetFocus::ID: | 281 case BrowserPluginHostMsg_SetFocus::ID: |
| 282 case BrowserPluginHostMsg_SetName::ID: |
282 case BrowserPluginHostMsg_SetVisibility::ID: | 283 case BrowserPluginHostMsg_SetVisibility::ID: |
283 case BrowserPluginHostMsg_Stop::ID: | 284 case BrowserPluginHostMsg_Stop::ID: |
284 case BrowserPluginHostMsg_TerminateGuest::ID: | 285 case BrowserPluginHostMsg_TerminateGuest::ID: |
285 case BrowserPluginHostMsg_UpdateRect_ACK::ID: | 286 case BrowserPluginHostMsg_UpdateRect_ACK::ID: |
286 return true; | 287 return true; |
287 default: | 288 default: |
288 break; | 289 break; |
289 } | 290 } |
290 return false; | 291 return false; |
291 } | 292 } |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 uint32 sync_point) { | 351 uint32 sync_point) { |
351 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; | 352 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; |
352 ack_params.mailbox_name = mailbox_name; | 353 ack_params.mailbox_name = mailbox_name; |
353 ack_params.sync_point = sync_point; | 354 ack_params.sync_point = sync_point; |
354 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, | 355 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, |
355 gpu_host_id, | 356 gpu_host_id, |
356 ack_params); | 357 ack_params); |
357 } | 358 } |
358 | 359 |
359 } // namespace content | 360 } // namespace content |
OLD | NEW |