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