| 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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 virtual void DidInitiatePaint() {} | 296 virtual void DidInitiatePaint() {} |
| 297 virtual void DidFlushPaint() {} | 297 virtual void DidFlushPaint() {} |
| 298 | 298 |
| 299 // Override and return true when the widget is rendered with a graphics | 299 // Override and return true when the widget is rendered with a graphics |
| 300 // context that supports asynchronous swapbuffers. When returning true, the | 300 // context that supports asynchronous swapbuffers. When returning true, the |
| 301 // subclass must call OnSwapBuffersPosted() when swap is posted, | 301 // subclass must call OnSwapBuffersPosted() when swap is posted, |
| 302 // OnSwapBuffersComplete() when swaps complete, and OnSwapBuffersAborted if | 302 // OnSwapBuffersComplete() when swaps complete, and OnSwapBuffersAborted if |
| 303 // the context is lost. | 303 // the context is lost. |
| 304 virtual bool SupportsAsynchronousSwapBuffers(); | 304 virtual bool SupportsAsynchronousSwapBuffers(); |
| 305 | 305 |
| 306 virtual bool ForceCompositingModeEnabled(); |
| 307 |
| 306 // Notifies scheduler that the RenderWidget's subclass has finished or aborted | 308 // Notifies scheduler that the RenderWidget's subclass has finished or aborted |
| 307 // a swap buffers. | 309 // a swap buffers. |
| 308 void OnSwapBuffersPosted(); | 310 void OnSwapBuffersPosted(); |
| 309 void OnSwapBuffersComplete(); | 311 void OnSwapBuffersComplete(); |
| 310 void OnSwapBuffersAborted(); | 312 void OnSwapBuffersAborted(); |
| 311 | 313 |
| 312 // Detects if a suitable opaque plugin covers the given paint bounds with no | 314 // Detects if a suitable opaque plugin covers the given paint bounds with no |
| 313 // compositing necessary. | 315 // compositing necessary. |
| 314 // | 316 // |
| 315 // Returns the plugin instance that's the source of the paint if the paint | 317 // Returns the plugin instance that's the source of the paint if the paint |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 605 typedef std::map<int, SmoothScrollCompletionCallback> | 607 typedef std::map<int, SmoothScrollCompletionCallback> |
| 606 PendingSmoothScrollGestureMap; | 608 PendingSmoothScrollGestureMap; |
| 607 PendingSmoothScrollGestureMap pending_smooth_scroll_gestures_; | 609 PendingSmoothScrollGestureMap pending_smooth_scroll_gestures_; |
| 608 | 610 |
| 609 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 611 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 610 }; | 612 }; |
| 611 | 613 |
| 612 } // namespace content | 614 } // namespace content |
| 613 | 615 |
| 614 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 616 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |