| 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 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 // Called when the WebPluginResourceClient instance is deleted. | 144 // Called when the WebPluginResourceClient instance is deleted. |
| 145 virtual void ResourceClientDeleted( | 145 virtual void ResourceClientDeleted( |
| 146 WebPluginResourceClient* resource_client) {} | 146 WebPluginResourceClient* resource_client) {} |
| 147 | 147 |
| 148 // Defers the loading of the resource identified by resource_id. This is | 148 // Defers the loading of the resource identified by resource_id. This is |
| 149 // controlled by the defer parameter. | 149 // controlled by the defer parameter. |
| 150 virtual void SetDeferResourceLoading(unsigned long resource_id, | 150 virtual void SetDeferResourceLoading(unsigned long resource_id, |
| 151 bool defer) = 0; | 151 bool defer) = 0; |
| 152 | 152 |
| 153 #if defined(OS_MACOSX) | 153 #if defined(OS_MACOSX) |
| 154 // Enables/disables plugin IME. | 154 // Called to inform the WebPlugin that the plugin has gained or lost focus. |
| 155 virtual void SetImeEnabled(bool enabled) {}; | 155 virtual void FocusChanged(bool focused) {}; |
| 156 |
| 157 // Starts plugin IME. |
| 158 virtual void StartIme() {}; |
| 156 | 159 |
| 157 // Synthesize a fake window handle for the plug-in to identify the instance | 160 // Synthesize a fake window handle for the plug-in to identify the instance |
| 158 // to the browser, allowing mapping to a surface for hardware accelleration | 161 // to the browser, allowing mapping to a surface for hardware accelleration |
| 159 // of plug-in content. The browser generates the handle which is then set on | 162 // of plug-in content. The browser generates the handle which is then set on |
| 160 // the plug-in. |opaque| indicates whether the content should be treated as | 163 // the plug-in. |opaque| indicates whether the content should be treated as |
| 161 // opaque or translucent. | 164 // opaque or translucent. |
| 162 // TODO(stuartmorgan): Move this into WebPluginProxy. | 165 // TODO(stuartmorgan): Move this into WebPluginProxy. |
| 163 virtual void BindFakePluginWindowHandle(bool opaque) {} | 166 virtual void BindFakePluginWindowHandle(bool opaque) {} |
| 164 | 167 |
| 165 // Returns the accelerated surface abstraction for accelerated plugins. | 168 // Returns the accelerated surface abstraction for accelerated plugins. |
| (...skipping 27 matching lines...) Expand all Loading... |
| 193 virtual void DidFinishLoading() = 0; | 196 virtual void DidFinishLoading() = 0; |
| 194 virtual void DidFail() = 0; | 197 virtual void DidFail() = 0; |
| 195 virtual bool IsMultiByteResponseExpected() = 0; | 198 virtual bool IsMultiByteResponseExpected() = 0; |
| 196 virtual int ResourceId() = 0; | 199 virtual int ResourceId() = 0; |
| 197 }; | 200 }; |
| 198 | 201 |
| 199 } // namespace npapi | 202 } // namespace npapi |
| 200 } // namespace webkit | 203 } // namespace webkit |
| 201 | 204 |
| 202 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_H_ | 205 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_H_ |
| OLD | NEW |