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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 | 95 |
96 // IPC::Message::Sender | 96 // IPC::Message::Sender |
97 virtual bool Send(IPC::Message* msg); | 97 virtual bool Send(IPC::Message* msg); |
98 | 98 |
99 // WebKit::WebWidgetClient | 99 // WebKit::WebWidgetClient |
100 virtual void didInvalidateRect(const WebKit::WebRect&); | 100 virtual void didInvalidateRect(const WebKit::WebRect&); |
101 virtual void didScrollRect(int dx, int dy, const WebKit::WebRect& clipRect); | 101 virtual void didScrollRect(int dx, int dy, const WebKit::WebRect& clipRect); |
102 virtual void didActivateAcceleratedCompositing(bool active); | 102 virtual void didActivateAcceleratedCompositing(bool active); |
103 virtual void scheduleComposite(); | 103 virtual void scheduleComposite(); |
104 virtual void scheduleAnimation(); | 104 virtual void scheduleAnimation(); |
| 105 virtual void popPendingUpdate(); |
105 virtual void didFocus(); | 106 virtual void didFocus(); |
106 virtual void didBlur(); | 107 virtual void didBlur(); |
107 virtual void didChangeCursor(const WebKit::WebCursorInfo&); | 108 virtual void didChangeCursor(const WebKit::WebCursorInfo&); |
108 virtual void closeWidgetSoon(); | 109 virtual void closeWidgetSoon(); |
109 virtual void show(WebKit::WebNavigationPolicy); | 110 virtual void show(WebKit::WebNavigationPolicy); |
110 virtual void runModal() {} | 111 virtual void runModal() {} |
111 virtual WebKit::WebRect windowRect(); | 112 virtual WebKit::WebRect windowRect(); |
112 virtual void setToolTipText(const WebKit::WebString& text, | 113 virtual void setToolTipText(const WebKit::WebString& text, |
113 WebKit::WebTextDirection hint); | 114 WebKit::WebTextDirection hint); |
114 virtual void setWindowRect(const WebKit::WebRect&); | 115 virtual void setWindowRect(const WebKit::WebRect&); |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 // messages. | 328 // messages. |
328 WebCursor current_cursor_; | 329 WebCursor current_cursor_; |
329 | 330 |
330 // The size of the RenderWidget. | 331 // The size of the RenderWidget. |
331 gfx::Size size_; | 332 gfx::Size size_; |
332 | 333 |
333 // The TransportDIB that is being used to transfer an image to the browser. | 334 // The TransportDIB that is being used to transfer an image to the browser. |
334 TransportDIB* current_paint_buf_; | 335 TransportDIB* current_paint_buf_; |
335 | 336 |
336 PaintAggregator paint_aggregator_; | 337 PaintAggregator paint_aggregator_; |
| 338 PaintAggregator::PendingUpdate paint_aggregator_update_; |
337 | 339 |
338 // The area that must be reserved for drawing the resize corner. | 340 // The area that must be reserved for drawing the resize corner. |
339 gfx::Rect resizer_rect_; | 341 gfx::Rect resizer_rect_; |
340 | 342 |
341 // Flags for the next ViewHostMsg_UpdateRect message. | 343 // Flags for the next ViewHostMsg_UpdateRect message. |
342 int next_paint_flags_; | 344 int next_paint_flags_; |
343 | 345 |
344 // Filtered time per frame based on UpdateRect messages. | 346 // Filtered time per frame based on UpdateRect messages. |
345 float filtered_time_per_frame_; | 347 float filtered_time_per_frame_; |
346 | 348 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 bool animation_task_posted_; | 434 bool animation_task_posted_; |
433 bool invalidation_task_posted_; | 435 bool invalidation_task_posted_; |
434 | 436 |
435 bool has_disable_gpu_vsync_switch_; | 437 bool has_disable_gpu_vsync_switch_; |
436 base::TimeTicks last_do_deferred_update_time_; | 438 base::TimeTicks last_do_deferred_update_time_; |
437 | 439 |
438 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 440 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
439 }; | 441 }; |
440 | 442 |
441 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 443 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |