| 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 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 | 527 |
| 528 bool init_complete_; | 528 bool init_complete_; |
| 529 | 529 |
| 530 // We store the current cursor object so we can avoid spamming SetCursor | 530 // We store the current cursor object so we can avoid spamming SetCursor |
| 531 // messages. | 531 // messages. |
| 532 WebCursor current_cursor_; | 532 WebCursor current_cursor_; |
| 533 | 533 |
| 534 // The size of the RenderWidget. | 534 // The size of the RenderWidget. |
| 535 gfx::Size size_; | 535 gfx::Size size_; |
| 536 | 536 |
| 537 // When short-circuiting size updates, the browser might not know about the |
| 538 // current size of the RenderWidget. To be able to correctly predict when the |
| 539 // browser expects a resize ack, keep track of the size the browser thinks |
| 540 // this RenderWidget should have. |
| 541 gfx::Size size_browser_expects_; |
| 542 |
| 537 // The TransportDIB that is being used to transfer an image to the browser. | 543 // The TransportDIB that is being used to transfer an image to the browser. |
| 538 TransportDIB* current_paint_buf_; | 544 TransportDIB* current_paint_buf_; |
| 539 | 545 |
| 540 PaintAggregator paint_aggregator_; | 546 PaintAggregator paint_aggregator_; |
| 541 | 547 |
| 542 // The size of the view's backing surface in non-DPI-adjusted pixels. | 548 // The size of the view's backing surface in non-DPI-adjusted pixels. |
| 543 gfx::Size physical_backing_size_; | 549 gfx::Size physical_backing_size_; |
| 544 | 550 |
| 545 // The height of the physical backing surface that is overdrawn opaquely in | 551 // The height of the physical backing surface that is overdrawn opaquely in |
| 546 // the browser, for example by an on-screen-keyboard (in DPI-adjusted pixels). | 552 // the browser, for example by an on-screen-keyboard (in DPI-adjusted pixels). |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 711 BrowserRenderingStats browser_rendering_stats_; | 717 BrowserRenderingStats browser_rendering_stats_; |
| 712 | 718 |
| 713 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; | 719 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; |
| 714 | 720 |
| 715 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 721 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 716 }; | 722 }; |
| 717 | 723 |
| 718 } // namespace content | 724 } // namespace content |
| 719 | 725 |
| 720 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 726 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |