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/values.h" | 8 #include "base/values.h" |
9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
10 #include "content/public/browser/render_widget_host.h" | 10 #include "content/public/browser/render_widget_host.h" |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 virtual void NotifyContextMenuClosed( | 232 virtual void NotifyContextMenuClosed( |
233 const CustomContextMenuContext& context) = 0; | 233 const CustomContextMenuContext& context) = 0; |
234 | 234 |
235 // Notification that a move or resize renderer's containing window has | 235 // Notification that a move or resize renderer's containing window has |
236 // started. | 236 // started. |
237 virtual void NotifyMoveOrResizeStarted() = 0; | 237 virtual void NotifyMoveOrResizeStarted() = 0; |
238 | 238 |
239 // Reloads the current focused frame. | 239 // Reloads the current focused frame. |
240 virtual void ReloadFrame() = 0; | 240 virtual void ReloadFrame() = 0; |
241 | 241 |
| 242 // Retrieves a JSON serialized representation of the frame tree for the |
| 243 // current document in the render view. |
| 244 virtual const std::string& GetFrameTree() = 0; |
| 245 |
242 // Sets the alternate error page URL (link doctor) for the renderer process. | 246 // Sets the alternate error page URL (link doctor) for the renderer process. |
243 virtual void SetAltErrorPageURL(const GURL& url) = 0; | 247 virtual void SetAltErrorPageURL(const GURL& url) = 0; |
244 | 248 |
245 // Sets a property with the given name and value on the Web UI binding object. | 249 // Sets a property with the given name and value on the Web UI binding object. |
246 // Must call AllowWebUIBindings() on this renderer first. | 250 // Must call AllowWebUIBindings() on this renderer first. |
247 virtual void SetWebUIProperty(const std::string& name, | 251 virtual void SetWebUIProperty(const std::string& name, |
248 const std::string& value) = 0; | 252 const std::string& value) = 0; |
249 | 253 |
250 // Set the zoom level for the current main frame | 254 // Set the zoom level for the current main frame |
251 virtual void SetZoomLevel(double level) = 0; | 255 virtual void SetZoomLevel(double level) = 0; |
(...skipping 11 matching lines...) Expand all Loading... |
263 virtual webkit_glue::WebPreferences GetWebkitPreferences() = 0; | 267 virtual webkit_glue::WebPreferences GetWebkitPreferences() = 0; |
264 | 268 |
265 // Passes a list of Webkit preferences to the renderer. | 269 // Passes a list of Webkit preferences to the renderer. |
266 virtual void UpdateWebkitPreferences( | 270 virtual void UpdateWebkitPreferences( |
267 const webkit_glue::WebPreferences& prefs) = 0; | 271 const webkit_glue::WebPreferences& prefs) = 0; |
268 }; | 272 }; |
269 | 273 |
270 } // namespace content | 274 } // namespace content |
271 | 275 |
272 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 276 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
OLD | NEW |