| 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_RENDERER_RENDER_VIEW_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 820 // decidePolicyForNavigation for details. | 820 // decidePolicyForNavigation for details. |
| 821 bool opener_suppressed_; | 821 bool opener_suppressed_; |
| 822 | 822 |
| 823 // Whether we must stop creating nested message loops for modal dialogs until | 823 // Whether we must stop creating nested message loops for modal dialogs until |
| 824 // OnSwapOut is called. This is necessary because modal dialogs have a | 824 // OnSwapOut is called. This is necessary because modal dialogs have a |
| 825 // PageGroupLoadDeferrer on the stack that interferes with swapping out. | 825 // PageGroupLoadDeferrer on the stack that interferes with swapping out. |
| 826 bool suppress_dialogs_until_swap_out_; | 826 bool suppress_dialogs_until_swap_out_; |
| 827 | 827 |
| 828 // Timer used to delay the updating of nav state (see | 828 // Timer used to delay the updating of nav state (see |
| 829 // StartNavStateSyncTimerIfNecessary). | 829 // StartNavStateSyncTimerIfNecessary). |
| 830 base::OneShotTimer<RenderViewImpl> nav_state_sync_timer_; | 830 base::OneShotTimer nav_state_sync_timer_; |
| 831 | 831 |
| 832 // Page IDs ------------------------------------------------------------------ | 832 // Page IDs ------------------------------------------------------------------ |
| 833 // See documentation in RenderView. | 833 // See documentation in RenderView. |
| 834 int32 page_id_; | 834 int32 page_id_; |
| 835 | 835 |
| 836 // The next available page ID to use for this RenderView. These IDs are | 836 // The next available page ID to use for this RenderView. These IDs are |
| 837 // specific to a given RenderView and the frames within it. | 837 // specific to a given RenderView and the frames within it. |
| 838 int32 next_page_id_; | 838 int32 next_page_id_; |
| 839 | 839 |
| 840 // The offset of the current item in the history list. | 840 // The offset of the current item in the history list. |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 893 #endif | 893 #endif |
| 894 | 894 |
| 895 // View ---------------------------------------------------------------------- | 895 // View ---------------------------------------------------------------------- |
| 896 | 896 |
| 897 // Cache the preferred size of the page in order to prevent sending the IPC | 897 // Cache the preferred size of the page in order to prevent sending the IPC |
| 898 // when layout() recomputes but doesn't actually change sizes. | 898 // when layout() recomputes but doesn't actually change sizes. |
| 899 gfx::Size preferred_size_; | 899 gfx::Size preferred_size_; |
| 900 | 900 |
| 901 // Used to delay determining the preferred size (to avoid intermediate | 901 // Used to delay determining the preferred size (to avoid intermediate |
| 902 // states for the sizes). | 902 // states for the sizes). |
| 903 base::OneShotTimer<RenderViewImpl> check_preferred_size_timer_; | 903 base::OneShotTimer check_preferred_size_timer_; |
| 904 | 904 |
| 905 // Bookkeeping to suppress redundant scroll and focus requests for an already | 905 // Bookkeeping to suppress redundant scroll and focus requests for an already |
| 906 // scrolled and focused editable node. | 906 // scrolled and focused editable node. |
| 907 bool has_scrolled_focused_editable_node_into_rect_; | 907 bool has_scrolled_focused_editable_node_into_rect_; |
| 908 gfx::Rect rect_for_scrolled_focused_editable_node_; | 908 gfx::Rect rect_for_scrolled_focused_editable_node_; |
| 909 | 909 |
| 910 // Helper objects ------------------------------------------------------------ | 910 // Helper objects ------------------------------------------------------------ |
| 911 | 911 |
| 912 RenderFrameImpl* main_render_frame_; | 912 RenderFrameImpl* main_render_frame_; |
| 913 | 913 |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1023 // use the Observer interface to filter IPC messages and receive frame change | 1023 // use the Observer interface to filter IPC messages and receive frame change |
| 1024 // notifications. | 1024 // notifications. |
| 1025 // --------------------------------------------------------------------------- | 1025 // --------------------------------------------------------------------------- |
| 1026 | 1026 |
| 1027 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1027 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
| 1028 }; | 1028 }; |
| 1029 | 1029 |
| 1030 } // namespace content | 1030 } // namespace content |
| 1031 | 1031 |
| 1032 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1032 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| OLD | NEW |