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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 class CONTENT_EXPORT RenderViewHost : virtual public RenderWidgetHost { | 60 class CONTENT_EXPORT RenderViewHost : virtual public RenderWidgetHost { |
61 public: | 61 public: |
62 // Returns the RenderViewHost given its ID and the ID of its render process. | 62 // Returns the RenderViewHost given its ID and the ID of its render process. |
63 // Returns NULL if the IDs do not correspond to a live RenderViewHost. | 63 // Returns NULL if the IDs do not correspond to a live RenderViewHost. |
64 static RenderViewHost* FromID(int render_process_id, int render_view_id); | 64 static RenderViewHost* FromID(int render_process_id, int render_view_id); |
65 | 65 |
66 // Downcasts from a RenderWidgetHost to a RenderViewHost. Required | 66 // Downcasts from a RenderWidgetHost to a RenderViewHost. Required |
67 // because RenderWidgetHost is a virtual base class. | 67 // because RenderWidgetHost is a virtual base class. |
68 static RenderViewHost* From(RenderWidgetHost* rwh); | 68 static RenderViewHost* From(RenderWidgetHost* rwh); |
69 | 69 |
70 virtual ~RenderViewHost() {} | 70 ~RenderViewHost() override {} |
71 | 71 |
72 // Returns the main frame for this render view. | 72 // Returns the main frame for this render view. |
73 virtual RenderFrameHost* GetMainFrame() = 0; | 73 virtual RenderFrameHost* GetMainFrame() = 0; |
74 | 74 |
75 // Tell the render view to enable a set of javascript bindings. The argument | 75 // Tell the render view to enable a set of javascript bindings. The argument |
76 // should be a combination of values from BindingsPolicy. | 76 // should be a combination of values from BindingsPolicy. |
77 virtual void AllowBindings(int binding_flags) = 0; | 77 virtual void AllowBindings(int binding_flags) = 0; |
78 | 78 |
79 // Tells the renderer to clear the focused element (if any). | 79 // Tells the renderer to clear the focused element (if any). |
80 virtual void ClearFocusedElement() = 0; | 80 virtual void ClearFocusedElement() = 0; |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 | 226 |
227 private: | 227 private: |
228 // This interface should only be implemented inside content. | 228 // This interface should only be implemented inside content. |
229 friend class RenderViewHostImpl; | 229 friend class RenderViewHostImpl; |
230 RenderViewHost() {} | 230 RenderViewHost() {} |
231 }; | 231 }; |
232 | 232 |
233 } // namespace content | 233 } // namespace content |
234 | 234 |
235 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 235 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
OLD | NEW |