| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "chrome/plugin/webplugin_delegate_stub.h" | 5 #include "chrome/plugin/webplugin_delegate_stub.h" |
| 6 | 6 |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "chrome/common/child_process_logging.h" | 10 #include "chrome/common/child_process_logging.h" |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 DCHECK(success); | 265 DCHECK(success); |
| 266 #else | 266 #else |
| 267 // TODO(port): plugin printing. | 267 // TODO(port): plugin printing. |
| 268 NOTIMPLEMENTED(); | 268 NOTIMPLEMENTED(); |
| 269 #endif | 269 #endif |
| 270 } | 270 } |
| 271 | 271 |
| 272 void WebPluginDelegateStub::OnUpdateGeometry( | 272 void WebPluginDelegateStub::OnUpdateGeometry( |
| 273 const gfx::Rect& window_rect, | 273 const gfx::Rect& window_rect, |
| 274 const gfx::Rect& clip_rect, | 274 const gfx::Rect& clip_rect, |
| 275 const TransportDIB::Id& windowless_buffer_id, | 275 const TransportDIB::Handle& windowless_buffer, |
| 276 const TransportDIB::Id& background_buffer_id) { | 276 const TransportDIB::Handle& background_buffer) { |
| 277 webplugin_->UpdateGeometry( | 277 webplugin_->UpdateGeometry( |
| 278 window_rect, clip_rect, | 278 window_rect, clip_rect, |
| 279 windowless_buffer_id, background_buffer_id); | 279 windowless_buffer, background_buffer); |
| 280 } | 280 } |
| 281 | 281 |
| 282 void WebPluginDelegateStub::OnGetPluginScriptableObject(int* route_id, | 282 void WebPluginDelegateStub::OnGetPluginScriptableObject(int* route_id, |
| 283 intptr_t* npobject_ptr)
{ | 283 intptr_t* npobject_ptr)
{ |
| 284 NPObject* object = delegate_->GetPluginScriptableObject(); | 284 NPObject* object = delegate_->GetPluginScriptableObject(); |
| 285 if (!object) { | 285 if (!object) { |
| 286 *route_id = MSG_ROUTING_NONE; | 286 *route_id = MSG_ROUTING_NONE; |
| 287 return; | 287 return; |
| 288 } | 288 } |
| 289 | 289 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 params.notify_data, | 373 params.notify_data, |
| 374 params.stream); | 374 params.stream); |
| 375 webplugin_->OnResourceCreated(params.resource_id, resource_client); | 375 webplugin_->OnResourceCreated(params.resource_id, resource_client); |
| 376 } | 376 } |
| 377 | 377 |
| 378 void WebPluginDelegateStub::OnURLRequestRouted(const std::string& url, | 378 void WebPluginDelegateStub::OnURLRequestRouted(const std::string& url, |
| 379 bool notify_needed, | 379 bool notify_needed, |
| 380 intptr_t notify_data) { | 380 intptr_t notify_data) { |
| 381 delegate_->URLRequestRouted(url, notify_needed, notify_data); | 381 delegate_->URLRequestRouted(url, notify_needed, notify_data); |
| 382 } | 382 } |
| OLD | NEW |