| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 | 162 |
| 163 // Paints the given rectangular region of the WebWidget into canvas (a | 163 // Paints the given rectangular region of the WebWidget into canvas (a |
| 164 // shared memory segment returned by AllocPaintBuf on Windows). The caller | 164 // shared memory segment returned by AllocPaintBuf on Windows). The caller |
| 165 // must ensure that the given rect fits within the bounds of the WebWidget. | 165 // must ensure that the given rect fits within the bounds of the WebWidget. |
| 166 void PaintRect(const gfx::Rect& rect, const gfx::Point& canvas_origin, | 166 void PaintRect(const gfx::Rect& rect, const gfx::Point& canvas_origin, |
| 167 skia::PlatformCanvas* canvas); | 167 skia::PlatformCanvas* canvas); |
| 168 | 168 |
| 169 // Paints a border at the given rect for debugging purposes. | 169 // Paints a border at the given rect for debugging purposes. |
| 170 void PaintDebugBorder(const gfx::Rect& rect, skia::PlatformCanvas* canvas); | 170 void PaintDebugBorder(const gfx::Rect& rect, skia::PlatformCanvas* canvas); |
| 171 | 171 |
| 172 bool IsRenderingVSyncd(); |
| 172 void AnimationCallback(); | 173 void AnimationCallback(); |
| 173 void AnimateIfNeeded(); | 174 void AnimateIfNeeded(); |
| 174 void InvalidationCallback(); | 175 void InvalidationCallback(); |
| 175 void DoDeferredUpdateAndSendInputAck(); | 176 void DoDeferredUpdateAndSendInputAck(); |
| 176 void DoDeferredUpdate(); | 177 void DoDeferredUpdate(); |
| 177 void DoDeferredClose(); | 178 void DoDeferredClose(); |
| 178 void DoDeferredSetWindowRect(const WebKit::WebRect& pos); | 179 void DoDeferredSetWindowRect(const WebKit::WebRect& pos); |
| 179 | 180 |
| 180 // Set the background of the render widget to a bitmap. The bitmap will be | 181 // Set the background of the render widget to a bitmap. The bitmap will be |
| 181 // tiled in both directions if it isn't big enough to fill the area. This is | 182 // tiled in both directions if it isn't big enough to fill the area. This is |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 bool animation_update_pending_; | 424 bool animation_update_pending_; |
| 424 bool animation_task_posted_; | 425 bool animation_task_posted_; |
| 425 bool invalidation_task_posted_; | 426 bool invalidation_task_posted_; |
| 426 | 427 |
| 427 base::TimeTicks last_do_deferred_update_time_; | 428 base::TimeTicks last_do_deferred_update_time_; |
| 428 | 429 |
| 429 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 430 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 430 }; | 431 }; |
| 431 | 432 |
| 432 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 433 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |