| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef CONTENT_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ | 5 #ifndef CONTENT_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ |
| 6 #define CONTENT_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ | 6 #define CONTENT_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 uint64 io_surface_identifier); | 180 uint64 io_surface_identifier); |
| 181 void OnAcceleratedSurfaceSetTransportDIB(gfx::PluginWindowHandle window, | 181 void OnAcceleratedSurfaceSetTransportDIB(gfx::PluginWindowHandle window, |
| 182 int32 width, | 182 int32 width, |
| 183 int32 height, | 183 int32 height, |
| 184 TransportDIB::Handle transport_dib); | 184 TransportDIB::Handle transport_dib); |
| 185 void OnAcceleratedSurfaceAllocTransportDIB(size_t size, | 185 void OnAcceleratedSurfaceAllocTransportDIB(size_t size, |
| 186 TransportDIB::Handle* dib_handle); | 186 TransportDIB::Handle* dib_handle); |
| 187 void OnAcceleratedSurfaceFreeTransportDIB(TransportDIB::Id dib_id); | 187 void OnAcceleratedSurfaceFreeTransportDIB(TransportDIB::Id dib_id); |
| 188 void OnAcceleratedSurfaceBuffersSwapped(gfx::PluginWindowHandle window, | 188 void OnAcceleratedSurfaceBuffersSwapped(gfx::PluginWindowHandle window, |
| 189 uint64 surface_id); | 189 uint64 surface_id); |
| 190 |
| 191 // New accelerated plugin implementation. |
| 192 void OnAcceleratedPluginEnabledRendering(); |
| 193 void OnAcceleratedPluginAllocatedIOSurface(int32 width, |
| 194 int32 height, |
| 195 uint32 surface_id); |
| 196 void OnAcceleratedPluginSwappedIOSurface(); |
| 190 #endif | 197 #endif |
| 191 | 198 |
| 192 void OnURLRedirectResponse(bool allow, int resource_id); | 199 void OnURLRedirectResponse(bool allow, int resource_id); |
| 193 | 200 |
| 194 // Helper function that sends the UpdateGeometry message. | 201 // Helper function that sends the UpdateGeometry message. |
| 195 void SendUpdateGeometry(bool bitmaps_changed); | 202 void SendUpdateGeometry(bool bitmaps_changed); |
| 196 | 203 |
| 197 // Draw a graphic indicating a crashed plugin. | 204 // Draw a graphic indicating a crashed plugin. |
| 198 void PaintSadPlugin(WebKit::WebCanvas* canvas, const gfx::Rect& rect); | 205 void PaintSadPlugin(WebKit::WebCanvas* canvas, const gfx::Rect& rect); |
| 199 | 206 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 #endif // OS_MACOSX | 270 #endif // OS_MACOSX |
| 264 | 271 |
| 265 #if defined(OS_WIN) | 272 #if defined(OS_WIN) |
| 266 // Returns true if we should update the plugin geometry synchronously. | 273 // Returns true if we should update the plugin geometry synchronously. |
| 267 bool UseSynchronousGeometryUpdates(); | 274 bool UseSynchronousGeometryUpdates(); |
| 268 #endif | 275 #endif |
| 269 | 276 |
| 270 base::WeakPtr<RenderViewImpl> render_view_; | 277 base::WeakPtr<RenderViewImpl> render_view_; |
| 271 webkit::npapi::WebPlugin* plugin_; | 278 webkit::npapi::WebPlugin* plugin_; |
| 272 bool uses_shared_bitmaps_; | 279 bool uses_shared_bitmaps_; |
| 280 #if defined(OS_MACOSX) |
| 281 bool uses_compositor_; |
| 282 #endif |
| 273 gfx::PluginWindowHandle window_; | 283 gfx::PluginWindowHandle window_; |
| 274 scoped_refptr<PluginChannelHost> channel_host_; | 284 scoped_refptr<PluginChannelHost> channel_host_; |
| 275 std::string mime_type_; | 285 std::string mime_type_; |
| 276 int instance_id_; | 286 int instance_id_; |
| 277 webkit::WebPluginInfo info_; | 287 webkit::WebPluginInfo info_; |
| 278 | 288 |
| 279 gfx::Rect plugin_rect_; | 289 gfx::Rect plugin_rect_; |
| 280 gfx::Rect clip_rect_; | 290 gfx::Rect clip_rect_; |
| 281 | 291 |
| 282 NPObject* npobject_; | 292 NPObject* npobject_; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 311 // back-buffer. | 321 // back-buffer. |
| 312 gfx::Rect front_buffer_diff_; | 322 gfx::Rect front_buffer_diff_; |
| 313 | 323 |
| 314 // The url of the main frame hosting the plugin. | 324 // The url of the main frame hosting the plugin. |
| 315 GURL page_url_; | 325 GURL page_url_; |
| 316 | 326 |
| 317 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy); | 327 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy); |
| 318 }; | 328 }; |
| 319 | 329 |
| 320 #endif // CONTENT_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ | 330 #endif // CONTENT_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ |
| OLD | NEW |