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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 | 225 |
226 bool is_loading() const { return frames_in_progress_ != 0; } | 226 bool is_loading() const { return frames_in_progress_ != 0; } |
227 | 227 |
228 void FrameDidStartLoading(blink::WebFrame* frame); | 228 void FrameDidStartLoading(blink::WebFrame* frame); |
229 void FrameDidStopLoading(blink::WebFrame* frame); | 229 void FrameDidStopLoading(blink::WebFrame* frame); |
230 | 230 |
231 // Sets the zoom level and notifies observers. Doesn't call zoomLevelChanged, | 231 // Sets the zoom level and notifies observers. Doesn't call zoomLevelChanged, |
232 // as that is only for changes that aren't initiated by the client. | 232 // as that is only for changes that aren't initiated by the client. |
233 void SetZoomLevel(double zoom_level); | 233 void SetZoomLevel(double zoom_level); |
234 | 234 |
| 235 // Indicates whether this page has been focused by the browser. |
| 236 bool has_focus() const { return has_focus_; } |
| 237 |
235 // Plugin-related functions -------------------------------------------------- | 238 // Plugin-related functions -------------------------------------------------- |
236 | 239 |
237 #if defined(ENABLE_PLUGINS) | 240 #if defined(ENABLE_PLUGINS) |
238 // Get/set the plugin which will be used as to handle document find requests. | 241 // Get/set the plugin which will be used as to handle document find requests. |
239 void set_plugin_find_handler(PepperPluginInstanceImpl* plugin) { | 242 void set_plugin_find_handler(PepperPluginInstanceImpl* plugin) { |
240 plugin_find_handler_ = plugin; | 243 plugin_find_handler_ = plugin; |
241 } | 244 } |
242 PepperPluginInstanceImpl* plugin_find_handler() { | 245 PepperPluginInstanceImpl* plugin_find_handler() { |
243 return plugin_find_handler_; | 246 return plugin_find_handler_; |
244 } | 247 } |
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
866 | 869 |
867 // Indicates whether this view overrides url-based zoom settings. | 870 // Indicates whether this view overrides url-based zoom settings. |
868 bool uses_temporary_zoom_level_; | 871 bool uses_temporary_zoom_level_; |
869 | 872 |
870 #if defined(OS_ANDROID) | 873 #if defined(OS_ANDROID) |
871 // Cache the old top controls state constraints. Used when updating | 874 // Cache the old top controls state constraints. Used when updating |
872 // current value only without altering the constraints. | 875 // current value only without altering the constraints. |
873 TopControlsState top_controls_constraints_; | 876 TopControlsState top_controls_constraints_; |
874 #endif | 877 #endif |
875 | 878 |
| 879 // Indicates whether this page has been focused/unfocused by the browser. |
| 880 bool has_focus_; |
| 881 |
876 // View ---------------------------------------------------------------------- | 882 // View ---------------------------------------------------------------------- |
877 | 883 |
878 // Cache the preferred size of the page in order to prevent sending the IPC | 884 // Cache the preferred size of the page in order to prevent sending the IPC |
879 // when layout() recomputes but doesn't actually change sizes. | 885 // when layout() recomputes but doesn't actually change sizes. |
880 gfx::Size preferred_size_; | 886 gfx::Size preferred_size_; |
881 | 887 |
882 // Used to delay determining the preferred size (to avoid intermediate | 888 // Used to delay determining the preferred size (to avoid intermediate |
883 // states for the sizes). | 889 // states for the sizes). |
884 base::OneShotTimer check_preferred_size_timer_; | 890 base::OneShotTimer check_preferred_size_timer_; |
885 | 891 |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1004 // use the Observer interface to filter IPC messages and receive frame change | 1010 // use the Observer interface to filter IPC messages and receive frame change |
1005 // notifications. | 1011 // notifications. |
1006 // --------------------------------------------------------------------------- | 1012 // --------------------------------------------------------------------------- |
1007 | 1013 |
1008 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1014 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1009 }; | 1015 }; |
1010 | 1016 |
1011 } // namespace content | 1017 } // namespace content |
1012 | 1018 |
1013 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1019 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |