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 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
683 | 683 |
684 // Set if we are waiting for a repaint ack for the view. | 684 // Set if we are waiting for a repaint ack for the view. |
685 bool repaint_ack_pending_; | 685 bool repaint_ack_pending_; |
686 | 686 |
687 // True when waiting for RESIZE_ACK. | 687 // True when waiting for RESIZE_ACK. |
688 bool resize_ack_pending_; | 688 bool resize_ack_pending_; |
689 | 689 |
690 // The current size of the RenderWidget. | 690 // The current size of the RenderWidget. |
691 gfx::Size current_size_; | 691 gfx::Size current_size_; |
692 | 692 |
| 693 // The size of the view's backing surface in non-DPI-adjusted pixels. |
| 694 gfx::Size physical_backing_size_; |
| 695 |
693 // The size we last sent as requested size to the renderer. |current_size_| | 696 // The size we last sent as requested size to the renderer. |current_size_| |
694 // is only updated once the resize message has been ack'd. This on the other | 697 // is only updated once the resize message has been ack'd. This on the other |
695 // hand is updated when the resize message is sent. This is very similar to | 698 // hand is updated when the resize message is sent. This is very similar to |
696 // |resize_ack_pending_|, but the latter is not set if the new size has width | 699 // |resize_ack_pending_|, but the latter is not set if the new size has width |
697 // or height zero, which is why we need this too. | 700 // or height zero, which is why we need this too. |
698 gfx::Size in_flight_size_; | 701 gfx::Size in_flight_size_; |
699 | 702 |
700 // The next auto resize to send. | 703 // The next auto resize to send. |
701 gfx::Size new_auto_size_; | 704 gfx::Size new_auto_size_; |
702 | 705 |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
847 #if defined(OS_WIN) | 850 #if defined(OS_WIN) |
848 std::list<HWND> dummy_windows_for_activation_; | 851 std::list<HWND> dummy_windows_for_activation_; |
849 #endif | 852 #endif |
850 | 853 |
851 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 854 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
852 }; | 855 }; |
853 | 856 |
854 } // namespace content | 857 } // namespace content |
855 | 858 |
856 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 859 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |