| 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 | 155 |
| 156 // Instructs the RenderView to send back updates to the preferred size. | 156 // Instructs the RenderView to send back updates to the preferred size. |
| 157 virtual void EnablePreferredSizeMode() = 0; | 157 virtual void EnablePreferredSizeMode() = 0; |
| 158 | 158 |
| 159 // Tells the renderer to perform the given action on the media player | 159 // Tells the renderer to perform the given action on the media player |
| 160 // located at the given point. | 160 // located at the given point. |
| 161 virtual void ExecuteMediaPlayerActionAtLocation( | 161 virtual void ExecuteMediaPlayerActionAtLocation( |
| 162 const gfx::Point& location, | 162 const gfx::Point& location, |
| 163 const blink::WebMediaPlayerAction& action) = 0; | 163 const blink::WebMediaPlayerAction& action) = 0; |
| 164 | 164 |
| 165 // Runs some javascript within the context of a frame in the page. | |
| 166 // OBSOLETE; DO NOT USE! Use RenderFrameHost::ExecuteJavaScript instead. | |
| 167 virtual void ExecuteJavascriptInWebFrame(const base::string16& frame_xpath, | |
| 168 const base::string16& jscript) = 0; | |
| 169 | |
| 170 // Runs some javascript within the context of a frame in the page. The result | |
| 171 // is sent back via the provided callback. | |
| 172 // OBSOLETE; DO NOT USE! Use RenderFrameHost::ExecuteJavaScript instead. | |
| 173 typedef base::Callback<void(const base::Value*)> JavascriptResultCallback; | |
| 174 virtual void ExecuteJavascriptInWebFrameCallbackResult( | |
| 175 const base::string16& frame_xpath, | |
| 176 const base::string16& jscript, | |
| 177 const JavascriptResultCallback& callback) = 0; | |
| 178 | |
| 179 // Tells the renderer to perform the given action on the plugin located at | 165 // Tells the renderer to perform the given action on the plugin located at |
| 180 // the given point. | 166 // the given point. |
| 181 virtual void ExecutePluginActionAtLocation( | 167 virtual void ExecutePluginActionAtLocation( |
| 182 const gfx::Point& location, const blink::WebPluginAction& action) = 0; | 168 const gfx::Point& location, const blink::WebPluginAction& action) = 0; |
| 183 | 169 |
| 184 // Asks the renderer to exit fullscreen | 170 // Asks the renderer to exit fullscreen |
| 185 virtual void ExitFullscreen() = 0; | 171 virtual void ExitFullscreen() = 0; |
| 186 | 172 |
| 187 // Notifies the Listener that one or more files have been chosen by the user | 173 // Notifies the Listener that one or more files have been chosen by the user |
| 188 // from a file chooser dialog for the form. |permissions| is the file | 174 // from a file chooser dialog for the form. |permissions| is the file |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 | 245 |
| 260 private: | 246 private: |
| 261 // This interface should only be implemented inside content. | 247 // This interface should only be implemented inside content. |
| 262 friend class RenderViewHostImpl; | 248 friend class RenderViewHostImpl; |
| 263 RenderViewHost() {} | 249 RenderViewHost() {} |
| 264 }; | 250 }; |
| 265 | 251 |
| 266 } // namespace content | 252 } // namespace content |
| 267 | 253 |
| 268 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 254 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
| OLD | NEW |