| 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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 void PaintDebugBorder(const gfx::Rect& rect, SkCanvas* canvas); | 261 void PaintDebugBorder(const gfx::Rect& rect, SkCanvas* canvas); |
| 262 | 262 |
| 263 bool IsRenderingVSynced(); | 263 bool IsRenderingVSynced(); |
| 264 void AnimationCallback(); | 264 void AnimationCallback(); |
| 265 void AnimateIfNeeded(); | 265 void AnimateIfNeeded(); |
| 266 void InvalidationCallback(); | 266 void InvalidationCallback(); |
| 267 void DoDeferredUpdateAndSendInputAck(); | 267 void DoDeferredUpdateAndSendInputAck(); |
| 268 void DoDeferredUpdate(); | 268 void DoDeferredUpdate(); |
| 269 void DoDeferredClose(); | 269 void DoDeferredClose(); |
| 270 void DoDeferredSetWindowRect(const WebKit::WebRect& pos); | 270 void DoDeferredSetWindowRect(const WebKit::WebRect& pos); |
| 271 virtual void Composite(); | 271 virtual void Composite(base::TimeTicks frame_begin_time); |
| 272 | 272 |
| 273 // Set the background of the render widget to a bitmap. The bitmap will be | 273 // Set the background of the render widget to a bitmap. The bitmap will be |
| 274 // tiled in both directions if it isn't big enough to fill the area. This is | 274 // tiled in both directions if it isn't big enough to fill the area. This is |
| 275 // mainly intended to be used in conjuction with WebView::SetIsTransparent(). | 275 // mainly intended to be used in conjuction with WebView::SetIsTransparent(). |
| 276 virtual void SetBackground(const SkBitmap& bitmap); | 276 virtual void SetBackground(const SkBitmap& bitmap); |
| 277 | 277 |
| 278 // Resizes the render widget. | 278 // Resizes the render widget. |
| 279 void Resize(const gfx::Size& new_size, | 279 void Resize(const gfx::Size& new_size, |
| 280 const gfx::Size& physical_backing_size, | 280 const gfx::Size& physical_backing_size, |
| 281 const gfx::Rect& resizer_rect, | 281 const gfx::Rect& resizer_rect, |
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 687 bool is_threaded_compositing_enabled_; | 687 bool is_threaded_compositing_enabled_; |
| 688 | 688 |
| 689 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; | 689 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; |
| 690 | 690 |
| 691 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 691 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 692 }; | 692 }; |
| 693 | 693 |
| 694 } // namespace content | 694 } // namespace content |
| 695 | 695 |
| 696 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 696 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |