| 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 bool BrowserPluginEmbedder::ShouldForwardToBrowserPluginGuest( | 173 bool BrowserPluginEmbedder::ShouldForwardToBrowserPluginGuest( |
| 174 const IPC::Message& message) { | 174 const IPC::Message& message) { |
| 175 switch (message.type()) { | 175 switch (message.type()) { |
| 176 case BrowserPluginHostMsg_DragStatusUpdate::ID: | 176 case BrowserPluginHostMsg_DragStatusUpdate::ID: |
| 177 case BrowserPluginHostMsg_Go::ID: | 177 case BrowserPluginHostMsg_Go::ID: |
| 178 case BrowserPluginHostMsg_HandleInputEvent::ID: | 178 case BrowserPluginHostMsg_HandleInputEvent::ID: |
| 179 case BrowserPluginHostMsg_Reload::ID: | 179 case BrowserPluginHostMsg_Reload::ID: |
| 180 case BrowserPluginHostMsg_ResizeGuest::ID: | 180 case BrowserPluginHostMsg_ResizeGuest::ID: |
| 181 case BrowserPluginHostMsg_SetAutoSize::ID: | 181 case BrowserPluginHostMsg_SetAutoSize::ID: |
| 182 case BrowserPluginHostMsg_SetFocus::ID: | 182 case BrowserPluginHostMsg_SetFocus::ID: |
| 183 case BrowserPluginHostMsg_SetName::ID: |
| 183 case BrowserPluginHostMsg_SetVisibility::ID: | 184 case BrowserPluginHostMsg_SetVisibility::ID: |
| 184 case BrowserPluginHostMsg_Stop::ID: | 185 case BrowserPluginHostMsg_Stop::ID: |
| 185 case BrowserPluginHostMsg_TerminateGuest::ID: | 186 case BrowserPluginHostMsg_TerminateGuest::ID: |
| 186 case BrowserPluginHostMsg_UpdateRect_ACK::ID: | 187 case BrowserPluginHostMsg_UpdateRect_ACK::ID: |
| 187 return true; | 188 return true; |
| 188 default: | 189 default: |
| 189 break; | 190 break; |
| 190 } | 191 } |
| 191 return false; | 192 return false; |
| 192 } | 193 } |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 uint32 sync_point) { | 336 uint32 sync_point) { |
| 336 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; | 337 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; |
| 337 ack_params.mailbox_name = mailbox_name; | 338 ack_params.mailbox_name = mailbox_name; |
| 338 ack_params.sync_point = sync_point; | 339 ack_params.sync_point = sync_point; |
| 339 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, | 340 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, |
| 340 gpu_host_id, | 341 gpu_host_id, |
| 341 ack_params); | 342 ack_params); |
| 342 } | 343 } |
| 343 | 344 |
| 344 } // namespace content | 345 } // namespace content |
| OLD | NEW |