| 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/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/stl_util.h" | 8 #include "base/stl_util.h" |
| 9 #include "content/browser/browser_plugin/browser_plugin_guest.h" | 9 #include "content/browser/browser_plugin/browser_plugin_guest.h" |
| 10 #include "content/browser/browser_plugin/browser_plugin_host_factory.h" | 10 #include "content/browser/browser_plugin/browser_plugin_host_factory.h" |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 WebContentsImpl* web_contents = static_cast<WebContentsImpl*>(it->second); | 298 WebContentsImpl* web_contents = static_cast<WebContentsImpl*>(it->second); |
| 299 BrowserPluginGuest* guest = web_contents->GetBrowserPluginGuest(); | 299 BrowserPluginGuest* guest = web_contents->GetBrowserPluginGuest(); |
| 300 guest->UpdateVisibility(); | 300 guest->UpdateVisibility(); |
| 301 } | 301 } |
| 302 } | 302 } |
| 303 | 303 |
| 304 // static | 304 // static |
| 305 bool BrowserPluginEmbedder::ShouldForwardToBrowserPluginGuest( | 305 bool BrowserPluginEmbedder::ShouldForwardToBrowserPluginGuest( |
| 306 const IPC::Message& message) { | 306 const IPC::Message& message) { |
| 307 switch (message.type()) { | 307 switch (message.type()) { |
| 308 case BrowserPluginHostMsg_AllowMediaAccess::ID: |
| 308 case BrowserPluginHostMsg_DragStatusUpdate::ID: | 309 case BrowserPluginHostMsg_DragStatusUpdate::ID: |
| 309 case BrowserPluginHostMsg_Go::ID: | 310 case BrowserPluginHostMsg_Go::ID: |
| 310 case BrowserPluginHostMsg_HandleInputEvent::ID: | 311 case BrowserPluginHostMsg_HandleInputEvent::ID: |
| 311 case BrowserPluginHostMsg_NavigateGuest::ID: | 312 case BrowserPluginHostMsg_NavigateGuest::ID: |
| 312 case BrowserPluginHostMsg_Reload::ID: | 313 case BrowserPluginHostMsg_Reload::ID: |
| 313 case BrowserPluginHostMsg_ResizeGuest::ID: | 314 case BrowserPluginHostMsg_ResizeGuest::ID: |
| 314 case BrowserPluginHostMsg_SetAutoSize::ID: | 315 case BrowserPluginHostMsg_SetAutoSize::ID: |
| 315 case BrowserPluginHostMsg_SetFocus::ID: | 316 case BrowserPluginHostMsg_SetFocus::ID: |
| 316 case BrowserPluginHostMsg_SetName::ID: | 317 case BrowserPluginHostMsg_SetName::ID: |
| 317 case BrowserPluginHostMsg_SetVisibility::ID: | 318 case BrowserPluginHostMsg_SetVisibility::ID: |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 uint32 sync_point) { | 366 uint32 sync_point) { |
| 366 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; | 367 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; |
| 367 ack_params.mailbox_name = mailbox_name; | 368 ack_params.mailbox_name = mailbox_name; |
| 368 ack_params.sync_point = sync_point; | 369 ack_params.sync_point = sync_point; |
| 369 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, | 370 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, |
| 370 gpu_host_id, | 371 gpu_host_id, |
| 371 ack_params); | 372 ack_params); |
| 372 } | 373 } |
| 373 | 374 |
| 374 } // namespace content | 375 } // namespace content |
| OLD | NEW |