| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ | 5 #ifndef CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ |
| 6 #define CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ | 6 #define CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 void OnMissingPluginStatus(int status); | 138 void OnMissingPluginStatus(int status); |
| 139 void OnGetCPBrowsingContext(uint32* context); | 139 void OnGetCPBrowsingContext(uint32* context); |
| 140 void OnCancelDocumentLoad(); | 140 void OnCancelDocumentLoad(); |
| 141 void OnInitiateHTTPRangeRequest(const std::string& url, | 141 void OnInitiateHTTPRangeRequest(const std::string& url, |
| 142 const std::string& range_info, | 142 const std::string& range_info, |
| 143 int range_request_id); | 143 int range_request_id); |
| 144 void OnDeferResourceLoading(unsigned long resource_id, bool defer); | 144 void OnDeferResourceLoading(unsigned long resource_id, bool defer); |
| 145 | 145 |
| 146 #if defined(OS_MACOSX) | 146 #if defined(OS_MACOSX) |
| 147 void OnUpdateGeometry_ACK(int ack_key); | 147 void OnUpdateGeometry_ACK(int ack_key); |
| 148 void OnGPUPluginSetIOSurface(gfx::PluginWindowHandle window, |
| 149 int32 width, |
| 150 int32 height, |
| 151 uint64 io_surface_identifier); |
| 152 void OnGPUPluginBuffersSwapped(gfx::PluginWindowHandle window); |
| 148 #endif | 153 #endif |
| 149 | 154 |
| 150 // Draw a graphic indicating a crashed plugin. | 155 // Draw a graphic indicating a crashed plugin. |
| 151 void PaintSadPlugin(WebKit::WebCanvas* canvas, const gfx::Rect& rect); | 156 void PaintSadPlugin(WebKit::WebCanvas* canvas, const gfx::Rect& rect); |
| 152 | 157 |
| 153 // Returns true if the given rectangle is different in the native drawing | 158 // Returns true if the given rectangle is different in the native drawing |
| 154 // context and the current background bitmap. | 159 // context and the current background bitmap. |
| 155 bool BackgroundChanged(gfx::NativeDrawingContext context, | 160 bool BackgroundChanged(gfx::NativeDrawingContext context, |
| 156 const gfx::Rect& rect); | 161 const gfx::Rect& rect); |
| 157 | 162 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 // This lets us know which portion of the backing store has been painted into. | 232 // This lets us know which portion of the backing store has been painted into. |
| 228 gfx::Rect backing_store_painted_; | 233 gfx::Rect backing_store_painted_; |
| 229 | 234 |
| 230 // The url of the main frame hosting the plugin. | 235 // The url of the main frame hosting the plugin. |
| 231 GURL page_url_; | 236 GURL page_url_; |
| 232 | 237 |
| 233 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy); | 238 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy); |
| 234 }; | 239 }; |
| 235 | 240 |
| 236 #endif // CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ | 241 #endif // CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ |
| OLD | NEW |