| 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_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 | 9 |
| 10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 | 67 |
| 68 // Downcasts from a RenderWidgetHost to a RenderViewHost. Required | 68 // Downcasts from a RenderWidgetHost to a RenderViewHost. Required |
| 69 // because RenderWidgetHost is a virtual base class. | 69 // because RenderWidgetHost is a virtual base class. |
| 70 static RenderViewHost* From(RenderWidgetHost* rwh); | 70 static RenderViewHost* From(RenderWidgetHost* rwh); |
| 71 | 71 |
| 72 virtual ~RenderViewHost() {} | 72 virtual ~RenderViewHost() {} |
| 73 | 73 |
| 74 // Returns the main frame for this render view. | 74 // Returns the main frame for this render view. |
| 75 virtual RenderFrameHost* GetMainFrame() = 0; | 75 virtual RenderFrameHost* GetMainFrame() = 0; |
| 76 | 76 |
| 77 // Returns the focused frame for this render view. |
| 78 virtual RenderFrameHost* GetFocusedFrame() = 0; |
| 79 |
| 77 // Tell the render view to enable a set of javascript bindings. The argument | 80 // Tell the render view to enable a set of javascript bindings. The argument |
| 78 // should be a combination of values from BindingsPolicy. | 81 // should be a combination of values from BindingsPolicy. |
| 79 virtual void AllowBindings(int binding_flags) = 0; | 82 virtual void AllowBindings(int binding_flags) = 0; |
| 80 | 83 |
| 81 // Tells the renderer to clear the focused element (if any). | 84 // Tells the renderer to clear the focused element (if any). |
| 82 virtual void ClearFocusedElement() = 0; | 85 virtual void ClearFocusedElement() = 0; |
| 83 | 86 |
| 84 // Causes the renderer to close the current page, including running its | 87 // Causes the renderer to close the current page, including running its |
| 85 // onunload event handler. A ClosePage_ACK message will be sent to the | 88 // onunload event handler. A ClosePage_ACK message will be sent to the |
| 86 // ResourceDispatcherHost when it is finished. | 89 // ResourceDispatcherHost when it is finished. |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 | 268 |
| 266 private: | 269 private: |
| 267 // This interface should only be implemented inside content. | 270 // This interface should only be implemented inside content. |
| 268 friend class RenderViewHostImpl; | 271 friend class RenderViewHostImpl; |
| 269 RenderViewHost() {} | 272 RenderViewHost() {} |
| 270 }; | 273 }; |
| 271 | 274 |
| 272 } // namespace content | 275 } // namespace content |
| 273 | 276 |
| 274 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 277 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
| OLD | NEW |