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 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1028 // View ---------------------------------------------------------------------- | 1028 // View ---------------------------------------------------------------------- |
1029 | 1029 |
1030 // Cache the preferred size of the page in order to prevent sending the IPC | 1030 // Cache the preferred size of the page in order to prevent sending the IPC |
1031 // when layout() recomputes but doesn't actually change sizes. | 1031 // when layout() recomputes but doesn't actually change sizes. |
1032 gfx::Size preferred_size_; | 1032 gfx::Size preferred_size_; |
1033 | 1033 |
1034 // Used to delay determining the preferred size (to avoid intermediate | 1034 // Used to delay determining the preferred size (to avoid intermediate |
1035 // states for the sizes). | 1035 // states for the sizes). |
1036 base::OneShotTimer<RenderViewImpl> check_preferred_size_timer_; | 1036 base::OneShotTimer<RenderViewImpl> check_preferred_size_timer_; |
1037 | 1037 |
1038 // These store the "is main frame is scrolled all the way to the left | |
1039 // or right" state that was last sent to the browser. | |
1040 bool cached_is_main_frame_pinned_to_left_; | |
1041 bool cached_is_main_frame_pinned_to_right_; | |
1042 | |
1043 // Bookkeeping to suppress redundant scroll and focus requests for an already | 1038 // Bookkeeping to suppress redundant scroll and focus requests for an already |
1044 // scrolled and focused editable node. | 1039 // scrolled and focused editable node. |
1045 bool has_scrolled_focused_editable_node_into_rect_; | 1040 bool has_scrolled_focused_editable_node_into_rect_; |
1046 gfx::Rect rect_for_scrolled_focused_editable_node_; | 1041 gfx::Rect rect_for_scrolled_focused_editable_node_; |
1047 | 1042 |
1048 // Helper objects ------------------------------------------------------------ | 1043 // Helper objects ------------------------------------------------------------ |
1049 | 1044 |
1050 scoped_ptr<RenderFrameImpl> main_render_frame_; | 1045 scoped_ptr<RenderFrameImpl> main_render_frame_; |
1051 | 1046 |
1052 // The next group of objects all implement RenderViewObserver, so are deleted | 1047 // The next group of objects all implement RenderViewObserver, so are deleted |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1190 // use the Observer interface to filter IPC messages and receive frame change | 1185 // use the Observer interface to filter IPC messages and receive frame change |
1191 // notifications. | 1186 // notifications. |
1192 // --------------------------------------------------------------------------- | 1187 // --------------------------------------------------------------------------- |
1193 | 1188 |
1194 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1189 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1195 }; | 1190 }; |
1196 | 1191 |
1197 } // namespace content | 1192 } // namespace content |
1198 | 1193 |
1199 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1194 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |