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