| 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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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. | 235 // Indicates whether this page has been focused by the browser. |
| 236 bool has_focus() const { return has_focus_; } | 236 bool has_focus() const { return has_focus_; } |
| 237 | 237 |
| 238 // Sets page-level focus in this view and notifies plugins and Blink's |
| 239 // FocusController. |
| 240 void SetFocus(bool enable); |
| 241 |
| 238 // Plugin-related functions -------------------------------------------------- | 242 // Plugin-related functions -------------------------------------------------- |
| 239 | 243 |
| 240 #if defined(ENABLE_PLUGINS) | 244 #if defined(ENABLE_PLUGINS) |
| 241 // Get/set the plugin which will be used as to handle document find requests. | 245 // Get/set the plugin which will be used as to handle document find requests. |
| 242 void set_plugin_find_handler(PepperPluginInstanceImpl* plugin) { | 246 void set_plugin_find_handler(PepperPluginInstanceImpl* plugin) { |
| 243 plugin_find_handler_ = plugin; | 247 plugin_find_handler_ = plugin; |
| 244 } | 248 } |
| 245 PepperPluginInstanceImpl* plugin_find_handler() { | 249 PepperPluginInstanceImpl* plugin_find_handler() { |
| 246 return plugin_find_handler_; | 250 return plugin_find_handler_; |
| 247 } | 251 } |
| (...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1010 // use the Observer interface to filter IPC messages and receive frame change | 1014 // use the Observer interface to filter IPC messages and receive frame change |
| 1011 // notifications. | 1015 // notifications. |
| 1012 // --------------------------------------------------------------------------- | 1016 // --------------------------------------------------------------------------- |
| 1013 | 1017 |
| 1014 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1018 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
| 1015 }; | 1019 }; |
| 1016 | 1020 |
| 1017 } // namespace content | 1021 } // namespace content |
| 1018 | 1022 |
| 1019 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1023 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| OLD | NEW |