| 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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 // should continue with the normal painting code path. | 323 // should continue with the normal painting code path. |
| 324 virtual webkit::ppapi::PluginInstance* GetBitmapForOptimizedPluginPaint( | 324 virtual webkit::ppapi::PluginInstance* GetBitmapForOptimizedPluginPaint( |
| 325 const gfx::Rect& paint_bounds, | 325 const gfx::Rect& paint_bounds, |
| 326 TransportDIB** dib, | 326 TransportDIB** dib, |
| 327 gfx::Rect* location, | 327 gfx::Rect* location, |
| 328 gfx::Rect* clip, | 328 gfx::Rect* clip, |
| 329 float* scale_factor); | 329 float* scale_factor); |
| 330 | 330 |
| 331 // Gets the scroll offset of this widget, if this widget has a notion of | 331 // Gets the scroll offset of this widget, if this widget has a notion of |
| 332 // scroll offset. | 332 // scroll offset. |
| 333 virtual gfx::Point GetScrollOffset(); | 333 virtual gfx::Vector2d GetScrollOffset(); |
| 334 | 334 |
| 335 // Sets the "hidden" state of this widget. All accesses to is_hidden_ should | 335 // Sets the "hidden" state of this widget. All accesses to is_hidden_ should |
| 336 // use this method so that we can properly inform the RenderThread of our | 336 // use this method so that we can properly inform the RenderThread of our |
| 337 // state. | 337 // state. |
| 338 void SetHidden(bool hidden); | 338 void SetHidden(bool hidden); |
| 339 | 339 |
| 340 void WillToggleFullscreen(); | 340 void WillToggleFullscreen(); |
| 341 void DidToggleFullscreen(); | 341 void DidToggleFullscreen(); |
| 342 | 342 |
| 343 bool next_paint_is_resize_ack() const; | 343 bool next_paint_is_resize_ack() const; |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 610 | 610 |
| 611 // Specified whether the compositor will run in its own thread. | 611 // Specified whether the compositor will run in its own thread. |
| 612 bool is_threaded_compositing_enabled_; | 612 bool is_threaded_compositing_enabled_; |
| 613 | 613 |
| 614 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 614 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 615 }; | 615 }; |
| 616 | 616 |
| 617 } // namespace content | 617 } // namespace content |
| 618 | 618 |
| 619 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 619 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |