Chromium Code Reviews| 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 750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 761 // The current size of the RenderWidget. | 761 // The current size of the RenderWidget. |
| 762 gfx::Size current_size_; | 762 gfx::Size current_size_; |
| 763 | 763 |
| 764 // The size of the view's backing surface in non-DPI-adjusted pixels. | 764 // The size of the view's backing surface in non-DPI-adjusted pixels. |
| 765 gfx::Size physical_backing_size_; | 765 gfx::Size physical_backing_size_; |
| 766 | 766 |
| 767 // The height of the physical backing surface that is overdrawn opaquely in | 767 // The height of the physical backing surface that is overdrawn opaquely in |
| 768 // the browser, for example by an on-screen-keyboard (in DPI-adjusted pixels). | 768 // the browser, for example by an on-screen-keyboard (in DPI-adjusted pixels). |
| 769 float overdraw_bottom_height_; | 769 float overdraw_bottom_height_; |
| 770 | 770 |
| 771 // The size of the visible viewport, which may be smaller than the view if the | |
| 772 // view is partially occluded (e.g. by a virtual keyboard). The size is in | |
| 773 // DPI-adjusted pixels. | |
| 774 gfx::SizeF visible_viewport_size_; | |
|
sky
2014/04/24 15:55:09
Same comment about floating point.
kevers
2014/04/24 18:38:33
Done.
| |
| 775 | |
| 771 // The size we last sent as requested size to the renderer. |current_size_| | 776 // The size we last sent as requested size to the renderer. |current_size_| |
| 772 // is only updated once the resize message has been ack'd. This on the other | 777 // is only updated once the resize message has been ack'd. This on the other |
| 773 // hand is updated when the resize message is sent. This is very similar to | 778 // hand is updated when the resize message is sent. This is very similar to |
| 774 // |resize_ack_pending_|, but the latter is not set if the new size has width | 779 // |resize_ack_pending_|, but the latter is not set if the new size has width |
| 775 // or height zero, which is why we need this too. | 780 // or height zero, which is why we need this too. |
| 776 gfx::Size last_requested_size_; | 781 gfx::Size last_requested_size_; |
| 777 | 782 |
| 778 // The next auto resize to send. | 783 // The next auto resize to send. |
| 779 gfx::Size new_auto_size_; | 784 gfx::Size new_auto_size_; |
| 780 | 785 |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 889 std::queue<base::Callback<void(bool, const SkBitmap&)> > pending_snapshots_; | 894 std::queue<base::Callback<void(bool, const SkBitmap&)> > pending_snapshots_; |
| 890 | 895 |
| 891 int64 last_input_number_; | 896 int64 last_input_number_; |
| 892 | 897 |
| 893 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 898 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 894 }; | 899 }; |
| 895 | 900 |
| 896 } // namespace content | 901 } // namespace content |
| 897 | 902 |
| 898 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 903 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |