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 "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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 // Notification that a move or resize renderer's containing window has | 248 // Notification that a move or resize renderer's containing window has |
249 // started. | 249 // started. |
250 virtual void NotifyMoveOrResizeStarted() = 0; | 250 virtual void NotifyMoveOrResizeStarted() = 0; |
251 | 251 |
252 // Reloads the current focused frame. | 252 // Reloads the current focused frame. |
253 virtual void ReloadFrame() = 0; | 253 virtual void ReloadFrame() = 0; |
254 | 254 |
255 // Sets the alternate error page URL (link doctor) for the renderer process. | 255 // Sets the alternate error page URL (link doctor) for the renderer process. |
256 virtual void SetAltErrorPageURL(const GURL& url) = 0; | 256 virtual void SetAltErrorPageURL(const GURL& url) = 0; |
257 | 257 |
| 258 // Sets the name of the top-level frame. |
| 259 virtual void SetWindowName(const std::string& name) = 0; |
| 260 |
258 // Sets a property with the given name and value on the Web UI binding object. | 261 // Sets a property with the given name and value on the Web UI binding object. |
259 // Must call AllowWebUIBindings() on this renderer first. | 262 // Must call AllowWebUIBindings() on this renderer first. |
260 virtual void SetWebUIProperty(const std::string& name, | 263 virtual void SetWebUIProperty(const std::string& name, |
261 const std::string& value) = 0; | 264 const std::string& value) = 0; |
262 | 265 |
263 // Set the zoom level for the current main frame | 266 // Set the zoom level for the current main frame |
264 virtual void SetZoomLevel(double level) = 0; | 267 virtual void SetZoomLevel(double level) = 0; |
265 | 268 |
266 // Changes the zoom level for the current main frame. | 269 // Changes the zoom level for the current main frame. |
267 virtual void Zoom(PageZoom zoom) = 0; | 270 virtual void Zoom(PageZoom zoom) = 0; |
(...skipping 25 matching lines...) Expand all Loading... |
293 | 296 |
294 private: | 297 private: |
295 // This interface should only be implemented inside content. | 298 // This interface should only be implemented inside content. |
296 friend class RenderViewHostImpl; | 299 friend class RenderViewHostImpl; |
297 RenderViewHost() {} | 300 RenderViewHost() {} |
298 }; | 301 }; |
299 | 302 |
300 } // namespace content | 303 } // namespace content |
301 | 304 |
302 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 305 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
OLD | NEW |