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 "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 // | 79 // |
80 // Implementation note: Historically, RenderViewHost was-a RenderWidgetHost, | 80 // Implementation note: Historically, RenderViewHost was-a RenderWidgetHost, |
81 // and shared its IPC channel and its routing ID. Although this inheritance is | 81 // and shared its IPC channel and its routing ID. Although this inheritance is |
82 // no longer so, the IPC channel is currently still shared. Expect this to | 82 // no longer so, the IPC channel is currently still shared. Expect this to |
83 // change. | 83 // change. |
84 virtual int GetRoutingID() const = 0; | 84 virtual int GetRoutingID() const = 0; |
85 | 85 |
86 // Returns the main frame for this render view. | 86 // Returns the main frame for this render view. |
87 virtual RenderFrameHost* GetMainFrame() = 0; | 87 virtual RenderFrameHost* GetMainFrame() = 0; |
88 | 88 |
89 // Tell the render view to enable a set of javascript bindings. The argument | |
90 // should be a combination of values from BindingsPolicy. | |
91 virtual void AllowBindings(int binding_flags) = 0; | |
92 | |
93 // Tells the renderer to clear the focused element (if any). | 89 // Tells the renderer to clear the focused element (if any). |
94 virtual void ClearFocusedElement() = 0; | 90 virtual void ClearFocusedElement() = 0; |
95 | 91 |
96 // Returns true if the current focused element is editable. | 92 // Returns true if the current focused element is editable. |
97 virtual bool IsFocusedElementEditable() = 0; | 93 virtual bool IsFocusedElementEditable() = 0; |
98 | 94 |
99 // Notifies the listener that a directory enumeration is complete. | 95 // Notifies the listener that a directory enumeration is complete. |
100 virtual void DirectoryEnumerationFinished( | 96 virtual void DirectoryEnumerationFinished( |
101 int request_id, | 97 int request_id, |
102 const std::vector<base::FilePath>& files) = 0; | 98 const std::vector<base::FilePath>& files) = 0; |
(...skipping 19 matching lines...) Expand all Loading... |
122 const gfx::Point& location, | 118 const gfx::Point& location, |
123 const blink::WebMediaPlayerAction& action) = 0; | 119 const blink::WebMediaPlayerAction& action) = 0; |
124 | 120 |
125 // Tells the renderer to perform the given action on the plugin located at | 121 // Tells the renderer to perform the given action on the plugin located at |
126 // the given point. | 122 // the given point. |
127 virtual void ExecutePluginActionAtLocation( | 123 virtual void ExecutePluginActionAtLocation( |
128 const gfx::Point& location, const blink::WebPluginAction& action) = 0; | 124 const gfx::Point& location, const blink::WebPluginAction& action) = 0; |
129 | 125 |
130 virtual RenderViewHostDelegate* GetDelegate() const = 0; | 126 virtual RenderViewHostDelegate* GetDelegate() const = 0; |
131 | 127 |
132 // Returns a bitwise OR of bindings types that have been enabled for this | |
133 // RenderView. See BindingsPolicy for details. | |
134 virtual int GetEnabledBindings() const = 0; | |
135 | |
136 virtual SiteInstance* GetSiteInstance() const = 0; | 128 virtual SiteInstance* GetSiteInstance() const = 0; |
137 | 129 |
138 // Returns true if the RenderView is active and has not crashed. | 130 // Returns true if the RenderView is active and has not crashed. |
139 virtual bool IsRenderViewLive() const = 0; | 131 virtual bool IsRenderViewLive() const = 0; |
140 | 132 |
141 // Notification that a move or resize renderer's containing window has | 133 // Notification that a move or resize renderer's containing window has |
142 // started. | 134 // started. |
143 virtual void NotifyMoveOrResizeStarted() = 0; | 135 virtual void NotifyMoveOrResizeStarted() = 0; |
144 | 136 |
145 // Sets a property with the given name and value on the Web UI binding object. | 137 // Sets a property with the given name and value on the Web UI binding object. |
(...skipping 21 matching lines...) Expand all Loading... |
167 | 159 |
168 private: | 160 private: |
169 // This interface should only be implemented inside content. | 161 // This interface should only be implemented inside content. |
170 friend class RenderViewHostImpl; | 162 friend class RenderViewHostImpl; |
171 RenderViewHost() {} | 163 RenderViewHost() {} |
172 }; | 164 }; |
173 | 165 |
174 } // namespace content | 166 } // namespace content |
175 | 167 |
176 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 168 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
OLD | NEW |