| 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 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/gfx/rect.h" | 12 #include "base/gfx/rect.h" |
| 13 #include "base/gfx/native_widget_types.h" | 13 #include "base/gfx/native_widget_types.h" |
| 14 | 14 |
| 15 // TODO(port): this typedef is obviously incorrect on non-Windows | 15 // TODO(port): this typedef is obviously incorrect on non-Windows |
| 16 // platforms, but now a lot of code now accidentally depends on them | 16 // platforms, but now a lot of code now accidentally depends on them |
| 17 // existing. #ifdef out these declarations and fix all the users. | 17 // existing. #ifdef out these declarations and fix all the users. |
| 18 typedef void* HANDLE; | 18 typedef void* HANDLE; |
| 19 | 19 |
| 20 class GURL; | 20 class GURL; |
| 21 class WebFrame; | |
| 22 class WebPluginResourceClient; | 21 class WebPluginResourceClient; |
| 23 | 22 |
| 24 struct NPObject; | 23 struct NPObject; |
| 25 | 24 |
| 26 // Describes the new location for a plugin window. | 25 // Describes the new location for a plugin window. |
| 27 struct WebPluginGeometry { | 26 struct WebPluginGeometry { |
| 28 // On Windows, this is the plugin window in the plugin process. | 27 // On Windows, this is the plugin window in the plugin process. |
| 29 // On X11, this is the browser process's hosting window (the GtkSocket). | 28 // On X11, this is the browser process's hosting window (the GtkSocket). |
| 30 gfx::PluginWindowHandle window; | 29 gfx::PluginWindowHandle window; |
| 31 gfx::Rect window_rect; | 30 gfx::Rect window_rect; |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 bool request_is_seekable) = 0; | 152 bool request_is_seekable) = 0; |
| 154 virtual void DidReceiveData(const char* buffer, int length, | 153 virtual void DidReceiveData(const char* buffer, int length, |
| 155 int data_offset) = 0; | 154 int data_offset) = 0; |
| 156 virtual void DidFinishLoading() = 0; | 155 virtual void DidFinishLoading() = 0; |
| 157 virtual void DidFail() = 0; | 156 virtual void DidFail() = 0; |
| 158 virtual bool IsMultiByteResponseExpected() = 0; | 157 virtual bool IsMultiByteResponseExpected() = 0; |
| 159 }; | 158 }; |
| 160 | 159 |
| 161 | 160 |
| 162 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_H__ | 161 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_H__ |
| OLD | NEW |