| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 | 49 |
| 50 // A list of all the mime types that this plugin supports. | 50 // A list of all the mime types that this plugin supports. |
| 51 std::vector<WebPluginMimeType> mime_types; | 51 std::vector<WebPluginMimeType> mime_types; |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 | 54 |
| 55 // Describes the new location for a plugin window. | 55 // Describes the new location for a plugin window. |
| 56 struct WebPluginGeometry { | 56 struct WebPluginGeometry { |
| 57 HWND window; | 57 HWND window; |
| 58 gfx::Rect window_rect; | 58 gfx::Rect window_rect; |
| 59 // Clip rect (include) and cutouts (excludes), relative to |
| 60 // window_rect origin. |
| 59 gfx::Rect clip_rect; | 61 gfx::Rect clip_rect; |
| 62 std::vector<gfx::Rect> cutout_rects; |
| 60 bool visible; | 63 bool visible; |
| 61 }; | 64 }; |
| 62 | 65 |
| 63 | 66 |
| 64 enum RoutingStatus { | 67 enum RoutingStatus { |
| 65 ROUTED, | 68 ROUTED, |
| 66 NOT_ROUTED, | 69 NOT_ROUTED, |
| 67 INVALID_URL, | 70 INVALID_URL, |
| 68 GENERAL_FAILURE | 71 GENERAL_FAILURE |
| 69 }; | 72 }; |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 bool* cancel) = 0; | 155 bool* cancel) = 0; |
| 153 virtual void DidReceiveData(const char* buffer, int length, | 156 virtual void DidReceiveData(const char* buffer, int length, |
| 154 int data_offset) = 0; | 157 int data_offset) = 0; |
| 155 virtual void DidFinishLoading() = 0; | 158 virtual void DidFinishLoading() = 0; |
| 156 virtual void DidFail() = 0; | 159 virtual void DidFail() = 0; |
| 157 }; | 160 }; |
| 158 | 161 |
| 159 | 162 |
| 160 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_H__ | 163 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_H__ |
| 161 | 164 |
| OLD | NEW |