| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_PLUGIN_WEBPLUGIN_PROXY_H_ | 5 #ifndef CHROME_PLUGIN_WEBPLUGIN_PROXY_H_ |
| 6 #define CHROME_PLUGIN_WEBPLUGIN_PROXY_H_ | 6 #define CHROME_PLUGIN_WEBPLUGIN_PROXY_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 | 142 |
| 143 #if defined(OS_MACOSX) | 143 #if defined(OS_MACOSX) |
| 144 virtual void SetImeEnabled(bool enabled); | 144 virtual void SetImeEnabled(bool enabled); |
| 145 | 145 |
| 146 virtual void BindFakePluginWindowHandle(bool opaque); | 146 virtual void BindFakePluginWindowHandle(bool opaque); |
| 147 | 147 |
| 148 virtual webkit_glue::WebPluginAcceleratedSurface* GetAcceleratedSurface(); | 148 virtual webkit_glue::WebPluginAcceleratedSurface* GetAcceleratedSurface(); |
| 149 | 149 |
| 150 // Tell the browser (via the renderer) to invalidate because the | 150 // Tell the browser (via the renderer) to invalidate because the |
| 151 // accelerated buffers have changed. | 151 // accelerated buffers have changed. |
| 152 virtual void AcceleratedFrameBuffersDidSwap(gfx::PluginWindowHandle window); | 152 virtual void AcceleratedFrameBuffersDidSwap( |
| 153 gfx::PluginWindowHandle window, uint64 surface_id); |
| 153 | 154 |
| 154 // Tell the renderer and browser to associate the given plugin handle with | 155 // Tell the renderer and browser to associate the given plugin handle with |
| 155 // |accelerated_surface_identifier|. The geometry is used to resize any | 156 // |accelerated_surface_identifier|. The geometry is used to resize any |
| 156 // native "window" (which on the Mac is a just a view). | 157 // native "window" (which on the Mac is a just a view). |
| 157 // This method is used when IOSurface support is available. | 158 // This method is used when IOSurface support is available. |
| 158 virtual void SetAcceleratedSurface(gfx::PluginWindowHandle window, | 159 virtual void SetAcceleratedSurface(gfx::PluginWindowHandle window, |
| 159 const gfx::Size& size, | 160 const gfx::Size& size, |
| 160 uint64 accelerated_surface_identifier); | 161 uint64 accelerated_surface_identifier); |
| 161 | 162 |
| 162 // Tell the renderer and browser to associate the given plugin handle with | 163 // Tell the renderer and browser to associate the given plugin handle with |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 | 227 |
| 227 #endif | 228 #endif |
| 228 | 229 |
| 229 // Contains the routing id of the host render view. | 230 // Contains the routing id of the host render view. |
| 230 int host_render_view_routing_id_; | 231 int host_render_view_routing_id_; |
| 231 | 232 |
| 232 ScopedRunnableMethodFactory<WebPluginProxy> runnable_method_factory_; | 233 ScopedRunnableMethodFactory<WebPluginProxy> runnable_method_factory_; |
| 233 }; | 234 }; |
| 234 | 235 |
| 235 #endif // CHROME_PLUGIN_WEBPLUGIN_PROXY_H_ | 236 #endif // CHROME_PLUGIN_WEBPLUGIN_PROXY_H_ |
| OLD | NEW |