| 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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 // should continue with the normal painting code path. | 321 // should continue with the normal painting code path. |
| 322 virtual webkit::ppapi::PluginInstance* GetBitmapForOptimizedPluginPaint( | 322 virtual webkit::ppapi::PluginInstance* GetBitmapForOptimizedPluginPaint( |
| 323 const gfx::Rect& paint_bounds, | 323 const gfx::Rect& paint_bounds, |
| 324 TransportDIB** dib, | 324 TransportDIB** dib, |
| 325 gfx::Rect* location, | 325 gfx::Rect* location, |
| 326 gfx::Rect* clip, | 326 gfx::Rect* clip, |
| 327 float* scale_factor); | 327 float* scale_factor); |
| 328 | 328 |
| 329 // Gets the scroll offset of this widget, if this widget has a notion of | 329 // Gets the scroll offset of this widget, if this widget has a notion of |
| 330 // scroll offset. | 330 // scroll offset. |
| 331 virtual gfx::Point GetScrollOffset(); | 331 virtual gfx::Vector2d GetScrollOffset(); |
| 332 | 332 |
| 333 // Sets the "hidden" state of this widget. All accesses to is_hidden_ should | 333 // Sets the "hidden" state of this widget. All accesses to is_hidden_ should |
| 334 // use this method so that we can properly inform the RenderThread of our | 334 // use this method so that we can properly inform the RenderThread of our |
| 335 // state. | 335 // state. |
| 336 void SetHidden(bool hidden); | 336 void SetHidden(bool hidden); |
| 337 | 337 |
| 338 void WillToggleFullscreen(); | 338 void WillToggleFullscreen(); |
| 339 void DidToggleFullscreen(); | 339 void DidToggleFullscreen(); |
| 340 | 340 |
| 341 bool next_paint_is_resize_ack() const; | 341 bool next_paint_is_resize_ack() const; |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 605 typedef std::map<int, SmoothScrollCompletionCallback> | 605 typedef std::map<int, SmoothScrollCompletionCallback> |
| 606 PendingSmoothScrollGestureMap; | 606 PendingSmoothScrollGestureMap; |
| 607 PendingSmoothScrollGestureMap pending_smooth_scroll_gestures_; | 607 PendingSmoothScrollGestureMap pending_smooth_scroll_gestures_; |
| 608 | 608 |
| 609 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 609 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 610 }; | 610 }; |
| 611 | 611 |
| 612 } // namespace content | 612 } // namespace content |
| 613 | 613 |
| 614 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 614 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |