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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
(...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
715 // Set if screen_info_ may have changed and should be recomputed and force a | 715 // Set if screen_info_ may have changed and should be recomputed and force a |
716 // resize message. | 716 // resize message. |
717 bool screen_info_out_of_date_; | 717 bool screen_info_out_of_date_; |
718 | 718 |
719 // The current size of the RenderWidget. | 719 // The current size of the RenderWidget. |
720 gfx::Size current_size_; | 720 gfx::Size current_size_; |
721 | 721 |
722 // The size of the view's backing surface in non-DPI-adjusted pixels. | 722 // The size of the view's backing surface in non-DPI-adjusted pixels. |
723 gfx::Size physical_backing_size_; | 723 gfx::Size physical_backing_size_; |
724 | 724 |
725 // The height of the physical backing surface that is overdrawn opaquely in | 725 // The amount that the viewport size given to Blink was shrunk by the URL-bar |
726 // the browser, for example by an on-screen-keyboard (in DPI-adjusted pixels). | 726 // (always 0 on platforms where URL-bar hiding isn't supported). |
727 float overdraw_bottom_height_; | 727 float top_controls_layout_height_; |
728 | 728 |
729 // The size of the visible viewport, which may be smaller than the view if the | 729 // The size of the visible viewport, which may be smaller than the view if the |
730 // view is partially occluded (e.g. by a virtual keyboard). The size is in | 730 // view is partially occluded (e.g. by a virtual keyboard). The size is in |
731 // DPI-adjusted pixels. | 731 // DPI-adjusted pixels. |
732 gfx::Size visible_viewport_size_; | 732 gfx::Size visible_viewport_size_; |
733 | 733 |
734 // The size we last sent as requested size to the renderer. |current_size_| | 734 // The size we last sent as requested size to the renderer. |current_size_| |
735 // is only updated once the resize message has been ack'd. This on the other | 735 // is only updated once the resize message has been ack'd. This on the other |
736 // hand is updated when the resize message is sent. This is very similar to | 736 // hand is updated when the resize message is sent. This is very similar to |
737 // |resize_ack_pending_|, but the latter is not set if the new size has width | 737 // |resize_ack_pending_|, but the latter is not set if the new size has width |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
844 typedef std::map<int, | 844 typedef std::map<int, |
845 base::Callback<void(const unsigned char*, size_t)> > PendingSnapshotMap; | 845 base::Callback<void(const unsigned char*, size_t)> > PendingSnapshotMap; |
846 PendingSnapshotMap pending_browser_snapshots_; | 846 PendingSnapshotMap pending_browser_snapshots_; |
847 | 847 |
848 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 848 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
849 }; | 849 }; |
850 | 850 |
851 } // namespace content | 851 } // namespace content |
852 | 852 |
853 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 853 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |