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/plugin/webplugin_delegate_stub.h" | 5 #include "content/plugin/webplugin_delegate_stub.h" |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 | 256 |
257 void WebPluginDelegateStub::OnDidPaint() { | 257 void WebPluginDelegateStub::OnDidPaint() { |
258 webplugin_->DidPaint(); | 258 webplugin_->DidPaint(); |
259 } | 259 } |
260 | 260 |
261 void WebPluginDelegateStub::OnUpdateGeometry( | 261 void WebPluginDelegateStub::OnUpdateGeometry( |
262 const PluginMsg_UpdateGeometry_Param& param) { | 262 const PluginMsg_UpdateGeometry_Param& param) { |
263 webplugin_->UpdateGeometry( | 263 webplugin_->UpdateGeometry( |
264 param.window_rect, param.clip_rect, | 264 param.window_rect, param.clip_rect, |
265 param.windowless_buffer0, param.windowless_buffer1, | 265 param.windowless_buffer0, param.windowless_buffer1, |
266 param.windowless_buffer_index, param.background_buffer, | 266 param.windowless_buffer_index); |
267 param.transparent); | |
268 } | 267 } |
269 | 268 |
270 void WebPluginDelegateStub::OnGetPluginScriptableObject(int* route_id) { | 269 void WebPluginDelegateStub::OnGetPluginScriptableObject(int* route_id) { |
271 NPObject* object = delegate_->GetPluginScriptableObject(); | 270 NPObject* object = delegate_->GetPluginScriptableObject(); |
272 if (!object) { | 271 if (!object) { |
273 *route_id = MSG_ROUTING_NONE; | 272 *route_id = MSG_ROUTING_NONE; |
274 return; | 273 return; |
275 } | 274 } |
276 | 275 |
277 *route_id = channel_->GenerateRouteID(); | 276 *route_id = channel_->GenerateRouteID(); |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 } | 394 } |
396 | 395 |
397 #if defined(OS_MACOSX) | 396 #if defined(OS_MACOSX) |
398 void WebPluginDelegateStub::OnSetFakeAcceleratedSurfaceWindowHandle( | 397 void WebPluginDelegateStub::OnSetFakeAcceleratedSurfaceWindowHandle( |
399 gfx::PluginWindowHandle window) { | 398 gfx::PluginWindowHandle window) { |
400 delegate_->set_windowed_handle(window); | 399 delegate_->set_windowed_handle(window); |
401 } | 400 } |
402 #endif | 401 #endif |
403 | 402 |
404 } // namespace content | 403 } // namespace content |
OLD | NEW |