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 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_ |
6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ | 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 } | 59 } |
60 | 60 |
61 namespace cc { class OutputSurface; } | 61 namespace cc { class OutputSurface; } |
62 | 62 |
63 namespace ui { | 63 namespace ui { |
64 class Range; | 64 class Range; |
65 } | 65 } |
66 | 66 |
67 namespace webkit { | 67 namespace webkit { |
68 namespace ppapi { | 68 namespace ppapi { |
69 class PluginInstance; | 69 class PluginInstanceImpl; |
70 } // namespace ppapi | 70 } // namespace ppapi |
71 } // namespace webkit | 71 } // namespace webkit |
72 | 72 |
73 namespace content { | 73 namespace content { |
74 class RenderWidgetCompositor; | 74 class RenderWidgetCompositor; |
75 class RenderWidgetTest; | 75 class RenderWidgetTest; |
76 struct GpuRenderingStats; | 76 struct GpuRenderingStats; |
77 struct WebPluginGeometry; | 77 struct WebPluginGeometry; |
78 | 78 |
79 // RenderWidget provides a communication bridge between a WebWidget and | 79 // RenderWidget provides a communication bridge between a WebWidget and |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 // Detects if a suitable opaque plugin covers the given paint bounds with no | 374 // Detects if a suitable opaque plugin covers the given paint bounds with no |
375 // compositing necessary. | 375 // compositing necessary. |
376 // | 376 // |
377 // Returns the plugin instance that's the source of the paint if the paint | 377 // Returns the plugin instance that's the source of the paint if the paint |
378 // can be handled by just blitting the plugin bitmap. In this case, the | 378 // can be handled by just blitting the plugin bitmap. In this case, the |
379 // location, clipping, and ID of the backing store will be filled into the | 379 // location, clipping, and ID of the backing store will be filled into the |
380 // given output parameters. | 380 // given output parameters. |
381 // | 381 // |
382 // A return value of null means optimized painting can not be used and we | 382 // A return value of null means optimized painting can not be used and we |
383 // should continue with the normal painting code path. | 383 // should continue with the normal painting code path. |
384 virtual webkit::ppapi::PluginInstance* GetBitmapForOptimizedPluginPaint( | 384 virtual webkit::ppapi::PluginInstanceImpl* GetBitmapForOptimizedPluginPaint( |
385 const gfx::Rect& paint_bounds, | 385 const gfx::Rect& paint_bounds, |
386 TransportDIB** dib, | 386 TransportDIB** dib, |
387 gfx::Rect* location, | 387 gfx::Rect* location, |
388 gfx::Rect* clip, | 388 gfx::Rect* clip, |
389 float* scale_factor); | 389 float* scale_factor); |
390 | 390 |
391 // Gets the scroll offset of this widget, if this widget has a notion of | 391 // Gets the scroll offset of this widget, if this widget has a notion of |
392 // scroll offset. | 392 // scroll offset. |
393 virtual gfx::Vector2d GetScrollOffset(); | 393 virtual gfx::Vector2d GetScrollOffset(); |
394 | 394 |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
723 uint32 next_output_surface_id_; | 723 uint32 next_output_surface_id_; |
724 | 724 |
725 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; | 725 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; |
726 | 726 |
727 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 727 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
728 }; | 728 }; |
729 | 729 |
730 } // namespace content | 730 } // namespace content |
731 | 731 |
732 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 732 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |