| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 GENERAL_FAILURE | 45 GENERAL_FAILURE |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 // The WebKit side of a plugin implementation. It provides wrappers around | 48 // The WebKit side of a plugin implementation. It provides wrappers around |
| 49 // operations that need to interact with the frame and other WebCore objects. | 49 // operations that need to interact with the frame and other WebCore objects. |
| 50 class WebPlugin { | 50 class WebPlugin { |
| 51 public: | 51 public: |
| 52 WebPlugin() { } | 52 WebPlugin() { } |
| 53 virtual ~WebPlugin() { } | 53 virtual ~WebPlugin() { } |
| 54 | 54 |
| 55 #if defined(OS_LINUX) |
| 56 // Called by the plugin delegate to request a container for a new |
| 57 // windowed plugin. This handle will later get destroyed with |
| 58 // WillDestroyWindow. |
| 59 virtual gfx::PluginWindowHandle CreatePluginContainer() = 0; |
| 60 #endif |
| 61 |
| 55 // Called by the plugin delegate to let the WebPlugin know if the plugin is | 62 // Called by the plugin delegate to let the WebPlugin know if the plugin is |
| 56 // windowed (i.e. handle is not NULL) or windowless (handle is NULL). This | 63 // windowed (i.e. handle is not NULL) or windowless (handle is NULL). This |
| 57 // tells the WebPlugin to send mouse/keyboard events to the plugin delegate, | 64 // tells the WebPlugin to send mouse/keyboard events to the plugin delegate, |
| 58 // as well as the information about the HDC for paint operations. | 65 // as well as the information about the HDC for paint operations. |
| 59 virtual void SetWindow(gfx::PluginWindowHandle window) = 0; | 66 virtual void SetWindow(gfx::PluginWindowHandle window) = 0; |
| 60 | 67 |
| 61 // Called by the plugin delegate to let it know that the window is being | 68 // Called by the plugin delegate to let it know that the window is being |
| 62 // destroyed. | 69 // destroyed. |
| 63 virtual void WillDestroyWindow(gfx::PluginWindowHandle window) = 0; | 70 virtual void WillDestroyWindow(gfx::PluginWindowHandle window) = 0; |
| 64 #if defined(OS_WIN) | 71 #if defined(OS_WIN) |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 bool* cancel) = 0; | 150 bool* cancel) = 0; |
| 144 virtual void DidReceiveData(const char* buffer, int length, | 151 virtual void DidReceiveData(const char* buffer, int length, |
| 145 int data_offset) = 0; | 152 int data_offset) = 0; |
| 146 virtual void DidFinishLoading() = 0; | 153 virtual void DidFinishLoading() = 0; |
| 147 virtual void DidFail() = 0; | 154 virtual void DidFail() = 0; |
| 148 virtual bool IsMultiByteResponseExpected() = 0; | 155 virtual bool IsMultiByteResponseExpected() = 0; |
| 149 }; | 156 }; |
| 150 | 157 |
| 151 | 158 |
| 152 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_H__ | 159 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_H__ |
| OLD | NEW |