| 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_proxy.h" | 5 #include "content/plugin/webplugin_proxy.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/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
| (...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 492 if (!accelerated_surface_) | 492 if (!accelerated_surface_) |
| 493 accelerated_surface_.reset( | 493 accelerated_surface_.reset( |
| 494 WebPluginAcceleratedSurfaceProxy::Create(this, gpu_preference)); | 494 WebPluginAcceleratedSurfaceProxy::Create(this, gpu_preference)); |
| 495 return accelerated_surface_.get(); | 495 return accelerated_surface_.get(); |
| 496 } | 496 } |
| 497 | 497 |
| 498 void WebPluginProxy::AcceleratedPluginEnabledRendering() { | 498 void WebPluginProxy::AcceleratedPluginEnabledRendering() { |
| 499 Send(new PluginHostMsg_AcceleratedPluginEnabledRendering(route_id_)); | 499 Send(new PluginHostMsg_AcceleratedPluginEnabledRendering(route_id_)); |
| 500 } | 500 } |
| 501 | 501 |
| 502 void WebPluginProxy::AcceleratedPluginAllocatedIOSurface(int32 width, | 502 void WebPluginProxy::AcceleratedPluginAllocatedIOSurface(int32_t width, |
| 503 int32 height, | 503 int32_t height, |
| 504 uint32 surface_id) { | 504 uint32_t surface_id) { |
| 505 Send(new PluginHostMsg_AcceleratedPluginAllocatedIOSurface( | 505 Send(new PluginHostMsg_AcceleratedPluginAllocatedIOSurface( |
| 506 route_id_, width, height, surface_id)); | 506 route_id_, width, height, surface_id)); |
| 507 } | 507 } |
| 508 | 508 |
| 509 void WebPluginProxy::AcceleratedPluginSwappedIOSurface() { | 509 void WebPluginProxy::AcceleratedPluginSwappedIOSurface() { |
| 510 Send(new PluginHostMsg_AcceleratedPluginSwappedIOSurface( | 510 Send(new PluginHostMsg_AcceleratedPluginSwappedIOSurface( |
| 511 route_id_)); | 511 route_id_)); |
| 512 } | 512 } |
| 513 #endif | 513 #endif |
| 514 | 514 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 557 int input_type; | 557 int input_type; |
| 558 gfx::Rect caret_rect; | 558 gfx::Rect caret_rect; |
| 559 if (!delegate_->GetIMEStatus(&input_type, &caret_rect)) | 559 if (!delegate_->GetIMEStatus(&input_type, &caret_rect)) |
| 560 return; | 560 return; |
| 561 | 561 |
| 562 Send(new PluginHostMsg_NotifyIMEStatus(route_id_, input_type, caret_rect)); | 562 Send(new PluginHostMsg_NotifyIMEStatus(route_id_, input_type, caret_rect)); |
| 563 } | 563 } |
| 564 #endif | 564 #endif |
| 565 | 565 |
| 566 } // namespace content | 566 } // namespace content |
| OLD | NEW |