| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 | 80 |
| 81 // Called by the plugin delegate to let it know that the window is being | 81 // Called by the plugin delegate to let it know that the window is being |
| 82 // destroyed. | 82 // destroyed. |
| 83 virtual void WillDestroyWindow(gfx::PluginWindowHandle window) = 0; | 83 virtual void WillDestroyWindow(gfx::PluginWindowHandle window) = 0; |
| 84 #if defined(OS_WIN) | 84 #if defined(OS_WIN) |
| 85 // The pump_messages_event is a event handle which is valid only for | 85 // The pump_messages_event is a event handle which is valid only for |
| 86 // windowless plugins and is used in NPP_HandleEvent calls to pump messages | 86 // windowless plugins and is used in NPP_HandleEvent calls to pump messages |
| 87 // if the plugin enters a modal loop. | 87 // if the plugin enters a modal loop. |
| 88 // Cancels a pending request. | 88 // Cancels a pending request. |
| 89 virtual void SetWindowlessPumpEvent(HANDLE pump_messages_event) = 0; | 89 virtual void SetWindowlessPumpEvent(HANDLE pump_messages_event) = 0; |
| 90 virtual void ReparentPluginWindow(HWND window, HWND parent) = 0; |
| 90 #endif | 91 #endif |
| 91 virtual void CancelResource(unsigned long id) = 0; | 92 virtual void CancelResource(unsigned long id) = 0; |
| 92 virtual void Invalidate() = 0; | 93 virtual void Invalidate() = 0; |
| 93 virtual void InvalidateRect(const gfx::Rect& rect) = 0; | 94 virtual void InvalidateRect(const gfx::Rect& rect) = 0; |
| 94 | 95 |
| 95 // Returns the NPObject for the browser's window object. | 96 // Returns the NPObject for the browser's window object. |
| 96 virtual NPObject* GetWindowScriptNPObject() = 0; | 97 virtual NPObject* GetWindowScriptNPObject() = 0; |
| 97 | 98 |
| 98 // Returns the DOM element that loaded the plugin. | 99 // Returns the DOM element that loaded the plugin. |
| 99 virtual NPObject* GetPluginElement() = 0; | 100 virtual NPObject* GetPluginElement() = 0; |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 virtual void DidFinishLoading() = 0; | 189 virtual void DidFinishLoading() = 0; |
| 189 virtual void DidFail() = 0; | 190 virtual void DidFail() = 0; |
| 190 virtual bool IsMultiByteResponseExpected() = 0; | 191 virtual bool IsMultiByteResponseExpected() = 0; |
| 191 virtual int ResourceId() = 0; | 192 virtual int ResourceId() = 0; |
| 192 }; | 193 }; |
| 193 | 194 |
| 194 } // namespace npapi | 195 } // namespace npapi |
| 195 } // namespace webkit | 196 } // namespace webkit |
| 196 | 197 |
| 197 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_H_ | 198 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_H_ |
| OLD | NEW |