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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 void PaintDebugBorder(const gfx::Rect& rect, SkCanvas* canvas); | 238 void PaintDebugBorder(const gfx::Rect& rect, SkCanvas* canvas); |
239 | 239 |
240 bool IsRenderingVSynced(); | 240 bool IsRenderingVSynced(); |
241 void AnimationCallback(); | 241 void AnimationCallback(); |
242 void AnimateIfNeeded(); | 242 void AnimateIfNeeded(); |
243 void InvalidationCallback(); | 243 void InvalidationCallback(); |
244 void DoDeferredUpdateAndSendInputAck(); | 244 void DoDeferredUpdateAndSendInputAck(); |
245 void DoDeferredUpdate(); | 245 void DoDeferredUpdate(); |
246 void DoDeferredClose(); | 246 void DoDeferredClose(); |
247 void DoDeferredSetWindowRect(const WebKit::WebRect& pos); | 247 void DoDeferredSetWindowRect(const WebKit::WebRect& pos); |
| 248 virtual void Composite(); |
248 | 249 |
249 // Set the background of the render widget to a bitmap. The bitmap will be | 250 // Set the background of the render widget to a bitmap. The bitmap will be |
250 // tiled in both directions if it isn't big enough to fill the area. This is | 251 // tiled in both directions if it isn't big enough to fill the area. This is |
251 // mainly intended to be used in conjuction with WebView::SetIsTransparent(). | 252 // mainly intended to be used in conjuction with WebView::SetIsTransparent(). |
252 virtual void SetBackground(const SkBitmap& bitmap); | 253 virtual void SetBackground(const SkBitmap& bitmap); |
253 | 254 |
254 // Resizes the render widget. | 255 // Resizes the render widget. |
255 void Resize(const gfx::Size& new_size, | 256 void Resize(const gfx::Size& new_size, |
256 const gfx::Rect& resizer_rect, | 257 const gfx::Rect& resizer_rect, |
257 bool is_fullscreen, | 258 bool is_fullscreen, |
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
637 | 638 |
638 // Specified whether the compositor will run in its own thread. | 639 // Specified whether the compositor will run in its own thread. |
639 bool is_threaded_compositing_enabled_; | 640 bool is_threaded_compositing_enabled_; |
640 | 641 |
641 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 642 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
642 }; | 643 }; |
643 | 644 |
644 } // namespace content | 645 } // namespace content |
645 | 646 |
646 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 647 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |