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 15 matching lines...) Expand all Loading... |
26 | 26 |
27 namespace webkit_glue { | 27 namespace webkit_glue { |
28 | 28 |
29 class WebPluginDelegate; | 29 class WebPluginDelegate; |
30 class WebPluginParentView; | 30 class WebPluginParentView; |
31 class WebPluginResourceClient; | 31 class WebPluginResourceClient; |
32 | 32 |
33 // Describes the new location for a plugin window. | 33 // Describes the new location for a plugin window. |
34 struct WebPluginGeometry { | 34 struct WebPluginGeometry { |
35 WebPluginGeometry(); | 35 WebPluginGeometry(); |
| 36 ~WebPluginGeometry(); |
36 | 37 |
37 bool Equals(const WebPluginGeometry& rhs) const; | 38 bool Equals(const WebPluginGeometry& rhs) const; |
38 | 39 |
39 // On Windows, this is the plugin window in the plugin process. | 40 // On Windows, this is the plugin window in the plugin process. |
40 // On X11, this is the XID of the plugin-side GtkPlug containing the | 41 // On X11, this is the XID of the plugin-side GtkPlug containing the |
41 // GtkSocket hosting the actual plugin window. | 42 // GtkSocket hosting the actual plugin window. |
42 // | 43 // |
43 // On Mac OS X, all of the plugin types are currently "windowless" | 44 // On Mac OS X, all of the plugin types are currently "windowless" |
44 // (window == 0) except for the special case of the GPU plugin, | 45 // (window == 0) except for the special case of the GPU plugin, |
45 // which currently performs rendering on behalf of the Pepper 3D API | 46 // which currently performs rendering on behalf of the Pepper 3D API |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 virtual void DidReceiveData(const char* buffer, int length, | 187 virtual void DidReceiveData(const char* buffer, int length, |
187 int data_offset) = 0; | 188 int data_offset) = 0; |
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 }; | 192 }; |
192 | 193 |
193 } // namespace webkit_glue | 194 } // namespace webkit_glue |
194 | 195 |
195 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_H_ | 196 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_H_ |
OLD | NEW |