OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_RENDERER_RENDER_WIDGET_H_ | 5 #ifndef CHROME_RENDERER_RENDER_WIDGET_H_ |
6 #define CHROME_RENDERER_RENDER_WIDGET_H_ | 6 #define CHROME_RENDERER_RENDER_WIDGET_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 // shared memory segment returned by AllocPaintBuf on Windows). The caller | 154 // shared memory segment returned by AllocPaintBuf on Windows). The caller |
155 // must ensure that the given rect fits within the bounds of the WebWidget. | 155 // must ensure that the given rect fits within the bounds of the WebWidget. |
156 void PaintRect(const gfx::Rect& rect, const gfx::Point& canvas_origin, | 156 void PaintRect(const gfx::Rect& rect, const gfx::Point& canvas_origin, |
157 skia::PlatformCanvas* canvas); | 157 skia::PlatformCanvas* canvas); |
158 | 158 |
159 // Paints a border at the given rect for debugging purposes. | 159 // Paints a border at the given rect for debugging purposes. |
160 void PaintDebugBorder(const gfx::Rect& rect, skia::PlatformCanvas* canvas); | 160 void PaintDebugBorder(const gfx::Rect& rect, skia::PlatformCanvas* canvas); |
161 | 161 |
162 void CallDoDeferredUpdate(); | 162 void CallDoDeferredUpdate(); |
163 void UpdateAnimationsIfNeeded(); | 163 void UpdateAnimationsIfNeeded(); |
| 164 void UpdateAnimationsAndFloorTime(); |
164 void DoDeferredUpdate(); | 165 void DoDeferredUpdate(); |
165 void DoDeferredClose(); | 166 void DoDeferredClose(); |
166 void DoDeferredSetWindowRect(const WebKit::WebRect& pos); | 167 void DoDeferredSetWindowRect(const WebKit::WebRect& pos); |
167 | 168 |
168 // Set the background of the render widget to a bitmap. The bitmap will be | 169 // Set the background of the render widget to a bitmap. The bitmap will be |
169 // tiled in both directions if it isn't big enough to fill the area. This is | 170 // tiled in both directions if it isn't big enough to fill the area. This is |
170 // mainly intended to be used in conjuction with WebView::SetIsTransparent(). | 171 // mainly intended to be used in conjuction with WebView::SetIsTransparent(). |
171 virtual void SetBackground(const SkBitmap& bitmap); | 172 virtual void SetBackground(const SkBitmap& bitmap); |
172 | 173 |
173 // RenderWidget IPC message handlers | 174 // RenderWidget IPC message handlers |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 | 366 |
366 // Indicates if the next sequence of Char events should be suppressed or not. | 367 // Indicates if the next sequence of Char events should be suppressed or not. |
367 bool suppress_next_char_events_; | 368 bool suppress_next_char_events_; |
368 | 369 |
369 // Set to true if painting to the window is handled by the accelerated | 370 // Set to true if painting to the window is handled by the accelerated |
370 // compositor. | 371 // compositor. |
371 bool is_accelerated_compositing_active_; | 372 bool is_accelerated_compositing_active_; |
372 | 373 |
373 base::Time animation_floor_time_; | 374 base::Time animation_floor_time_; |
374 bool animation_update_pending_; | 375 bool animation_update_pending_; |
| 376 bool animation_waiting_for_paint_; |
375 | 377 |
376 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 378 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
377 }; | 379 }; |
378 | 380 |
379 #endif // CHROME_RENDERER_RENDER_WIDGET_H_ | 381 #endif // CHROME_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |