| 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 #ifndef WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_H_ | 5 #ifndef WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_H_ |
| 6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_H_ | 6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 // Synthesize a fake window handle for the plug-in to identify the instance | 150 // Synthesize a fake window handle for the plug-in to identify the instance |
| 151 // to the browser, allowing mapping to a surface for hardware accelleration | 151 // to the browser, allowing mapping to a surface for hardware accelleration |
| 152 // of plug-in content. The browser generates the handle which is then set on | 152 // of plug-in content. The browser generates the handle which is then set on |
| 153 // the plug-in. |opaque| indicates whether the content should be treated as | 153 // the plug-in. |opaque| indicates whether the content should be treated as |
| 154 // opaque or translucent. | 154 // opaque or translucent. |
| 155 // TODO(stuartmorgan): Move this into WebPluginProxy. | 155 // TODO(stuartmorgan): Move this into WebPluginProxy. |
| 156 virtual void BindFakePluginWindowHandle(bool opaque) {} | 156 virtual void BindFakePluginWindowHandle(bool opaque) {} |
| 157 | 157 |
| 158 // Returns the accelerated surface abstraction for accelerated plugins. | 158 // Returns the accelerated surface abstraction for accelerated plugins. |
| 159 virtual WebPluginAcceleratedSurface* GetAcceleratedSurface( | 159 virtual WebPluginAcceleratedSurface* GetAcceleratedSurface( |
| 160 gfx::GpuPreference gpu_preference); | 160 gfx::GpuPreference gpu_preference) = 0; |
| 161 | 161 |
| 162 // Composited Core Animation plugin support. | 162 // Composited Core Animation plugin support. |
| 163 virtual void AcceleratedPluginEnabledRendering() = 0; | 163 virtual void AcceleratedPluginEnabledRendering() = 0; |
| 164 virtual void AcceleratedPluginAllocatedIOSurface(int32 width, | 164 virtual void AcceleratedPluginAllocatedIOSurface(int32 width, |
| 165 int32 height, | 165 int32 height, |
| 166 uint32 surface_id) = 0; | 166 uint32 surface_id) = 0; |
| 167 virtual void AcceleratedPluginSwappedIOSurface() = 0; | 167 virtual void AcceleratedPluginSwappedIOSurface() = 0; |
| 168 #endif | 168 #endif |
| 169 | 169 |
| 170 // Handles NPN_URLRedirectResponse calls issued by plugins in response to | 170 // Handles NPN_URLRedirectResponse calls issued by plugins in response to |
| (...skipping 18 matching lines...) Expand all Loading... |
| 189 virtual void DidFinishLoading() = 0; | 189 virtual void DidFinishLoading() = 0; |
| 190 virtual void DidFail() = 0; | 190 virtual void DidFail() = 0; |
| 191 virtual bool IsMultiByteResponseExpected() = 0; | 191 virtual bool IsMultiByteResponseExpected() = 0; |
| 192 virtual int ResourceId() = 0; | 192 virtual int ResourceId() = 0; |
| 193 }; | 193 }; |
| 194 | 194 |
| 195 } // namespace npapi | 195 } // namespace npapi |
| 196 } // namespace webkit | 196 } // namespace webkit |
| 197 | 197 |
| 198 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_H_ | 198 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_H_ |
| OLD | NEW |