OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "ui/gfx/gl/gpu_preference.h" | 12 #include "ui/gfx/gl/gpu_preference.h" |
13 #include "ui/gfx/native_widget_types.h" | 13 #include "ui/gfx/native_widget_types.h" |
14 #include "ui/gfx/rect.h" | 14 #include "ui/gfx/rect.h" |
| 15 #include "webkit/plugins/webkit_plugins_export.h" |
15 | 16 |
16 // TODO(port): this typedef is obviously incorrect on non-Windows | 17 // TODO(port): this typedef is obviously incorrect on non-Windows |
17 // platforms, but now a lot of code now accidentally depends on them | 18 // platforms, but now a lot of code now accidentally depends on them |
18 // existing. #ifdef out these declarations and fix all the users. | 19 // existing. #ifdef out these declarations and fix all the users. |
19 typedef void* HANDLE; | 20 typedef void* HANDLE; |
20 | 21 |
21 class GURL; | 22 class GURL; |
22 struct NPObject; | 23 struct NPObject; |
23 | 24 |
24 namespace webkit { | 25 namespace webkit { |
25 namespace npapi { | 26 namespace npapi { |
26 | 27 |
27 class WebPluginResourceClient; | 28 class WebPluginResourceClient; |
28 #if defined(OS_MACOSX) | 29 #if defined(OS_MACOSX) |
29 class WebPluginAcceleratedSurface; | 30 class WebPluginAcceleratedSurface; |
30 #endif | 31 #endif |
31 | 32 |
32 // Describes the new location for a plugin window. | 33 // Describes the new location for a plugin window. |
33 struct WebPluginGeometry { | 34 struct WEBKIT_PLUGINS_EXPORT WebPluginGeometry { |
34 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" |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 virtual void DidFinishLoading() = 0; | 188 virtual void DidFinishLoading() = 0; |
188 virtual void DidFail() = 0; | 189 virtual void DidFail() = 0; |
189 virtual bool IsMultiByteResponseExpected() = 0; | 190 virtual bool IsMultiByteResponseExpected() = 0; |
190 virtual int ResourceId() = 0; | 191 virtual int ResourceId() = 0; |
191 }; | 192 }; |
192 | 193 |
193 } // namespace npapi | 194 } // namespace npapi |
194 } // namespace webkit | 195 } // namespace webkit |
195 | 196 |
196 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_H_ | 197 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_H_ |
OLD | NEW |