| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // A BrowserPluginGuest represents the browser side of browser <--> renderer | 5 // A BrowserPluginGuest represents the browser side of browser <--> renderer |
| 6 // communication. A BrowserPlugin (a WebPlugin) is on the renderer side of | 6 // communication. A BrowserPlugin (a WebPlugin) is on the renderer side of |
| 7 // browser <--> guest renderer communication. The 'guest' renderer is a | 7 // browser <--> guest renderer communication. The 'guest' renderer is a |
| 8 // <browser> tag. | 8 // <browser> tag. |
| 9 // | 9 // |
| 10 // BrowserPluginGuest lives on the UI thread of the browser process. It has a | 10 // BrowserPluginGuest lives on the UI thread of the browser process. It has a |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 // Stop loading the guest. | 227 // Stop loading the guest. |
| 228 virtual void Stop(); | 228 virtual void Stop(); |
| 229 // Overridden in tests. | 229 // Overridden in tests. |
| 230 virtual void SetDamageBuffer(TransportDIB* damage_buffer, | 230 virtual void SetDamageBuffer(TransportDIB* damage_buffer, |
| 231 #if defined(OS_WIN) | 231 #if defined(OS_WIN) |
| 232 int damage_buffer_size, | 232 int damage_buffer_size, |
| 233 TransportDIB::Handle remote_handle, | 233 TransportDIB::Handle remote_handle, |
| 234 #endif | 234 #endif |
| 235 const gfx::Size& damage_view_size, | 235 const gfx::Size& damage_view_size, |
| 236 float scale_factor); | 236 float scale_factor); |
| 237 // Overridden in tests. |
| 238 virtual void SetCompositingBufferData(int gpu_process_id, |
| 239 uint32 client_id, |
| 240 uint32 context_id, |
| 241 uint32 texture_id_0, |
| 242 uint32 texture_id_1, |
| 243 uint32 sync_point); |
| 237 | 244 |
| 238 gfx::Point GetScreenCoordinates(const gfx::Point& relative_position) const; | 245 gfx::Point GetScreenCoordinates(const gfx::Point& relative_position) const; |
| 239 | 246 |
| 240 private: | 247 private: |
| 241 friend class TestBrowserPluginGuest; | 248 friend class TestBrowserPluginGuest; |
| 242 | 249 |
| 243 BrowserPluginGuest(int instance_id, | 250 BrowserPluginGuest(int instance_id, |
| 244 WebContentsImpl* web_contents, | 251 WebContentsImpl* web_contents, |
| 245 const BrowserPluginHostMsg_CreateGuest_Params& params); | 252 const BrowserPluginHostMsg_CreateGuest_Params& params); |
| 246 | 253 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 gfx::Rect guest_screen_rect_; | 297 gfx::Rect guest_screen_rect_; |
| 291 IDMap<RenderViewHost> pending_updates_; | 298 IDMap<RenderViewHost> pending_updates_; |
| 292 int pending_update_counter_; | 299 int pending_update_counter_; |
| 293 base::TimeDelta guest_hang_timeout_; | 300 base::TimeDelta guest_hang_timeout_; |
| 294 bool focused_; | 301 bool focused_; |
| 295 bool visible_; | 302 bool visible_; |
| 296 bool auto_size_enabled_; | 303 bool auto_size_enabled_; |
| 297 gfx::Size max_auto_size_; | 304 gfx::Size max_auto_size_; |
| 298 gfx::Size min_auto_size_; | 305 gfx::Size min_auto_size_; |
| 299 | 306 |
| 307 // Hardware Accelerated Surface Params |
| 308 gfx::GLSurfaceHandle surface_handle_; |
| 309 |
| 300 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); | 310 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); |
| 301 }; | 311 }; |
| 302 | 312 |
| 303 } // namespace content | 313 } // namespace content |
| 304 | 314 |
| 305 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ | 315 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ |
| OLD | NEW |