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 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
731 | 731 |
732 // True if threaded compositing is enabled on this view. | 732 // True if threaded compositing is enabled on this view. |
733 bool is_threaded_compositing_enabled_; | 733 bool is_threaded_compositing_enabled_; |
734 | 734 |
735 // Set if we are waiting for a repaint ack for the view. | 735 // Set if we are waiting for a repaint ack for the view. |
736 bool repaint_ack_pending_; | 736 bool repaint_ack_pending_; |
737 | 737 |
738 // True when waiting for RESIZE_ACK. | 738 // True when waiting for RESIZE_ACK. |
739 bool resize_ack_pending_; | 739 bool resize_ack_pending_; |
740 | 740 |
| 741 // Cached copy of the screen info so that it doesn't need to be updated every |
| 742 // time the window is resized. |
| 743 scoped_ptr<WebKit::WebScreenInfo> screen_info_; |
| 744 |
| 745 // Set if screen_info_ may have changed and should be recomputed and force a |
| 746 // resize message. |
| 747 bool screen_info_out_of_date_; |
| 748 |
741 // The current size of the RenderWidget. | 749 // The current size of the RenderWidget. |
742 gfx::Size current_size_; | 750 gfx::Size current_size_; |
743 | 751 |
744 // The size of the view's backing surface in non-DPI-adjusted pixels. | 752 // The size of the view's backing surface in non-DPI-adjusted pixels. |
745 gfx::Size physical_backing_size_; | 753 gfx::Size physical_backing_size_; |
746 | 754 |
747 // The height of the physical backing surface that is overdrawn opaquely in | 755 // The height of the physical backing surface that is overdrawn opaquely in |
748 // the browser, for example by an on-screen-keyboard (in DPI-adjusted pixels). | 756 // the browser, for example by an on-screen-keyboard (in DPI-adjusted pixels). |
749 float overdraw_bottom_height_; | 757 float overdraw_bottom_height_; |
750 | 758 |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
907 std::queue<base::Callback<void(bool, const SkBitmap&)> > pending_snapshots_; | 915 std::queue<base::Callback<void(bool, const SkBitmap&)> > pending_snapshots_; |
908 | 916 |
909 int64 last_input_number_; | 917 int64 last_input_number_; |
910 | 918 |
911 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 919 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
912 }; | 920 }; |
913 | 921 |
914 } // namespace content | 922 } // namespace content |
915 | 923 |
916 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 924 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |