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 21 matching lines...) Expand all Loading... |
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 | 36 |
37 bool Equals(const WebPluginGeometry& rhs) const; | 37 bool Equals(const WebPluginGeometry& rhs) const; |
38 | 38 |
39 // On Windows, this is the plugin window in the plugin process. | 39 // 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 | 40 // On X11, this is the XID of the plugin-side GtkPlug containing the |
41 // GtkSocket hosting the actual plugin window. | 41 // GtkSocket hosting the actual plugin window. |
| 42 // |
| 43 // 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 // which currently performs rendering on behalf of the Pepper 3D API |
| 46 // and WebGL. The GPU plugin uses a simple integer for the |
| 47 // PluginWindowHandle which is used to map to a side data structure |
| 48 // containing information about the plugin. Soon this plugin will be |
| 49 // generalized, at which point this mechanism will be rethought or |
| 50 // removed. |
42 gfx::PluginWindowHandle window; | 51 gfx::PluginWindowHandle window; |
43 gfx::Rect window_rect; | 52 gfx::Rect window_rect; |
44 // Clip rect (include) and cutouts (excludes), relative to | 53 // Clip rect (include) and cutouts (excludes), relative to |
45 // window_rect origin. | 54 // window_rect origin. |
46 gfx::Rect clip_rect; | 55 gfx::Rect clip_rect; |
47 std::vector<gfx::Rect> cutout_rects; | 56 std::vector<gfx::Rect> cutout_rects; |
48 bool rects_valid; | 57 bool rects_valid; |
49 bool visible; | 58 bool visible; |
50 }; | 59 }; |
51 | 60 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 virtual void DidReceiveData(const char* buffer, int length, | 165 virtual void DidReceiveData(const char* buffer, int length, |
157 int data_offset) = 0; | 166 int data_offset) = 0; |
158 virtual void DidFinishLoading() = 0; | 167 virtual void DidFinishLoading() = 0; |
159 virtual void DidFail() = 0; | 168 virtual void DidFail() = 0; |
160 virtual bool IsMultiByteResponseExpected() = 0; | 169 virtual bool IsMultiByteResponseExpected() = 0; |
161 }; | 170 }; |
162 | 171 |
163 } // namespace webkit_glue | 172 } // namespace webkit_glue |
164 | 173 |
165 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_H_ | 174 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_H_ |
OLD | NEW |