| 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 13 matching lines...) Expand all Loading... |
| 24 struct NPObject; | 24 struct NPObject; |
| 25 | 25 |
| 26 // Describes the new location for a plugin window. | 26 // Describes the new location for a plugin window. |
| 27 struct WebPluginGeometry { | 27 struct WebPluginGeometry { |
| 28 gfx::NativeView window; | 28 gfx::NativeView window; |
| 29 gfx::Rect window_rect; | 29 gfx::Rect window_rect; |
| 30 // Clip rect (include) and cutouts (excludes), relative to | 30 // Clip rect (include) and cutouts (excludes), relative to |
| 31 // window_rect origin. | 31 // window_rect origin. |
| 32 gfx::Rect clip_rect; | 32 gfx::Rect clip_rect; |
| 33 std::vector<gfx::Rect> cutout_rects; | 33 std::vector<gfx::Rect> cutout_rects; |
| 34 bool rects_valid; |
| 34 bool visible; | 35 bool visible; |
| 35 }; | 36 }; |
| 36 | 37 |
| 37 | 38 |
| 38 enum RoutingStatus { | 39 enum RoutingStatus { |
| 39 ROUTED, | 40 ROUTED, |
| 40 NOT_ROUTED, | 41 NOT_ROUTED, |
| 41 INVALID_URL, | 42 INVALID_URL, |
| 42 GENERAL_FAILURE | 43 GENERAL_FAILURE |
| 43 }; | 44 }; |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 bool* cancel) = 0; | 141 bool* cancel) = 0; |
| 141 virtual void DidReceiveData(const char* buffer, int length, | 142 virtual void DidReceiveData(const char* buffer, int length, |
| 142 int data_offset) = 0; | 143 int data_offset) = 0; |
| 143 virtual void DidFinishLoading() = 0; | 144 virtual void DidFinishLoading() = 0; |
| 144 virtual void DidFail() = 0; | 145 virtual void DidFail() = 0; |
| 145 virtual bool IsMultiByteResponseExpected() = 0; | 146 virtual bool IsMultiByteResponseExpected() = 0; |
| 146 }; | 147 }; |
| 147 | 148 |
| 148 | 149 |
| 149 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_H__ | 150 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_H__ |
| OLD | NEW |