| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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_GLUE_WEBPLUGIN_H_ | 5 #ifndef WEBKIT_GLUE_WEBPLUGIN_H_ |
| 6 #define WEBKIT_GLUE_WEBPLUGIN_H_ | 6 #define WEBKIT_GLUE_WEBPLUGIN_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 // Called when the WebPluginResourceClient instance is deleted. | 142 // Called when the WebPluginResourceClient instance is deleted. |
| 143 virtual void ResourceClientDeleted( | 143 virtual void ResourceClientDeleted( |
| 144 WebPluginResourceClient* resource_client) {} | 144 WebPluginResourceClient* resource_client) {} |
| 145 | 145 |
| 146 // Defers the loading of the resource identified by resource_id. This is | 146 // Defers the loading of the resource identified by resource_id. This is |
| 147 // controlled by the defer parameter. | 147 // controlled by the defer parameter. |
| 148 virtual void SetDeferResourceLoading(unsigned long resource_id, | 148 virtual void SetDeferResourceLoading(unsigned long resource_id, |
| 149 bool defer) = 0; | 149 bool defer) = 0; |
| 150 | 150 |
| 151 #if defined(OS_MACOSX) | 151 #if defined(OS_MACOSX) |
| 152 // Enables/disables plugin IME. |
| 153 virtual void SetImeEnabled(bool enabled) {}; |
| 154 |
| 152 // Synthesize a fake window handle for the plug-in to identify the instance | 155 // Synthesize a fake window handle for the plug-in to identify the instance |
| 153 // to the browser, allowing mapping to a surface for hardware accelleration | 156 // to the browser, allowing mapping to a surface for hardware accelleration |
| 154 // of plug-in content. The browser generates the handle which is then set on | 157 // of plug-in content. The browser generates the handle which is then set on |
| 155 // the plug-in. |opaque| indicates whether the content should be treated as | 158 // the plug-in. |opaque| indicates whether the content should be treated as |
| 156 // opaque or translucent. | 159 // opaque or translucent. |
| 157 // TODO(stuartmorgan): Move this into WebPluginProxy. | 160 // TODO(stuartmorgan): Move this into WebPluginProxy. |
| 158 virtual void BindFakePluginWindowHandle(bool opaque) {} | 161 virtual void BindFakePluginWindowHandle(bool opaque) {} |
| 159 | 162 |
| 160 // Returns the accelerated surface abstraction for accelerated plugins. | 163 // Returns the accelerated surface abstraction for accelerated plugins. |
| 161 virtual WebPluginAcceleratedSurface* GetAcceleratedSurface() { return NULL; } | 164 virtual WebPluginAcceleratedSurface* GetAcceleratedSurface() { return NULL; } |
| (...skipping 20 matching lines...) Expand all Loading... |
| 182 virtual void DidReceiveData(const char* buffer, int length, | 185 virtual void DidReceiveData(const char* buffer, int length, |
| 183 int data_offset) = 0; | 186 int data_offset) = 0; |
| 184 virtual void DidFinishLoading() = 0; | 187 virtual void DidFinishLoading() = 0; |
| 185 virtual void DidFail() = 0; | 188 virtual void DidFail() = 0; |
| 186 virtual bool IsMultiByteResponseExpected() = 0; | 189 virtual bool IsMultiByteResponseExpected() = 0; |
| 187 }; | 190 }; |
| 188 | 191 |
| 189 } // namespace webkit_glue | 192 } // namespace webkit_glue |
| 190 | 193 |
| 191 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_H_ | 194 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_H_ |
| OLD | NEW |