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