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